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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.