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
Delphia
Advocate II
Advocate II

Conditional formating of text field

Good day to all,

I try to do conditional formatting of the text field based on the other text field.

I have the following matrix:

Contract numberInvoice numberMultipleTotal
9999999i9No $123 
1111111i1Yes $321 
 i2Yes $456 
 i3Yes $788 
7777777i7No $787 

 

Column "Multiple" is Boolean and indicates whether there are multiple invoices for this contract.

 

Task: if "Multiple" = True, "Contract number" should be in red.

 

Is there any way to do it in PowerBI?

Thanks a lot in advance!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Delphia , You can only conditional format Contract number in table viusal

 

You can create a measure like

if(max(Table[Multiple]) ="Yes", "red", "black" )

 

Use this conditional formatting using the field value option

 

How to do conditional formatting by measure and apply it on pie?: https://youtu.be/RqBb5eBf_I4

 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Delphia , You can only conditional format Contract number in table viusal

 

You can create a measure like

if(max(Table[Multiple]) ="Yes", "red", "black" )

 

Use this conditional formatting using the field value option

 

How to do conditional formatting by measure and apply it on pie?: https://youtu.be/RqBb5eBf_I4

 

Thank you so much. So, I couldn't do it while using matrix...

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.