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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Conditionally pick column as legend based on no. of items selected in slicer

Hi,

I want to choose a column as a legend based on number of items selected on filter. If I select greater than one item in a OPERATOR slicer, I want operator as a legend else if i select only one item  i want route name as a legend. Is this possible in power bi map ? 

 

Capture.JPGCapture2.JPG

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try if field parameters can help

https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9afd

Field Parameters- One solution for Measure Dimension slicer: https://youtu.be/lqF3Wa1FllE?t=70

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak is there a way where i can just count the number of items in the slicer 'OPERATOR' and change legends based on the number of items selected ?
i dont want another slicer separately .. i want this work dynamically by counting the number of items selected in 'OPERATOR' slicer ...

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (25)