Hello commnuity
I want to compare the cumulative of one variable over 2 years.
When I use the TOTALYTD formula I get the data I want:
cumulativeImpressions = TOTALYTD(sum(database[Impressions]);database[finaldate].[Date])
However, now I'm importing the data with Direct Query and I'm using a formula to calculate it, The problem is that when I use the formula the cumulative continues in 2016 with the data in 2015
cumulativeImpressions = CALCULATE ( SUM (database[impressions] ); FILTER(ALL(database); database[finaldate] <= MAX(database[finaldate])) )
I want to obtain with the formula the same result as with TOTALYTD function
Thank you very much for your help