Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Report Builder: extra parameter based on the expression

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).

1 REPLY 1
d_gosbell
Super User
Super User

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)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.