SSRS Group by in the List Report

前端 未结 1 505
隐瞒了意图╮
隐瞒了意图╮ 2021-01-14 20:38

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

相关标签:
1条回答
  • 2021-01-14 21:02

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

    With a version of your data:

    enter image description here

    I have created a blank report with a List:

    enter image description here

    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:

    enter image description here

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

    enter image description here

    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:

    enter image description here

    Which works as required:

    enter image description here

    You can add page breaks to the group if required.

    0 讨论(0)
提交回复
热议问题