Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Measure totals do not return expected values

Hi All,   I've a simple measure with 2 variables that calculate the sum/difference of columns from multiple tables and result is set to return min of these 2 variables, It displyed correctly in the...
  • v-alq-msft's avatar
    6 years ago

    Hi, Anonymous 

     

    Based on your description, I created data to reproduce your scenario.

     

    You may create three measures as follows.

    AB = SUM('Table'[A])+SUM('Table'[B])
    
    CD = SUM('Table'[C])+SUM('Table'[D])
    
    MinResult = 
    SUMX(
        'Table',
        CALCULATE(MIN([AB],[CD]))
    )

     

    Result:

     

     

    Best Regards

    Allan

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.