Forum Discussion

venug's avatar
venug
Helper II
6 years ago
Solved

DAX - Max value from basepack

Hi Everyone,

 

i have sample table like below one, i am going to calculate count on month. like O1B1 - 2, O1B2 - 1, O1B3 - 1, and O2B1 - 2, O2B2 - 2, O2B3 - 1.

from here i want to show max of count. B1 - 2, B2 - 2, B3 - 1.

 

I need DAX query of this scenario. 

 

OutletBasepackMonth
O1B1Jan
O1B2Jan
O1B1Feb
O1B3Mar
O2B1Jan
O2B2Jan
O2B1Feb
O2B2Feb
O2B3Feb

 

 

Output :

 

BasepackCount
B12
B22
B31

 

Regards

Venu

  • venug here is the measure for you

     

    Measure 2 = MAXX ( SUMMARIZE('Table (2)', 'Table (2)'[Outlet],'Table (2)'[Basepack]), CALCULATE ( COUNTROWS ( 'Table (2)' ) ) )

     

    drop BasePack and this new measure in a table visual and you will ge the result. Would appreciate Kudos 🙂 if my solution helped.

4 Replies