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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Using a measure inside a Switch

Hi everyone, is there a way to create a switch function from a measure?

 

I have seen: SWITCH( Table[ column]... etc 

 

I need to group a measure, to put it in rows. (not in a filter, but in rows)

I have Data% as a measure = 

 

DATA% = IF(ISBLANK([DATA-OrderCount]/[OrderNumberCount]),0,[DATA-OrderCount]/[OrderNumberCount])

This is my goal:

 

patty_beaty_1-1669212540954.png

 

 

and this is how my data looks and this is what I need my result to look for (Remember, DATA% is a measure)

patty_beaty_2-1669212608550.png

fyi, I have created a filter with the help of one forum here (using a separate table https://www.youtube.com/watch?v=AZAL-QPn5Zc), BUT I am NOT  looking for that because I am unable to bring or connect the CustomerCount to the options in the filter (unless there is a way to do this connection, then that is what I am looking for)

Thank you in advance!!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , I think you need Dynamic Segmentation

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


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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , I think you need Dynamic Segmentation

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


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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.