Forum Discussion
UNIQUE MAX VALUE
- 7 years ago
Hi Anonymous
Use this formula in a measure
MaxCount = MAXX ( VALUES ( 'Table'[month] ), CALCULATE ( COUNT ( [id] ) ) )
Best Regards
Maggie
Hi Anonymous
Based on my understanding from your information,
The “amount” refers to the number of count of “id”,
the “Unique_Max” returns the count of “id’ for each month,
For example, in the above example, month1 and month2 has the same amount of 5, so what result do you want?
All rows show 5 for column “Unique_Max”, or only one row (month1 or month2?) returns 5?
Please help me clear about your requirement.
Best Regards
Maggie
I am trying to display the result of the formula in a "card visual" in powerBI, but once i have to " 2" Unique_Max such as 5 and 5, the card itself is showing "55" instead of "5". I m tryng to get only one "5".
please let me know if i was able to explain properly
- AlB7 years ago
Community Champion
Hi Anonymous
would it be possible for you to share the pbix? With dummy data if necessary
- v-juanli-msft7 years ago
Community Support
Hi Anonymous
Use this formula in a measure
MaxCount = MAXX ( VALUES ( 'Table'[month] ), CALCULATE ( COUNT ( [id] ) ) )
Best Regards
Maggie
- Anonymous7 years agoNot applicable
v-juanli-msft Thanks a lot