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

Subtracting dates and representing in other formats and figures

Hello,

Find attached. I explained in details in attach.

5 Replies
Anonymous
Not applicable
Author

I guess your problem is with the date format in QVD.  It doesn't fit the declared date format.  If leave it as is, the expression for the retirement date (I understand it is the earliest between 60years old and 35 years of service) is:

is:
=date(rangemin(
AddYears(date(date#([Employment date],'DD.MM.YYYY')),35),
AddYears(date(date#([Date of Birth],'DD.MM.YYYY')),60)
))

I'd better fix format on the data load to make expressions simpler.
You can figure out the rest, I assume.

Not applicable
Author

Date format isnt a problem we can convert to any suitable format.

Anonymous
Not applicable
Author

Hello,

PFA

HTH

Anonymous
Not applicable
Author

Exactly.

After you fix data format in the script, the expression fort the Retirement Date will be much simpler:

=date(rangemin(
AddYears([Employment date],35),
AddYears([Date of Birth],60)
))

Let me know if you need help with the other three.

Not applicable
Author

This abit helpful but date not correct i subtracted the dates online gettting a month difference.