Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Hiding Row group column in SSRS report

Posted on 2013-05-28
6
Medium Priority
?
1,775 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

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 1000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

618 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