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

How to convert Serial number back to date?

Hi Everyone, I am new to Qlik View.Untitled.png

How to convert Serial number back to date??

I am failing to convert it, i used "

Date(Floor(Num#(YM, '##')), 'DD/MM/YYYY') as Date, and Date(Num#(YM, '##'), 'DD/MM/YYYY') as Date, " they are resulting to 1966 which is wrong.

4 Replies
sunny_talwar

What date is 24181 suppose to be?

m_woolf
Master II
Master II

The numbers shown in your YM field represent dates in 1966.

Or
MVP
MVP

Date(YM) should do the job.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

This works for the data shown in your screenshot:

Convert Serial Back To Date thread282465.jpg

But we most certainly run into trouble for 2015.

As Sunny already mentioned, we need the calculation logic behind those weird serial numbers to be able to create a conversion expression that works reliably in every situation. If you don't know the logic, can you please tell us where you got them from?

The numbers themselves tell us nothing, and even when taking into account what is shown in the first column of your screenshot, they may quickly become ambiguous. For example, 24181 could be Jan-2014 or Nov-2013.