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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sya
Helper I
Helper I

Choose Different Measures Based on Slicer

Hello all,

 

I have 2 measures:

1. DSO

2. DSO Allocated

 

Is it possible to create a formula where:

 

if I set the slicer to choose a particular client group e.g. A, the chart will display value from 'DSO Allocated' measure. 

But if I set the slicer to 'Select all', that same chart will display value from 'DSO' measure.

 

Please refer picture

sya_1-1661236855454.png

Regards,

Sya

 

5 REPLIES 5
Anonymous
Not applicable

Hello

 

Create a new measure to put in your visual

Measure

var selectcltgroup=selectedvalue(Client Group)

if(selectcltgroup="A",DSO Allocated','DSO')

Hi @Anonymous , thank you for your answer. But what if there are hundreds of client groups? Is there a shorter way to list down all the groups?

Anonymous
Not applicable

Sya, The best way to do if you have hundreds of clients group would be to create a tble with client group and dso allocated and search the value in a measure to return but it will be long....

amitchandak
Super User
Super User

@sya , Check if field parameters can help

 

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

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

That is an awesome article! However i think it does not work with my case

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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 (6,050)