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
SelflearningBi
Helper III
Helper III

switch function only show 1 value

SelflearningBi_0-1657211638052.png

Hi stilll leaning how to do dax and all kinds of stuff,  I am trying to create a column that display turnover % such as 0~3%  3%~6%  6%~9% 9%+
not sure why its only display one as you can see i highlighed in oranger color. 

SelflearningBi_1-1657211749552.png

 this is the turnover % measure I created 

 is it because of my measure ? 

and this is the column function:

% performance = SWITCH(TRUE(),
isblank(turnover%), blank(),
'A_Measure'[Turnover%]<=0,"0%~3%",
'A_Measure'[Turnover%]<=1,"3%~%6",
'A_Measure'[Turnover%]<=2,"6%~9%",
"6% +")
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @SelflearningBi ,

 

It seems like you create a calculated column for the slicer. 

As you can see from my example below, the calculated column does not change dynamically, while the measure canges.

vstephenmsft_1-1657615303091.png

vstephenmsft_2-1657615319273.png

 

As a workaround, you could create a [% performance] measure uses the original fourmula.

Then create the following table for the slicer by entering data.

vstephenmsft_3-1657615520419.png

 

Create a measure for the visual level filters.

Measure = IF(ISFILTERED('Table (3)'[performance slicer]),IF(SELECTEDVALUE('Table (3)'[performance slicer])=[performance measure],1),1)

Put the measure into the visual level filters, set up show items when the value is 1.

vstephenmsft_4-1657615729273.pngvstephenmsft_5-1657615736165.png

vstephenmsft_6-1657615743817.png

 

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @SelflearningBi ,

 

It seems like you create a calculated column for the slicer. 

As you can see from my example below, the calculated column does not change dynamically, while the measure canges.

vstephenmsft_1-1657615303091.png

vstephenmsft_2-1657615319273.png

 

As a workaround, you could create a [% performance] measure uses the original fourmula.

Then create the following table for the slicer by entering data.

vstephenmsft_3-1657615520419.png

 

Create a measure for the visual level filters.

Measure = IF(ISFILTERED('Table (3)'[performance slicer]),IF(SELECTEDVALUE('Table (3)'[performance slicer])=[performance measure],1),1)

Put the measure into the visual level filters, set up show items when the value is 1.

vstephenmsft_4-1657615729273.pngvstephenmsft_5-1657615736165.png

vstephenmsft_6-1657615743817.png

 

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

amitchandak
Super User
Super User

@SelflearningBi , You should not use a measure in a calculated column , that will not work

 

You need

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

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

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.