Forum Discussion
Bakhtawar
Post Patron
7 years agoSum expression in dax
Hi all I am trying to do this expression but this shows an error expression .. vMotor_Paid = CALCULATE(Paid_excel,SUM(Paid_excel[PAID_AMOUNT]),Paid_excel[Flag]="Paid" ,Premium_Excel[...
Stachu
Community Champion
7 years agoThe first Paid_excel is not necessary, try this:
vMotor_Paid =
CALCULATE (
SUM ( Paid_excel[PAID_AMOUNT] ), //first argument is always the expression
Paid_excel[Flag] = "Paid",
Premium_Excel[LOB] = "MOTOR",
Paid_excel[PAID_DATE] = { [VpeDate] }
)
in your syntax SUM is considered a filter expression
Bakhtawar
Post Patron
7 years agohi when i try your expression this shows an error
- Stachu7 years ago
Community Champion
have you made any modifications to the code, e.g. adjusting table names etc.?
is the error in the measure I posted or do you use it later and the dependant measure is giving the error?