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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculate No. of Year between 2 dates(QlikSense)

Hi All,

I have one filed as "JoiningDate" and other as " BirthDate". I want to calculate "Age" i.e difference between 2 dates in no. of years  for each record and then need to calculate Avg Age.

How can I do this either in Load Script or in directly chart function. Please help. thanks.

1 Solution

Accepted Solutions
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

I think the most simplistic calculation could be this:

round( (JoiningDate - BirthDate)/365 )

Cheers,

Oleg Troyansky

Upgrade your Qlik skills at the Masters Summit for Qlik - coming to Boston, MA this October!

Ask me about Qlik Sense Expert Class!

View solution in original post

2 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

I think the most simplistic calculation could be this:

round( (JoiningDate - BirthDate)/365 )

Cheers,

Oleg Troyansky

Upgrade your Qlik skills at the Masters Summit for Qlik - coming to Boston, MA this October!

Ask me about Qlik Sense Expert Class!
swuehl
MVP
MVP

Maybe using the Age() function?

age - script and chart function ‒ Qlik Sense