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

How can i substract Year field from Current Year?

Hi All,

I have a field Year.

Year:

2005

2006

2007

How can i create another field by substracting each value of Year Field from the Current Year.

How i need is

2012-2005

2012-2006

2012-2007

in a seperate field.

Thanks in advance.

Regards

Kumar

1 Solution

Accepted Solutions
Not applicable
Author

use this:

Load Year, year(today())-Year as NewYearfield

View solution in original post

1 Reply
Not applicable
Author

use this:

Load Year, year(today())-Year as NewYearfield