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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to calculate YTD with common Sites

How to Calculate the YTD WIth common sites..Pls find attached sample file.

4 Replies
tresesco
MVP
MVP

Can you please explain a bit more about your required output?

Not applicable
Author

have to calculate YTD of those sites which are common in 2012 and 2013 .In the attached file we have different sites but 101,102,103 are common in 2012 n 2013.

Anonymous
Not applicable
Author

Hi Saurabh Wadhwa

             

              Create a variable vstartdate,venddate,vpstartdate,vpenddate and go to settings document properties and select trigger, choose variable event trigger and select venddate and add actions

    VSTARTDATE=YearStart(VENDDATE)

    VPSTARTDATE==AddYears(VSTARTDATE,-1)

VPENDDATE==AddYears(VENDDATE,-1) and final select in field

date=   ='>=' & VSTARTDATE & '<=' & VENDDATE

tresesco
MVP
MVP

May be like attached sample ? PFA