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

Compare current year sale with previous year + flexibility to choose current year from filters

$
0
0
Hi All, I want to compare current year sales data with previous year and user will have flexibility to choose the current year from the filters (i.e. 2016 or 2015 or 2014 etc). Below code is working, but by default it take 2016 as current year and takes 2015 last year and giving me the results. Last_year_sales = CALCULATE(SUM('Table'[Sales]), PARALLELPERIOD(Table'[Date],-1,YEAR)) Note: Date is full date DD-MM-YYYY I am having one more column as "YEAR" and using this as filter in the report. When selecting year as 2015 as current year it won't work. Please help me.. Thanks, Krishna

Viewing all articles
Browse latest Browse all 213819

Trending Articles



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