Forum Discussion
fpavan76
9 years agoRegular Visitor
Calculate Grand Total with Conditional
Hi to all, I need a suggest about a measure to calculate grand total with particular condition. I have 3 columns A, B and C I want insert this condition: IF A+B > C then A+B else 0 This formula ...
fpavan76
9 years agoRegular Visitor
A,B and C are a measures sum of several values.
for example:
A= CALCULATE ( SUM( Table1[A1] ); FILTER ( DimDates;DimDates[Date] ) )
If I add a tabel column I don't think obtain Grand Total a correct result..
thanks in advance
Franco
v-jiascu-msft
9 years agoMicrosoft Employee
Hi Franco,
We need a workaround here. In my example, we can see it works.
2Measure =
IF (
HASONEVALUE ( 'Date'[Calendar Year] ) = FALSE (),
SUMX ( 'Date', [Sales Amount] ),
[Sales Amount]
)
Maybe your formula is something like this:
2Measure =
IF (
HASONEVALUE ( 'Table1'[Column_in_table] ) = FALSE (),
SUMX ( 'Table1', [Measure] ),
[Measure]
)
Best Regards!
Dale