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

Matrix Condition Format Base On Diagonal

I have a matrix summary check same item from 2 people. Each person has result difference with other. I make matrix compare results from them. I want to make matrix like below. Please help me, It's posible in Power BI.

Maxtrix compare 2 resultsMaxtrix compare 2 results

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

Hi @hanhks

Look at my test

1.png

in query editor, add two conditional columns

2.png

3.png

Then create a measure

Measure = IF(MAX([Custom1])>MAX([Custom2]),1,IF(MAX([Custom1])=MAX([Custom2]),0,-1))

4.png5.png

6.png

 

Best Regards

Maggie

View solution in original post

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @hanhks

Look at my test

1.png

in query editor, add two conditional columns

2.png

3.png

Then create a measure

Measure = IF(MAX([Custom1])>MAX([Custom2]),1,IF(MAX([Custom1])=MAX([Custom2]),0,-1))

4.png5.png

6.png

 

Best Regards

Maggie

@v-juanli-msft

I tested by your guide and it's OK. Very nice. Thank you.

Phil_Seamark
Employee
Employee

HI @hanhks

 

What is the rule that determines the colours?


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

My expectation is cell postion (not cell value) under the diagonal line will fill blue (meaning better) and cell position upper diagonal will red color.

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.