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

x
?
Solved

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

Posted on 2013-06-21
1
Medium Priority
?
554 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
[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
1 Comment
 
LVL 1

Accepted Solution

by:
RCWade earned 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
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…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

604 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