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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Apply a condition on a series of numbers

Hey,

I would like to get some help please.

I have a table which is just like that:

Column 1     Column 2      Month 1   Month 2  Month 3...

Category 1 Cateogry 1   Value 1     Value 2    Value 3

Category 1 Category 2   Value 4     Value 5    Value 6

Category 2 Category 1  Value 10   Value 11    Value 12

Category 2 Category 2  Value 13   Value 14   Value 15

.

.

.

.

So I would like to apply a condition to the values, but using a condition formating , I don't have an option to add the column 2 as condition as well :

If column 2 = Categorie 2 then there's a condition on the values

If column 2= Categorie 1 then there's another condition

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

My condition was that the colour will change if the categorie's name changes.

I've found the solution, i've used

MEASURE = SWITCH(TRUE(),condition,color)

View solution in original post

3 REPLIES 3
vjnvinod
Impactful Individual
Impactful Individual

@Anonymous 

 

If column 2 = Categorie 2 then there's a condition on the values

If column 2= Categorie 1 then there's another condition

what are those conditions?

Anonymous
Not applicable

My condition was that the colour will change if the categorie's name changes.

I've found the solution, i've used

MEASURE = SWITCH(TRUE(),condition,color)
v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

You may add a measure and use Color formatting by field value.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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