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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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