Forum Discussion

Mark_Timson's avatar
Mark_Timson
Icon for Helper I rankHelper I
7 years ago
Solved

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 m...
  • OwenAuger's avatar
    7 years ago

    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