Forum Discussion
Anonymous
7 years agoNot applicable
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...
- 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,
v-jiascu-msft
Microsoft Employee
7 years agoHi 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,