Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Dax - Creating a measure which return MAX Value of the Categories

Hi All,

 

I have 2 fields - Cluster (Dİmension) And Sold(Measure) 

 

I want to create a measure that returns the maximum value of the sold field by cluster. in the below case it should return 7263

 

WHynotbi61_0-1658853427217.png

 

Could you help, please?

Thanks all!

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 

please use

Max Sold =
MAXX ( ADDCOLUMNS ( VALUES ( TableName[Cluster] ), "@Sold", [Sold] ), [@Sold] )

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @Anonymous 

please use

Max Sold =
MAXX ( ADDCOLUMNS ( VALUES ( TableName[Cluster] ), "@Sold", [Sold] ), [@Sold] )

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.