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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
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