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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
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!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.