Solved

SSRS 2005 - Duplicate table row grouping

Posted on 2013-05-21
5
1,020 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Steps to solve SSRS SQL 2008 R2 User Access Control (UAC) Permission Error With the introduction of SQL Server 2008 R2 and Vista (Windows 7 as well) came new enhanced security features. One of the features included was User Access Control (UAC) t…
Hi All, I am here to write a simple article to move SSRS (SQL Server Reporting Services) reports from one server to another. When I have faced the same issue to move reports those were developed by developer on development server and now need to …
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

707 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