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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
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.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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