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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
webportal
Impactful Individual
Impactful Individual

How to calculate the minimum of a measure?

How to calculate the minimum of a measure?

 

I have this Field Parameter with meaures:

NetSales = SUM('Table'[SalesValue])

SalesQty = SUM('Table'[Quantity])

 

Table is like:

Customer ID | Quantity | SalesValue

 

I want the minimum value of Quantity and Sales value per customer id.

 

So, using the NetSales in a slicer (single selection), the following expression:

MinNetSales = MINX('Table', SELECTEDMEASURE())
 
Which is returning BLANK.
3 REPLIES 3
webportal
Impactful Individual
Impactful Individual

@katika555 

Thank you for your help.

But, how about when the user changes the slicer value from Net Sales to Sales Quantity?

What you mena under Slicer Values Change?
Screenshot 2022-11-11 162330.png

MinSalesQty = CALCULATE(MIn('Sales'[Quantity]), ALLEXCEPT(Sales,Sales[Customer ID]))

Same for Qnt 

katika555
Resolver I
Resolver I

@webportal 

MinNetSales = CALCULATE(MIN(Sales[SalesValue]),ALLEXCEPT(Sales,Sales[Customer ID]))

See attached file: 
https://drive.google.com/file/d/1C-ssh8zFbl2PkfUvRTiiP0R4jLjlGVEq/view?usp=share_link

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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