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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Vanessa250919
Helper V
Helper V

Max in measure

Hello All,

I have 6 measures in DAX, and I'm trying to write a measure that will show which of the measures below has the highest result.

In the measures, there are numbers. Here are the 6 measures, can you help me?



Green NB
Grey NB
Orange NB
Yellow NB
Red NB
High Red NB

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi

 

Try using the dax below to get the maximum value for each row

 

MaxValue11 = 
MAXX(
    UNION(
        SUMMARIZE('Table', "Value", 'Table'[Green]),
        SUMMARIZE('Table', "Value", 'Table'[Grey]),
        SUMMARIZE('Table', "Value", 'Table'[Orange])
    ),
    [Value]
)

 

This is the result you want

vjialongymsft_0-1707703932457.png

 

 

Since there is no function in DAX that can be used to get the column names in a table, it is not possible to use DAX to change the color of a value based on the column where the maximum value is located.

 

 

 

 

 

 

Best Regards,

Jayleny

 

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
Vanessa250919
Helper V
Helper V

Vanessa250919_0-1707494749507.png


I need to have an other column : If the max number is Green, I need to see Green 

 

Anonymous
Not applicable

Hi

 

Try using the dax below to get the maximum value for each row

 

MaxValue11 = 
MAXX(
    UNION(
        SUMMARIZE('Table', "Value", 'Table'[Green]),
        SUMMARIZE('Table', "Value", 'Table'[Grey]),
        SUMMARIZE('Table', "Value", 'Table'[Orange])
    ),
    [Value]
)

 

This is the result you want

vjialongymsft_0-1707703932457.png

 

 

Since there is no function in DAX that can be used to get the column names in a table, it is not possible to use DAX to change the color of a value based on the column where the maximum value is located.

 

 

 

 

 

 

Best Regards,

Jayleny

 

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

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric 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.

Users online (29)