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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
nick9one1
Helper III
Helper III

Help with a measure

I have a quite basic table of Audit results and I'm trying to put it in a matrix to display results across the year. 

nick9one1_1-1724336709305.png

 

The value of (first)Score is obviously just taking the first score from the whole table (below)

nick9one1_2-1724336827174.png


How would I use a measure to show the relevant score for the row (auditee)?

Thank you



1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @nick9one1 ,

I create a table as you mentioned.

vyilongmsft_0-1724379653136.png

Then I create a measure and here is the DAX code:

Measure = 
SWITCH(
    TRUE(),
    MAX('T1'[Score]) > 50, "Green",
    MAX('T1'[Score]) <= 50, "Red"
)

vyilongmsft_1-1724379708447.png

What I think is that you can add the measure into the matrix visual and it will achieve your requirement.

vyilongmsft_2-1724379782602.png

 

 

 

Best Regards

Yilong Zhou

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @nick9one1 ,

I create a table as you mentioned.

vyilongmsft_0-1724379653136.png

Then I create a measure and here is the DAX code:

Measure = 
SWITCH(
    TRUE(),
    MAX('T1'[Score]) > 50, "Green",
    MAX('T1'[Score]) <= 50, "Red"
)

vyilongmsft_1-1724379708447.png

What I think is that you can add the measure into the matrix visual and it will achieve your requirement.

vyilongmsft_2-1724379782602.png

 

 

 

Best Regards

Yilong Zhou

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

nick9one1
Helper III
Helper III

If I create a lookupvalue column to get the row it seems to work, but doesnt show all the cleaners as only two have been audited so far.


So I need to use the related 'legal full name' column from the userlist table. But doing that causes the problem in my first post.  

nick9one1_0-1724340493189.png

 




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors