Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Compare cumulative data between years

$
0
0

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])

Capture01.JPG

 

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]))
)

Capture.JPG

 

I want to obtain with the formula the same result as with TOTALYTD function

 

Thank you very much for your help

 

 

 


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>