Forum Discussion
shakirkhanani
Helper I
8 years agoHighest Basket (Receipt) Value
Hello, I need help in trying to find the highest / Max "Receipt No." baesd on the "Amount" as per the below Data Table: Receipt No. Goods Code Time Price Qty Amount 201803230001 ...
- 8 years ago
Try this MEASURE
Measure = VAR MaxAmount = MAXX ( ALLSELECTED ( Table1[Receipt No.] ), CALCULATE ( SUM ( Table1[Amount] ) ) ) RETURN CALCULATE ( FIRSTNONBLANK ( Table1[Receipt No.], 1 ), FILTER ( ALLSELECTED ( Table1[Receipt No.] ), CALCULATE ( SUM ( Table1[Amount] ) ) = MaxAmount ) ) - 8 years ago
Its there in the variable of the above MEASURE
MaxAmount = MAXX ( ALLSELECTED ( Table1[Receipt No.] ), CALCULATE ( SUM ( Table1[Amount] ) ) )
Zubair_Muhammad
Community Champion
8 years ago
Also subscribe to following Power BI blogs and sites... and follow the posts/articles published there
www.powerpivotpro.com by @avisingh and Rob Collie
www.daxpatterns.com by @AlbertoFerrari and @marcorusso
www.sqlbi.com by abovegentlmen
https://exceleratorbi.com.au/exceleratorblog/ by @MattAllington
https://www.excelguru.ca/blog/ by @KenPuls
http://www.ashishmathur.com/knowledge-base/ by @Ashish_Mathur
shakirkhanani
Helper I
8 years agoThank you so much Zohaib for the tips and the books, will definitely check them out.