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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors