Forum Discussion
andrieskoo
4 years agoFrequent Visitor
Total sum calculate incorect
Hi everyone, Please help me to find solution how to fix my measure. I have a table and in earch row is calculating measure named "Income", in row in calculate corektly, byt in sum and in cart it ca...
- 4 years ago
Hi andrieskoo
Please refer to the sample file with the solution https://we.tl/t-S1IzTm6gBNIncome = SUMX ( SUMMARIZE ( Contracts, Contracts[ID], Contracts[SIGN_DATE], Contracts[STATUS] ), VAR VATSUM = CALCULATE ( SUM ( 'Registr VAT'[SUM] ) ) VAR RWSUM = CALCULATE ( SUM ( RW[SUM] ) ) VAR FSSUM = CALCULATE ( SUM ( FS[SUM] ) ) RETURN IF ( VATSUM <> 0 || RWSUM <> 0, FSSUM - VATSUM - RWSUM ) )
tamerj1
Community Champion
4 years agoHi andrieskoo
Please refer to the sample file with the solution https://we.tl/t-S1IzTm6gBN
Income =
SUMX (
SUMMARIZE ( Contracts, Contracts[ID], Contracts[SIGN_DATE], Contracts[STATUS] ),
VAR VATSUM = CALCULATE ( SUM ( 'Registr VAT'[SUM] ) )
VAR RWSUM = CALCULATE ( SUM ( RW[SUM] ) )
VAR FSSUM = CALCULATE ( SUM ( FS[SUM] ) )
RETURN
IF (
VATSUM <> 0 || RWSUM <> 0,
FSSUM - VATSUM - RWSUM
)
)- andrieskoo4 years agoFrequent Visitor
Thanks a lot!