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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Determine the maximum value of a measure

Hi, guys

I'm looking to write a DAX formula to determine the maximum value of the measure and find the X axis value associated with that.

The curve if that measure is plotted with the date will look something like this. Therefore, I am looking for a way to determine the maximum value (here 0.53M) and the date on which that number registered (apr 19 here). Can you help me find a way to do it?

Thank you

1 ACCEPTED SOLUTION
v-zhenbw-msft
Community Support
Community Support

Hi @Anonymous ,

 

We can use the following measures to meet your requrirement.

 

MaxValue = MAXX(GROUPBY(ALLSELECTED(‘Table’),’Table’[X-Axis]),CALCULATE([Measure_Value]))

 

X-AxisOfMaxValue = MAXX(FILTER(SUMMARIZE(‘Table’,’Table’[X-Axis],”TempValue”,CALCULATE([Measure_Value]),[TempValue]=[MaxValue]), [X-Axis])

 

We create a sample and the result like this,

 

D 1.jpg

 

If it doesn't meet your requirement, Could you please show the exact expected result based on the tables that we have shared?

BTW, pbix as attached.

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-zhenbw-msft
Community Support
Community Support

Hi @Anonymous ,

 

We can use the following measures to meet your requrirement.

 

MaxValue = MAXX(GROUPBY(ALLSELECTED(‘Table’),’Table’[X-Axis]),CALCULATE([Measure_Value]))

 

X-AxisOfMaxValue = MAXX(FILTER(SUMMARIZE(‘Table’,’Table’[X-Axis],”TempValue”,CALCULATE([Measure_Value]),[TempValue]=[MaxValue]), [X-Axis])

 

We create a sample and the result like this,

 

D 1.jpg

 

If it doesn't meet your requirement, Could you please show the exact expected result based on the tables that we have shared?

BTW, pbix as attached.

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

MFelix
Super User
Super User

Hi @Anonymous ,

 

You need to use the MAXX function to get the number you are looking for.

 

You need something similar to:

MAximum = MAXX(Table, [Measure])

Be aware that the table need to be adjusted to your needs.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors