As seen above, the cumulative sum is not showing for these 2 columns...
I'm getting crazy trying to find out what's wrong...
The formula is taken from Mr Marco Russo...
Please, help me!!
Why are you using the IF statement?
You should try to use only the second part of your formula without the IF.
As you can see, the result is the same for the following formula
Realizado Acumulado = CALCULATE ( SUM ( vwConsolidado[ValorRealizado] ); FILTER ( ALL (Dates ); Dates[Date] <= MAX ( Dates[Date] ) ) )
Try to use the following formula:
Realizado Acumulado = CALCULATE ( SUM ( vwConsolidado[ValorRealizado] ); FILTER ( ALL (vwConsolidado[Data] ); vwConsolidado[Data] <= MAX ( Dates[Date] ) ) )
Have you solved your problem?
If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please share some data sample which could reproduce your scenario and your desired output so that we could help further on it.
the final solution I used:
Realizado Acumulado = IF( MIN( Dates[Date] ) <= CALCULATE( MAX( Empreendimento[FimSafra] ); ALLSELECTED( Empreendimento ) ); CALCULATE ( SUM(Realizado[Valor]); FILTER(ALL(Dates); Dates[Date]<=MAX(Dates[Date]) ) ) )
thank you all!