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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors