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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Mila
Frequent Visitor

Conditionnal formatting with 2 columns as a condition using SWITCH

Hi,

I've have to color a Speed column regarding to 2 others columns (Vari and Type).  When Vari >5 and Type in (10, 20) I should put Red color for Speed otherwise White.

I've created Colour mesure below :

Colour =
SWITCH(
TRUE(),
SELECTEDVALUE('Fact'[Vari] ) > 5 && SELECTEDVALUE('Fact'[Type]) =10 , "Red",
SELECTEDVALUE('Fact'[Vari%] ) > 5 && SELECTEDVALUE('Fact'[Type]) =20 , "Red",
"White")
But I'm not able to Use this calculated mesure in conditionnal formating as you can see in the picture (It's in French)

 

Mila_0-1656196409414.png

 

I need your help.

Thank you

1 ACCEPTED SOLUTION
Mila
Frequent Visitor

SpeeVarTyp
12910
525
50820
4535
13210

 

View solution in original post

4 REPLIES 4
Seanan
Solution Supplier
Solution Supplier

Hi @Mila

Is your measure set to the Text format?

NVIDIA_Share_wGs8KPWJiw.png

Mila
Frequent Visitor

Hi @Seanan ,

 

I don't have "Text" option in the Format box.

Mila_0-1656330814272.png

Do you have any idea of what is wrong whit my mesure Colour?

Thanks

Seanan
Solution Supplier
Solution Supplier

Hi @Mila 

Would you be able to provide the PBIX file without any sensitive data?

Mila
Frequent Visitor

SpeeVarTyp
12910
525
50820
4535
13210

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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