String Aggregation Type - Distinc String Concatenate

Stimulsoft Reports.WEB discussion
Post Reply
brett.macpherson
Posts: 48
Joined: Mon Apr 13, 2020 7:29 am

String Aggregation Type - Distinc String Concatenate

Post by brett.macpherson »

Hi,
writing some reports which involves aggregating data sets which have numeric and string values. The requirements are to aggregate the data into groups for the numerics using sum/avg styles however with the string data types the only options are first/last/count/count(distinc). It would be handy to have an aggregation style called "Distinc String Concatenate". This would work similarly to the SQL function STRING_AGG but only return the distinc strings with a seperator as a single string. This would allow you to show all the string values in a single row when aggregating.

https://learn.microsoft.com/en-us/sql/t ... rver-ver16

Regards,
Brett
Lech Kulikowski
Posts: 7333
Joined: Tue Mar 20, 2018 5:34 am

Re: String Aggregation Type - Distinc String Concatenate

Post by Lech Kulikowski »

Hello,

You can add your own function
https://www.stimulsoft.com/en/documenta ... ctions.htm

Thank you.
Post Reply