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
mofai
Frequent Visitor

Conditional formatting based on 2 columns

Hi All,

Conditional formatting based on 1 column field and calculated measure

i m trying to implement a conditional formatting, to change the background color of a matrix cell.

My code is 

Condition_first_reply_time_50 = SWITCH(TRUE();
FactTickets[requesttyp]="question" && [First Reply Time (hrs)50%] >= 8; "Red";
FactTickets[requesttyp]="change" && [First Reply Time (hrs)50%] >= 8; "Red";
FactTickets[requesttyp]="service" && [First Reply Time (hrs)50%] >= 8; "Red";
FactTickets[requesttyp]="incident" && [First Reply Time (hrs)50%] >= 4 ; "Red";
"#83BC00")

21.7  -> is green
 
but it didnt work , i dont know why, by question , value of 21.7 i got the wrong color (green), should be red.2019-03-22 13_32_30-Zendesk Support Tickets Overview - Power BI Desktop.png

 

 
Thanks for your help!
1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @mofai ,

 

I tested with above formula, it set conditional colors as expected.

1.PNG

 

Best regards,

Yuliana Gu

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

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.