Forum Discussion
Lowest Value Name
- 5 years ago
Hi abartozzi,
Depending on your data structure, calculating the field name corresponding to the maximum value in different fields is not supported, perhaps you can change the data structure to unpivot 'AVES', 'Bookling.com', 'Agoda.com', etc. into one column as follows.
Then try measure as:
Measure 2 = IF( [Measure]=MAXX(FILTER(ALL('test table'),'test table'[Category]=MAX('test table'[Category])),[Measure]), MAX('test table'[Subcategory]), BLANK() )I added this into the demo, please try it.
If you still have some question, please don't hesitate to let me known.
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
abartozzi , Based on what I got.
Remove OTA from column. Create this measure on you measure in matrix column
calculate(Min(Table[OTA]), ,TOPN( 1,allselected(Table[OTA]),[Measure],DESC), values(Table[OTA])))
and use this one
Hi amitchandak
just to clarify, OTA is not a column as in Expedia, Findhotels, etc. are OTAs so what i have to try to come up with is the name of the lowest value among all of these (there are more XD). So going back to your measure, shall I list all the involved columns (Expedia, Findhotels, etc) to imply the list of column to check?
thanks for your help