Question

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. enter image description here

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top