Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
henry2
Contributor II
Contributor II

FYTD AND PFYTD

How do I calculate a full year to date and pervious year to date.

Too calculate the 365days before and after.

3 Replies
abhijitnalekar
Specialist II
Specialist II

Hi @henry2 ,

LYTD :  ='>=' & Date(YearStart(Max(Date),-1), 'MM/DD/YYYY') & '<=' & Date(addyears(Max(Date),-1), 'MM/DD/YYYY')

CYTD :  ='>=' & Date(YearStart(Max(Date)), 'MM/DD/YYYY') & '<=' & Date((Max(Date)), 'MM/DD/YYYY')

 

Hope this will help you.

 

 

 

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!
henry2
Contributor II
Contributor II
Author

I WHAT THE FULL YEAR TO DATE FORMULA
AND PREVIOUS FULL YEAR TO DATE.
abhijitnalekar
Specialist II
Specialist II

Hello @henry2 ,

 

='>=' & date(now()-365,'DD-MM-YYYY') & '<=' & date(now()+365,'DD-MM-YYYY')

Is this kind of thing you are looking.

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!