This is a migrated thread and some comments may be shown as answers.

How to show summary info from rows

6 Answers 505 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
P
Top achievements
Rank 1
P asked on 29 Jan 2020, 01:36 PM

Hello, 

Could you advice on how to show summary info from row values?

The data source data looks like this - see RawData.png attached. 

I need to show a table which looks like this - see ResultData.png attached. 

 

Thanks

6 Answers, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 03 Feb 2020, 06:42 AM

Hello,

The described scenario can be achieved using the CrossTab item. An example of displaying the aggregated data using a CrossTab item is provided in the ProductSales report available in the Telerik Reporting installation folder ([installation folder]\Progress\Telerik Reporting [version]\Report Designer\Examples).

For additional reference, check Understanding Crosstab Areas help article.

 

Regards,
Katia
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
P
Top achievements
Rank 1
answered on 03 Feb 2020, 09:11 AM

Hi again,

I tried also with the crosstab but to no avail. I do not need column groups or nested row groups.

I can't figure out how to show the summary data on one row only. The closest I got was to show the distinct positions with their count but on different rows. See attached file.

How could I get the summary at one go, maybe the logic would be something like that:

= Join(', ', AllDistinctValues(Fields.Position) + ' - ' + Count(Fields.Position))

 

0
P
Top achievements
Rank 1
answered on 05 Feb 2020, 10:27 AM

Is this scenario even possible in the standalone deisgner itself or the data needs to be retrieved with calculations and summary already done in sql? I am asking because in my case the client himself is supposed to create the report in the report designer without having to write sql queries over the data. 

0
Katia
Telerik team
answered on 06 Feb 2020, 07:01 AM

Hi,

To show the summary details in one row only, you can use a nested data item that uses column grouping by the Position field. Check the attached report as a reference.

 

Regards,
Katia
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
P
Top achievements
Rank 1
answered on 11 Feb 2020, 07:58 AM

Hi,

Thank you for the attached example. As I can see the outcome I had in mind is not quite possible with the designer. The example shows the summary data in columns, not as text. In my case there would be a lot of such columns with spaces between them which do not suit the requirements I have to fulfil. 

Best Regards

0
Katia
Telerik team
answered on 14 Feb 2020, 07:17 AM

Hi,

The most common scenario is to display an aggregated result for a group instance per single row or column. I can see that your requirement is to accumulate all the aggregates for each position group instance in one row which cannot be achieved using the built-in expressions as they do not support nested aggregate functions.

A possible solution is to aggregate the data prior to supplying it to the report. Another custom approach is to create a custom function that will take the aggregated data as a parameter and return it in the required format and to use this function in the expression.

 

Regards,
Katia
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
P
Top achievements
Rank 1
Answers by
Katia
Telerik team
P
Top achievements
Rank 1
Share this question
or