Solved

SSRS 2005 - Duplicate table row grouping

Posted on 2013-05-21
5
986 Views
Last Modified: 2013-06-07
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:
Examples of current out, and end result.
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?
0
Comment
Question by:holemania
  • 3
  • 2
5 Comments
 
LVL 13

Accepted Solution

by:
Koen Van Wielink earned 500 total points
ID: 39186473
Hi Holemania,

How do you identify a category from a subcategory in your dataset?

Rgds,

Kvwielink
0
 

Author Comment

by:holemania
ID: 39187558
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?
0
 
LVL 13

Expert Comment

by:Koen Van Wielink
ID: 39187599
Could you post the raw data for the example you set? Pretty sure we can work something out on query level.
0
 

Author Comment

by:holemania
ID: 39230253
Got it working by rewriting my query.
0
 

Author Closing Comment

by:holemania
ID: 39230256
Thanks for the input.  Gave me ideas to rewrite my query and seems to be working.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by Valentino Vranken. A while ago I wrote an article called Chart Optimization Tips (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Chart-Optimization-Tips.html).  This article explained how …
Written by Valentino Vranken. Introduction: In a previous article (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Reporting-On-Data-From-Stored-Procedures-part-1.html) I announced that I would writ…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question