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
Solved

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

Posted on 2013-06-21
1
547 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

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.
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…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

808 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