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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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.

Labels (1)
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
MVP
MVP

sunny_talwar
MVP
MVP

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..