Forum Discussion
easyleesie
Helper I
6 years agoCumulative total for two dimensions. DAX for Measure
Hi All I followed a response to this and replied, but I'm not sure its getting noticed. This is my DAX: CumDAC = CALCULATE( sum(FactTable[DAC]), FILTER( ALLSELECTED(FactTable), FactTabl...
- 6 years ago
I think too many closed bracket in your formula.
CumDAC = CALCULATE( sum(FactTable[DAC]), FILTER( ALLSELECTED(FactTable), FactTable[Date] <=max( FactTable[Date] ) && FactTable[Policy]=SELECTEDVALUE(FactTable[Policy]) ) )Could you please try the formula about and make sure the brackets should show up in pairs in the formula.
easyleesie
Helper I
6 years agoHi Ryan
That gives:
The syntax for ')' is incorrect. (DAX(CALCULATE( sum( FactTable[DAC] ), FILTER ( ALLSELECTED( FactTable ), FactTable[Date] <=max ( FactTable[Date]) && FactTable[Policy] = SELECTEDVALUE( FactTable[Policy] ) ) ) ))).
ryan_mayu
Super User
6 years ago
I think too many closed bracket in your formula.
CumDAC =
CALCULATE(
sum(FactTable[DAC]),
FILTER(
ALLSELECTED(FactTable),
FactTable[Date]
<=max(
FactTable[Date] )
&& FactTable[Policy]=SELECTEDVALUE(FactTable[Policy])
)
)Could you please try the formula about and make sure the brackets should show up in pairs in the formula.
- easyleesie6 years ago
Helper I
Hi Ryan
So grateful! Thanks man.
Easy.