Forum Discussion
Anonymous
5 years agoNot applicable
Return largest category based on a sum
Hi there, I am looking for a (hopefully) simple DAX measure to solve the following problem. I have a range consisting of a number of employees, a chosen product, and their savings in each pro...
- 5 years ago
Hi,
These measures work
Total amount = SUM(Data[Amount])
Top product = FIRSTNONBLANK ( TOPN ( 1, VALUES ( Data[Product] ), [Total amount] ), 1 )
Hope this helps.
- 5 years ago
Ashish_Mathur
Super User
5 years agoYou are welcome.
Anonymous
5 years agoNot applicable
Ashish_Mathur, quick follow up on this.
Is there an easy way to add a condition to the formula that the ranking is conditional on product not being blank?
Recently had a case where a product was missing, but since it contained the largest value, a blank was returned.
Thanks!
- Ashish_Mathur5 years ago
Super User
Hi,
Share some data and show the expected result.
- Anonymous5 years agoNot applicable
- Ashish_Mathur5 years ago
Super User