Solved

SSRS 2005 - Duplicate table row grouping

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Introduction Earlier I wrote an article about the new lookup functions (http://www.experts-exchange.com/A_3433.html) that ship with SQL Server 2008 R2.  In this article I’m going to show you another new feature of SSRS 2008 R2, this time in the vis…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

770 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