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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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