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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.