SSRS Group by in the List Report

六月ゝ 毕业季﹏ 提交于 2019-12-19 09:19:45

问题


I am working on a SSRS Report where i have to group by the Customer Name.

Dataset will be something like this. Select Column1, Column2,Column2 from Customer Group by CustomerName

Expected Report Layout 

Customer Name :   Jim Mouse
DOB           :   12/01/1970

Column1            Column2            Column3

100                DateTwo           Some Entry
200                Assignment        Entered works
300                Freelance         Tesing 


Customer Name :   Sendil P
DOB           :   12/01/1990

Column1            Column2            Column3

100                work hard          SSRS
200                Test Zone          Earth world

Issue, i am facing. By placing List, on every row of record, i am getting same customer name, DOB is repeated.

Current Output

Customer Name :   Jim Mouse
DOB           :   12/01/1970

Column1            Column2            Column3

100                DateTwo           Some Entry

Customer Name :   Jim Mouse
DOB           :   12/01/1970

Column1            Column2            Column3
200                Assignment        Entered works

Customer Name :   Jim Mouse
DOB           :   12/01/1970

Column1            Column2            Column3
300                Freelance         Tesing 

On following IAN steps, I attached the Image of current output.


回答1:


As you have seen, by default a List will repeat for each row in the Dataset.

With a version of your data:

I have created a blank report with a List:

Note the three dotted lines in the List item and the Details group, indicating there is no grouping item. We want to change this to group on Customer:

After apply this change you can see the List and group have changed:

Now this item will repeat for each Customer, not each row. We can now add in the text box for Customer, which will show once per group, and a table, which will display all rows for that Customer:

Which works as required:

You can add page breaks to the group if required.



来源:https://stackoverflow.com/questions/23015511/ssrs-group-by-in-the-list-report

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!