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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.