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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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