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

Year to Date, current vs last year issue

$
0
0

All the below calculations are working fine. Problem i am facing is By default when teh user opens the report the chart should show current vs previous year without any selection (Current year YTD vs LY YTD and Current year sales vs Last year sales). All charts now show data only if year is selected in slicer. If i dont select anything the chart do not show anything. any ideas how i can show these.

 

Year, date, month are all coming from a seperate date table. used this to create a new table (Calendar = CALENDAR("01-01-2016","12-31-2018"))

 

Revenue +ve = 0-sum(Fact[Cost])
ThisPeriodLY = CALCULATE([Revenue +ve], FILTER(ALL('Calendar'), 'Calendar'[Year] = MAX('Calendar'[Year])-1), SAMEPERIODLASTYEAR('Calendar'[Date]))

 

YTD = TOTALYTD([Revenue +ve],'Calendar'[Date])

LY YTD = CALCULATE([YTD],SAMEPERIODLASTYEAR('Calendar'[Date]) )



1.PNG

2.PNG


Viewing all articles
Browse latest Browse all 213819

Trending Articles



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