Only distinct values from the sql data source to standalone telerik report designer

1 Answer 344 Views
DataSource SQL Report Designer (standalone)
Jayraj
Top achievements
Rank 1
Jayraj asked on 16 Dec 2022, 11:10 AM

I have one table in sql server and I am fetching it in standalone report designer using stored procedure but I need distinct values to be displayed only.

Is there a method in standalone report designer to show only distinct values because I can't do it in sql server for some reasons.

 

Thank you in advance.

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 21 Dec 2022, 08:28 AM

Hi Jayraj,

You may try the built-in Aggregate Functions we provide. For example, AllDistinctValues returns an array containing only the distinct values evaluated from the Expression you pass as a first argument.

Another option may be to use Report Groups. In the group header/footer you may display the distinct grouping value.

Regards,
Todor
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Jayraj
Top achievements
Rank 1
commented on 26 Dec 2022, 07:23 AM

I tried AllDistinctValues but not able to get the desired result.

Instead I found the easier solution: using Previous(expression)=expression in conditional formatting.

Tags
DataSource SQL Report Designer (standalone)
Asked by
Jayraj
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or