Solved

SSRS 2005 - Duplicate table row grouping

Posted on 2013-05-21
5
949 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 12

Accepted Solution

by:
Koen Van Wielink earned 500 total points
Comment Utility
Hi Holemania,

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

Rgds,

Kvwielink
0
 

Author Comment

by:holemania
Comment Utility
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 12

Expert Comment

by:Koen Van Wielink
Comment Utility
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
Comment Utility
Got it working by rewriting my query.
0
 

Author Closing Comment

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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Have you ever had to extract data from a Microsoft SQL Server database and export it to an Excel file, but did not want to use a DTS package? The concept in this article is not new, but it is the answer and will also work on 64-bit SQL boxes.   …
How to use Variables  and Custom code in SSRS report and Assembly reference to use compile shared code in SSRS. Its big question for all who are working with SSRS. It is easy to create assembly and refer in SSRS report, still there are some steps…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now