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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
aurora90
New Member

Multiple conditional formating in the matrix

Hi,

 

I have an issue with multiple conditions and multiple conditional formating.

I have Matrix with KPIs - different measures and Regions. 

I would like to put here conditions:  if there a blank value appears for the KPI 'OTC' and Region "ANA" then return text "ongoing transition", but if KPI is "TAX" and Region "APAC" comment will be "not in scope for company AAAA".  And so one.

aurora90_1-1619803363819.png

Second thing is colouring, so each measure have different treshold, so I cannot put same color scale to the whole matrix. Now, I've fixed it by adding to the raw data table column with color ID. It will not work properly if I will chose for e.g. few month on the MONTH slicer. Value of KPI is a AVG measure. Trend is the difference between current and last month results.

1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

Hi @aurora90 ,

 

>> if there a blank value appears for the KPI 'OTC' and Region "ANA" then return text "ongoing transition", but if KPI is "TAX" and Region "APAC" comment will be "not in scope for company AAAA".  And so one.

 

You need to fix it in your measure like:

 

Value1 = IF(MAX(Table[Measure]) = 'OTC'&&MAX(Table[Measure]) = 'ANA','ongoing transition',IF(MAX(Table[Measure]) = 'TAX'&&MAX(Table[Measure]) = 'APAC','not in scope for company AAAA',[VALUE]))

 

>>Second thing is colouring, so each measure have different treshold, so I cannot put same color scale to the whole matrix. Now, I've fixed it by adding to the raw data table column with color ID. 

 

You need to create a measure for your background color conditional format:

 

Capture2.PNG

 

Please refer to https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

 

 

View solution in original post

2 REPLIES 2
v-deddai1-msft
Community Support
Community Support

Hi @aurora90 ,

 

>> if there a blank value appears for the KPI 'OTC' and Region "ANA" then return text "ongoing transition", but if KPI is "TAX" and Region "APAC" comment will be "not in scope for company AAAA".  And so one.

 

You need to fix it in your measure like:

 

Value1 = IF(MAX(Table[Measure]) = 'OTC'&&MAX(Table[Measure]) = 'ANA','ongoing transition',IF(MAX(Table[Measure]) = 'TAX'&&MAX(Table[Measure]) = 'APAC','not in scope for company AAAA',[VALUE]))

 

>>Second thing is colouring, so each measure have different treshold, so I cannot put same color scale to the whole matrix. Now, I've fixed it by adding to the raw data table column with color ID. 

 

You need to create a measure for your background color conditional format:

 

Capture2.PNG

 

Please refer to https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

 

 

collinq
Super User
Super User

hi @aurora90 ,

 

I don't believe that you can format the text in a matrix to do conditional formatting output.  Unless you make a measure for each field that does what you want and put that measure into the value instead.

 

But, you can do the color and other items for the fields in the "value" section.  

In the matrix, select "Conditional Formatting" and then you can modify the various attributes in there.

collinq_0-1619904909525.png

 

 

 

 

 

 




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.