Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Is it possible to add an extra parameters for a certain expression? If paramer a = 10 then show parametr b, else no parameter b
for instance if I have a userid like '%company.com' then I have extra parameter to select department (this is for managment), but if someone from the department logs in ''%company.hr.com, he already sees his data (this I have and it works).
You can't show and hide parameters dynamically in Report Builder. But you can use expressions and/or queries in the allowed values and default value for the parameter. So you could simply default the allowed values to a single deparment and set that as the default for the "hr" deparment example, but then have the allowed values return more values for other users (usually I'd have this based off some sort of user to department mapping tables)
User | Count |
---|---|
6 | |
4 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
3 | |
3 | |
2 | |
2 |