Click here to Skip to main content
15,867,453 members
Articles / Database Development / SQL Server
Tip/Trick

Reporting Services Hide dulpicate row

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
17 Mar 2010CPOL 28.5K   1   1
When grouping data within a List control I need a header table and child table. The data comes from 1 datatable where the 1st #n columns are duplicated for each detail rows.The usual answer to this is to set the hide duplicates value in the textbox. This suppresses the text but the row is...
When grouping data within a List control I need a header table and child table. The data comes from 1 datatable where the 1st #n columns are duplicated for each detail rows.

The usual answer to this is to set the hide duplicates value in the textbox. This suppresses the text but the row is still processes and the real estate for the row is used in the report.

This was snaffled from a 2007 blog and I need to keep it for my reference.

Place this in the ROW visible field, replacing the PK_Field1 with the name of the field you set for Grouping

=(Previous(Fields!PK_Field1.Value) = Fields!PK_Field1.Value)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Retired None
Australia Australia
Started my programming life writing Excel 1.0 macros, God what a long time ago.

Now I'm a dotnet developer, I get to influence direction, play with new toys, build stuff, life is wonderful.

Greatest buzz you can get, walk past a row of desks and see your application running on all of them (and getting paid).

Greatest irritant, pouring 12 months of knowledge and experience into an empty head only to have it leave.

And now I'm retired, no deadlines, no meetings, no managers (except the ONE) and no users!

Comments and Discussions

 
GeneralSSRS Hide Duplicate Row Pin
Hamza Javed29-Apr-15 4:19
Hamza Javed29-Apr-15 4:19 
Thumbs Up | :thumbsup: what an easy and rare solution. Great work Thumbs Up | :thumbsup:

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.