Forum Discussion
ezequiel
Microsoft Employee
8 years agoShow the first bigger value
Hi, I have a table with all the days of the week and some values associated to them - Sales. Basically 2 columns. I just need to show the name of the day with the higher value on the sales column...
- 8 years ago
Hi ezequiel
If you have one value against each day, these MEASURES should give you desired result in a CARD
Measure = CALCULATE ( VALUES ( TableName[Day] ), FILTER ( ALL ( TableName ), TableName[sales] = MAX ( TableName[sales] ) ) )Alternate Measure = LOOKUPVALUE ( TableName[Day], TableName[sales], MAX ( TableName[sales] ) )
Zubair_Muhammad
Community Champion
8 years agoHi ezequiel
If you have one value against each day, these MEASURES should give you desired result in a CARD
Measure =
CALCULATE (
VALUES ( TableName[Day] ),
FILTER ( ALL ( TableName ), TableName[sales] = MAX ( TableName[sales] ) )
)
Alternate Measure = LOOKUPVALUE ( TableName[Day], TableName[sales], MAX ( TableName[sales] ) )