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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Mark_Timson
Helper I
Helper I

How to Sum a min measure

Hi all, I have a measure that contains a min(col) I have a matrix that has 1 parent and 1 child group. On the child level the min shows the correct values but on the parent level the min returns the min of the child level as a value. Is there anyway to sum this to top level?
1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

@Mark_Timson 

 

If you want to sum the minimum values by Child and return this sum at the Parent level, a measure something like this should do the trick:

 

Sum of Min by Child =
SUMX ( 
    VALUES ( YourTable[Child] ),
    CALCULATE ( MIN ( YourTable[Col] ) )
)

For an individual Child, you will still just see the min value, but at the Parent level you should see the sum across Children.

 

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

View solution in original post

2 REPLIES 2
OwenAuger
Super User
Super User

@Mark_Timson 

 

If you want to sum the minimum values by Child and return this sum at the Parent level, a measure something like this should do the trick:

 

Sum of Min by Child =
SUMX ( 
    VALUES ( YourTable[Child] ),
    CALCULATE ( MIN ( YourTable[Col] ) )
)

For an individual Child, you will still just see the min value, but at the Parent level you should see the sum across Children.

 

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Thank you very much ! This worked a treat. I need to get my head around using sum x and values and how this works specifically I think. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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