Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
retko1985
Creator II
Creator II

What is the difference between Inyear and Inyeartodate.

Thanks

1 Solution

Accepted Solutions
sunny_talwar

Try these two expression

=InYear(MakeDate(2018, 12, 31), Today(),0)

=InYearToDate(MakeDate(2018, 12, 31), Today(),0)

Since, 31st Dec 2018 is in 2018, it will show as -1 (TRUE) for InYear, but it is not between year start and today, it will show 0 for InYearToDate

View solution in original post

3 Replies
sunny_talwar

Try these two expression

=InYear(MakeDate(2018, 12, 31), Today(),0)

=InYearToDate(MakeDate(2018, 12, 31), Today(),0)

Since, 31st Dec 2018 is in 2018, it will show as -1 (TRUE) for InYear, but it is not between year start and today, it will show 0 for InYearToDate

jolivares
Specialist
Specialist

Tomorrow is true for InYear, but not for InYearToDate.  Likewise, Today() is true for both.