Forum Discussion
Dax version of excel Match function
- 4 years ago
Hi Anonymous ,
I'd suggest to unpivot the columns first as they suggested here:
Solved: Minimum Value across multiple columns - Microsoft Power BI Community
Here a quick example:
Then you unvpivot all columns that you wish to compare with each other to find the minimum value:
You would end up with something like this:
Lastly, create a measure in DAX like below:
ResultMeasure = VAR _minValue = CALCULATE ( MIN ( Table[Value] ), Table[Value] <> 0 ) RETURN CONCATENATEX ( FILTER ( Table, Table[Value] = _minValue ), Table45[Attribute.1], ", " )And you get the following result:
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Hi Anonymous ,
I'd suggest to unpivot the columns first as they suggested here:
Solved: Minimum Value across multiple columns - Microsoft Power BI Community
Here a quick example:
Then you unvpivot all columns that you wish to compare with each other to find the minimum value:
You would end up with something like this:
Lastly, create a measure in DAX like below:
ResultMeasure =
VAR _minValue =
CALCULATE ( MIN ( Table[Value] ), Table[Value] <> 0 )
RETURN
CONCATENATEX (
FILTER ( Table, Table[Value] = _minValue ),
Table45[Attribute.1],
", "
)And you get the following result:
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Thank you so much for the concise answer and it is greatly appreciated. I will build this in and get to work.
Weirdly excited to try this out lol
Cheers