Link to home
Start Free TrialLog in
Avatar of holemania
holemania

asked on

SSRS 2005 - Duplicate table row grouping

I'm creating a report in reporting services and need to add grouping for main category and then sub-category.  The issue I'm running into is that if I have only 1 line, it repeats twice.

Is there a way to filter the detail grouping if it's a repeat?

See my example:
User generated image
In this example,   my current output is duplicating line with "5 Operation" twice.  Since I create a main category and a sub-category.  I tried to hide it, but if I do with the keyword operation, it also hide it from the grouping where I need it to show.  Basically, if it repeats, I want it hidden.  Any ways I can do this either via custom code or some manipulation within the 2 grouping?
ASKER CERTIFIED SOLUTION
Avatar of Koen Van Wielink
Koen Van Wielink
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of holemania
holemania

ASKER

There's a grouping ID which indicate that the set belongs to 1 group.  So for example, the first set would have a group ID of 001 and 2nd set would be 002, etc.

To set the category and sub-category, The first record there's a numbering field that is empty.  So I use a filter that if it's empty to show for the header and if it's empty to hide from the detail.  So that's how I was able to set it kind of like a category and sub-category.

The issue I'm running into is when it's 1 record and that numbering field has a number in there.  Since it is base on that grouping, it is 1 by itself.  So I want this to show in the header, but not in the detail since it is duplicating data per my example above.  My rule to filter out now doesn't work since it is relying on that field number to hide/show.

So that's why I'm asking if there's a way either through custome code or something, that if the header table (Row2) and the detail (row3) can somehow be configured that if the numbering for that subset is the same, to only show the header detail?
Could you post the raw data for the example you set? Pretty sure we can work something out on query level.
Got it working by rewriting my query.
Thanks for the input.  Gave me ideas to rewrite my query and seems to be working.