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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
merep
Frequent Visitor

How can I get MAX or MIN value from a measure?

I am currently working with measures in a financial data structure in PowerBI, and I need to get the minimum value of a measure that's previously calculated to show in a graph.

 

The measure I need to get the minimum from is calculated from another measure that represents the accumulated costs of the various suppliers of a business. 

abc client.png

The image attached is the representation of the measure I need to get the minimum value of (ABC FILTER MAX A) and the name of the supplier. I tried to set a measure as 'MIN([ABC FILTER MAX A])' but it says I can only pass a column as an argument. Is there a way to do what I'm trying to do?

 

Thanks in advance!

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You need to break the measure down by supplier name. Try

Minimum value = MINX( VALUES( 'Table'[Account Description]), [ABC FILTER MAX A])

View solution in original post

2 REPLIES 2
FreemanZ
Super User
Super User

indeed, the result of measure is typically a single scalar value instead of a list of values. MIN expects to work on a list of value (a column). So in your case, suggest to add a calculated column in your table, than MIN that column.

 

There are other ways that can save the intermediate calculated column, like MINX. 

johnt75
Super User
Super User

You need to break the measure down by supplier name. Try

Minimum value = MINX( VALUES( 'Table'[Account Description]), [ABC FILTER MAX A])

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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