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
bourne2000
Helper V
Helper V

How to show the maximum value in the table?

Hi

 

I am having below data in my table

 

NameCategorySupplyValue
AAHBG200
ASHFJ300
AAJDK1000
BDHSJ5000
BFKGDK20
BSHWL12

 

I need to take out the maximum value from the above table and expecting below output

 

 

My expected output 

 

NameCategorySupplyValue
AAJDK1000
BDHSJ5000

 

Can anyone advise how to do this?

 

1 ACCEPTED SOLUTION
ribisht17
Super User
Super User

Hi,

 

Please use this DAX

Max Value = if(CALCULATE(MAX('Community Ques'[Value]),ALLEXCEPT('Community Ques','Community Ques'[Name]))=sum('Community Ques'[Value]),1,0)
ribisht17_0-1673054830615.png
Filter this DAX to 1
Thanks,
Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !! PL 300 Certification Series

View solution in original post

3 REPLIES 3
ribisht17
Super User
Super User

Thanks for marking the answer :), have a good day!

 

Regards,

Ritesh

Ashish_Mathur
Super User
Super User

Hi,

These measures work

Max value = MAX(Data[Value])
Category at maximum value = CALCULATE(MIN(Data[Category]),FILTER(VALUES(Data[Value]),Data[Value]=max(Data[Value])))
Supply at maximum value = CALCULATE(MIN(Data[Supply]),FILTER(VALUES(Data[Value]),Data[Value]=MAX(Data[Value])))

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ribisht17
Super User
Super User

Hi,

 

Please use this DAX

Max Value = if(CALCULATE(MAX('Community Ques'[Value]),ALLEXCEPT('Community Ques','Community Ques'[Name]))=sum('Community Ques'[Value]),1,0)
ribisht17_0-1673054830615.png
Filter this DAX to 1
Thanks,
Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !! PL 300 Certification Series

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