Solved

Hiding Row group column in SSRS report

Posted on 2013-05-28
6
1,317 Views
Last Modified: 2016-10-18
We have to hide/display or rearrange the row hierarchy based on the user parameter at run time in the SSRS matrix report.

For I have attached a .jpg file, in that we have 5 groups but at any time user wants to view only three groups(option will be provided to select the groups in the UI). So we have to hide
group and associated rows and columns.

In the attached image we  have selected speciality group column to hide.
SSRS.png
0
Comment
Question by:CGVAK
[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
6 Comments
 
LVL 16

Expert Comment

by:DcpKing
ID: 39203393
In each display cell you can set the visibility - either directly or with code (the "f" button). It can depend, for example, on some value set in a parameter.

To vary the display you could have a set of "buttons" (coloured boxes or buttons clipped from a program and shown as as graphics), and their action can be coded as setting some conditions (parameter) and then calling the same report as you're looking at.

hth

Mike
0
 
LVL 37

Expert Comment

by:ValentinoV
ID: 39203671
I assume the purpose of this is to hide certain levels of detail? In that case you can use the Row Groups window.

Give the following a try: click the ClinicianName item in the Row Groups to select it, then set its Hidden property to True through the Properties window.

Now render the report. You'll notice that the ClinicianName group level row is no longer shown and neither are any subgroups of it.

The Hidden property can be made dynamic by using an expression, as already mentioned by DcpKing. Which means your report can have a parameter to indicate up to which level should be shown.
0
 
LVL 1

Expert Comment

by:Prakash_Kavar
ID: 39204094
Hi,

1) Define one parameter with 5 default value (set which you want to display groups in UI)
    e.g practicalManager,PMState,Market etc..
2)In each row group properties hide show option use expression
  IIF(papameters.value="practicalManager","True","False")

so based on selected papameters value it will hide and show rows..

mark it correct if it seems to right solution for you.
0
How our DevOps Teams Maximize Uptime

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

 

Author Comment

by:CGVAK
ID: 39204766
Yes, The purpose is to hide certain level based on the parameter.

The issues are:
   a) white space in between columns
   b) unable to change required toggled item (no expression there)
ssrs1.png
0
 
LVL 37

Accepted Solution

by:
ValentinoV earned 500 total points
ID: 39206780
Did you try the method that I described?  You shouldn't be getting white space using that method.
0
 

Expert Comment

by:Pooja Arora
ID: 41848555
I think you can resolve this issue by using text boxes in the list.

1. Add a list and Add the text boxes in the detail column for all the columns you need
2. Then add a row group group by the column you want and check the option add header while creating the row group
3. in the header column add a rectangle and add the text boxes same no of columns you added in detail section
4. On the row group properties, select Page breaks between each instance and at the end of the group
5. Add the visibility condition on the detail column and header column section and you are done. Your report will rendered out nicely in excel.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

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 article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how the fundamental information of how to create a table.

730 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