Forum Discussion

Nyx's avatar
Nyx
Frequent Visitor
3 years ago
Solved

Incorrect Total value but correct subtotals

I have the table (visual) below.
The first four columns, other than the date, are Measures.
The last column is another Measure calculated from those 4.
The total at the bottom is incorrect. It should be 281,482.
Is there a way to get a visual like a Card to show the sum of the final column?


Date        1                    2         3                   4       RETURN

 

The last column:

SUMX(
KEEPFILTERS(
VALUES('Table'[Date]),
CALCULATE(
IF(
(([column1]*[column2])+[column3])-[column4]<0,
0,
(([column1]*[column2])+[column3])-[column4])
))
 
 
The date is in a slicer and Feb to Nov 22 is selected.

1 Reply