Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikviewaf
Creator
Creator

Convert Date to Number

Hi,

i have this formula in my script:

DATE(MonthEnd(Date#(Month & '-' & Year,'MMM-YYYY'))) as Invoice_Date_Num

basically generate the last day of the month with an input of Month+Year.

I want to transform this date in data-format like 42766, how this can be done in Qlik? Thanks

3 Replies
ahaahaaha
Partner - Master
Partner - Master

Hi,

Try

Div(Num(DATE(MonthEnd(Date#(Month & '-' & Year,'MMM-YYYY')))), 1)

antoniotiman
Master III
Master III

Hi Antonio,

it is already Dual Field (Text,Number)

Num(Invoice_Date_Num) -> 42766

Regards,

Antonio

sunny_talwar

Try this may be

Floor(MonthEnd(Date#(Month & '-' & Year, 'MMM-YYYY'))) as Invoice_Date_Num