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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
VitaminSea
Frequent Visitor

Column with Multiple Conditions

Hello,

 

I have made a table with 3 criteria which indicate Customers:

YOY Sales, % – if it <-20%, then Customer is not reliable;

Paid on Time, % – if it <70%, then Customer is not reliable;

Average Sales per Year – if it <5000 EUR, then Customer is not reliable. 

 

According to that, green bubble marks reliable, red – not reliable Customers in each criteria. 

VitaminSea_0-1605537090845.png

 

Now I need to create a column which would group these Customers according to criteria: 

If there are all 3 green bubbles (non of criteria was achieved), then Customer is Good.

If there are 1 red bubble (one criteria was achieved), then Customer is Average.

If there are >1 red bubbles (two or all three criteria were achieved), then Customer is Bad.

 

Can someone bring the ideas how could I do that? My vision is to make three buttons (with ChicletSlicer) with Good, Average and Bad categories and like that sort Customers out. 

 

Thank you in advance. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@VitaminSea , Create a measure like

Switch ( True(),
[YOY Sales] >= -.20 && [Paid on Time] >= .7 && [Average Sales per Year] >=5000 , "Good",
[YOY Sales] < -.20 && [Paid on Time] < .7 && [Average Sales per Year] <5000 , "Bad",
"Average"
)

 

But this can not be used as slicer. For slicer, you have to create an independent table with these 3 values.  And filter in a new measure with values(Table[customer no]). Refer this to segmentation video https://www.youtube.com/watch?v=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

2 REPLIES 2
amitchandak
Super User
Super User

@VitaminSea , Create a measure like

Switch ( True(),
[YOY Sales] >= -.20 && [Paid on Time] >= .7 && [Average Sales per Year] >=5000 , "Good",
[YOY Sales] < -.20 && [Paid on Time] < .7 && [Average Sales per Year] <5000 , "Bad",
"Average"
)

 

But this can not be used as slicer. For slicer, you have to create an independent table with these 3 values.  And filter in a new measure with values(Table[customer no]). Refer this to segmentation video https://www.youtube.com/watch?v=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

EDIT -----------

I managed to get slicer with those 3 values. 🙂

 

 

@amitchandak, I watched your video, thank you.

But do not understand, how can I build a table with my 3 values which contain different meanings from different columns?

I mean in your video there is clear one-column data with one meaning of numbers. In my case, there are 3 different meanings of numbers and how can I join all of these into two columns named Start and End Limits?

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.