Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

How to calculate Previous year date by using current year date

Hello Everyone,

I have Date column, i need to get previous year date,

For ex: i have 01/01/2014, i need to get 01/01/2013,

Please help how to write a formula at script level

Thanks in advance

Tags (1)
1 Reply

Re: How to calculate Previous year date by using current year date

Hi,

You can use AddYears() or AddMonth()

like

AddYears(dateField,-1)

or

AddMonths(dateField,-12)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Community Browser