Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

Should I use a lookup? How do I do this in a parameter expression?

$
0
0

Hi Everyone,

I have about 10+ shared data sets. All of these shared data sets queries have query parameter in them using a StaffCode:

'AND StaffCode IN(@StaffNameParameter)'

Or another variation

'AND S_Code IN(@StaffNameParameter)' (just different field names for the same staff code, wonderful, I know).

All was good and well until I received a requirement specifying that the Staff List parameter must default to the user accessing the report.

I was able to do this as my Staff List Data set brings in a 'LoginUser' field which I matched up against the User!UserID built in field.

StaffCode  StaffName       LoginUser
EXMPL01    Lovely Name     DOMAIN\lovelyname

However, when I changed my Parameter value to 'LoginUser' instead of 'StaffCode', all of my data sets were still pointing at 'StaffCode' instead of the updated parameter value 'LoginUser'.

Question: Is there any way to get around this other than trying to go back to all of my shared data sets and modifying their queries and joins?




Viewing all articles
Browse latest Browse all 28687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>