Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
poooja
Creator
Creator

Script using Flag

Hi Qliks,

I am working on a project that requires me to To calculate MTD,PYMTD,QTD,PYQTD,YTD,PYYTD.I am trying to achevie this by writing the Script using Flag and not by creating Variables. Autocalendas flags(InMtd) are not working for MTD.Anyone have any ideas on how I can accomplish this? Thanks in advance.

Thanks!

Pooja

2 Replies
techvarun
Specialist II
Specialist II

Hi In Your Master calendar you need to create a flag isYTD for all the YTD entries and you can simply write a expression something like

=Sum(Qty*isYTD)

Brett_Bleess
Former Employee
Former Employee

Have a look at the following Design Blog post from Henric Cronstrom, may not be exactly what you want, but may give you some other ideas, and you can search through other posts in the Blog as well, there were more, but I grabbed this one thinking it was closest to what you were trying to do.  This is along the lines of what the above posted noted, but this provides a bit more context for you.

https://community.qlik.com/t5/Qlik-Design-Blog/Year-over-Year-Comparisons/ba-p/1462927?advanced=fals...

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.