|
|
Question : Report viewer RDLC report grouping
|
|
Hello, When we create a grouping for RDLC report, we can insert a total for that grouping on the footer section by using =sum(fields!quantity.value). It works when the value in integer, but can we stack them as string and display them on single line on the footer section of the group. For example something like this:
group: Country detail line: quantity 2 3 5 group footer: 2,3,5
---------------------------------- In above example: I am showing the data of detail line just to explain what I need, but I am going to supress it in my report and just show one line group footer which contains the data of detail line separeted by comma. Thanks!
|
Answer : Report viewer RDLC report grouping
|
|
Sure, in the SQL query add an extra column CASE WHEN quantity=0 THEN 0 ELSE 1 END AS NonZeroCount Then, just use =Sum(Fields!NonZeroCount.Value) to get the number of non-zero records for particular group.
I have used the list/table combo before to do what you want, and it does work, however it always takes a fair bit of persistent playing around with to get it to do what you want. Drillthrough reports (and/or sub-reports) would indeed make life significantly more simple, so long as you're ok not having all the information in a single report...
|
|
|
|
|