Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Measure total is displayed incorrectly

I'm having 4 measures

1. Flag with 'Yes' or 'No' values based on some conditions

2. Amount_M , Which is the sum of another column amount: 

CALCULATE(ABS(SUM('Master'[Amount])))

3. Positive vals=

if([Flag]="Yes",SUMX(Table,[Amount_M]),0)
 
4. Negative vals=
if([Flag]="No",SUMX(Table,[Amount_M]),0)
 
now the total of both Positive vals and Negative vals is coming incorrectly. What can be done

 

2 Replies