Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sridhar_sigired
Creator
Creator

Financial YTD Calculation

Hi,

Inyeartodate function works for calendar year dates

Ex: Inyeartodate(datefield,today(),0)

      Jan1st to today

Can anyone help me to get below dates

YTD - Apr1st to Today

PYTD - Apr1st 2015 to Nov16th 2015.

5 Replies
vinieme12
Champion III
Champion III

Just search for calendar, there are many references available

Fiscal Year

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
sunny_talwar

sunny_talwar

So something like this:

YTD

InYearToDate(datefield,today(), 0, 4)


PYTD

InYearToDate(datefield,today(), -1, 4)

shraddha_g
Partner - Master III
Partner - Master III

In your syntax,  inyeartodate(datefield, today(), 0,4)

For current YTD starting from Apr

And

Inyeartodate(datefield, today(), - 1,4) for prev year YTD starting from Apr

sridhar_sigired
Creator
Creator
Author

Thank you Sunny, i will check and mark it as correct answer..