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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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