Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Calculate total based upon column conditions

I need to calculate the total value based upon the table above. If complexity is equal to low I need to multiply the backlog-complexity count by 25 and if medium the count by 80 and find the su...
  • v-jiascu-msft's avatar
    7 years ago

    Hi Anonymous,

     

    Please also try this DAX solution. 

     

    Measure =
    IF (
        HASONEVALUE ( 'table'[Complexity] ),
        COUNT ( 'table'[Complexity] ),
        SUMX (
            ALL ( 'table'[Complexity] ),
            IF (
                [Complexity] = "Low",
                CALCULATE ( COUNT ( 'table'[Complexity] ) ) * 25,
                CALCULATE ( COUNT ( 'table'[Complexity] ) ) * 80
            )
        )
    )
    

     

    Best Regards,