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

Count Records in report

1 Answer 613 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Samir Patel
Top achievements
Rank 1
Samir Patel asked on 22 Jun 2011, 11:00 AM
Hi,

I have value stored in the Table with the Preferences related to customer , Customer Select the value single / double / triple...and i need to show the count of single / double / triple in my report...

I.e When I run my Report based on tour ID , then In that report i need to show :

Count of Single = xx
Count of Double = YY
Count of Triple = ZZ

How should i write the Count function to retrieve the value from the table?

Regards
samir

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 22 Jun 2011, 01:32 PM
Hello Samir Patel,

For a conditional count you can nest the IIF operator into a Count aggregate as shown in the following sample expression:
=Count(IIF(Fields.Year=2005,1, Null))

However have in mind that Telerik Reporting Table item is a separate data item. Thus you can use aggregates over table's data in the table itself.

Check out the attached sample.

Greetings,
Peter
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Samir Patel
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or