Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

YTD, MTD with out using Master Calender

There are many posts on YTD, MTD which are using ID's,Is there a way to do with out creating flag's/Mastercalender for YTD, MTD?? 

I have tried but could not find desired results. please check sample file here..

1 Reply
Not applicable
Author

Hi Praveena,

I am pretty new to qlikview so have not really got a chance to study scripting so this is currently the formulas that I use to do a year on year comparison.  It works for me.

=num(sum({<FullDate={">31/05/2013<=$(ThisYearDate)"}>}Turnover),'$#,##0.00')

=num(sum({<FullDate={">31/05/2012<=$(LastYearDate)"}>}Turnover),'$#,##0.00')

variables

ThisYearDate

AddYears(Date(Max({<Turnover = {">0"}>} FullDate),))

LastYearDate

addyears(Date(Max({<Turnover = {">0"}>} FullDate),),-1)

Thanks,

Julian