DAX measure to return the category name of my max field

Guitarmageddon

Board Regular
Joined
Dec 22, 2014
Messages
159
Hey Folks,
Not sure how to do this via dax. Of course, we can simply do a MAX formula to give us the max value for a field. But, what if I want to know a corresponding column heading for what the max was. In other words, a text field which "owns" that max.

Here is some survey summary data I have. Still kind of toying with how I present it. Each of the column headings on the pivot table is a measure I made. There is a column in the source data where the user selects a dropdown for "capabilities" which are the options you see in orange. And next to that column is a priority assessment. I made a measure for each to count it, not sure if I even needed to do that but I went ahead. How would I go about writing a measure to give me the text value of the corresponding highest measure? For example, for the orange columns, I would want a measure that returns "INCAPABLE", for the financial management capability. Likewise, "INCAPABLE" for merchant activities capability. Does that make sense? Is there a simpler way to do this? Perhaps it could have been done inside a table with M/power query before I exported.

1676648853654.png

The measures were built like this just to give you an idea of the scheme
1676648891753.png
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,214,989
Messages
6,122,622
Members
449,093
Latest member
catterz66

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top