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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
LeverPowerCLiff
Frequent Visitor

Select Parameter Fields Using Another Slicer

Hi

 

I wish to change the parameter fields one of my graphs shows based on the sector selected on a separate filter on the same page. 

I.e. For Sector A and B I want to show measures X, Y and Z but for Sector C I want the graph to show measures V and W

 

I'm sure there are workarounds with buttons and bookmarks with multiple charts but I would prefer to avoid these.

What I have tried is making a measure:

Filter =

var _selectedMeas = SELECTEDVALUE(ParameterFields[Parameter Fields])
var _SectorCSelec = IF(SELECTEDVALUE(Sector) = "Sector C", 1, 0)
var _NotSectorCSelec = IF(SELECTEDVALUE(Sector) = "Sector C", 0, 1)
return
SWITCH(
    TRUE(),
    _selectedMeas = Measure V, _SectorCSelec,
    _selectedMeas = Measure W, _SectorCSelec,
   _NotSectorCSelec
)
 
And then applying this as a filter to the graph, include if Filter = 1. This works as a way of sorting the slicer, e.g. if sector A is selected the only selectable measures are X, Y and Z but the selectedvalue(parameter) part does not work on the graph, the final part of the switch function is always returned so it shows all measures for sectors A and B but no measures when Sector C is selected.
 
Is there a change I can make such that the graph switches between these measures based on the sector selected?
 
Many thanks,
1 REPLY 1
Anonymous
Not applicable

Hi @LeverPowerCLiff ,

In order to better understand your demands and give the right solution, could you please provide some more specific information? such as your desensitized example data and a screenshot of your desired results?

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.