Solved

Is there a way in SSRS to assign default report parameters by user?

Posted on 2013-06-21
1
544 Views
Last Modified: 2013-07-01
I have serveral reports which utilize 6-8 parameters.

I have different users from different departments accessing the report.

I am tasked to find a way to create default parameters configured differently for about 5 different types of users.

Is it possible in SSRS?
0
Comment
Question by:rhservan
1 Comment
 
LVL 1

Accepted Solution

by:
RCWade earned 500 total points
ID: 39266273
You can do it via UserID, which you may be able to tie into a grouping system.

Based on UserID:
In the report builder, select the parameter you want to change.

Then under 'Default Values', you can add an expression which uses the Built-In fields of UserID, similar to the expression shown below:

=SWITCH(User!UserID="domain\User1", "Value1", User!UserID="domain\User2", "Value2")

When User 1 runs the report, Value1 will automatically be selected. Of course, you can use other methods in place of SWITCH, but for just a few potential options, its not too bad.

To put this in use based on groups, you could used a query to pull the defaults from another table which contains a username field, group, and default value, and then use the 'Get Values from Query' where you would have to pass the UserID field to find the correct group/default parameter value.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

920 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

16 Experts available now in Live!

Get 1:1 Help Now