Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to manually add the month and year to a day

Hello everyone,

I have a table where I only have the day (1 to 31)

    

rejection TOTALproductDay
absence TRI25
piece jointe TRI9
manque page TRI9
justificatif TRI24
manque page TRI24

And I want to add the month and year in the load script. I tried something like that :

Date(Day/03/2016,'DD/MM/YYYY') as dateTest

But as result I have 30/12/1899.

If someone have an idea how to do it, that would be great !

1 Solution

Accepted Solutions
Gysbert_Wassenaar

MakeDate(2016,3,Day) as dateTest


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Gysbert_Wassenaar

MakeDate(2016,3,Day) as dateTest


talk is cheap, supply exceeds demand
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Use a Makedate statement.

Makedate(2016, 3, Day) as Date

sunny_talwar

Try like this:

Date(MakeDate(2016, 3, Day)) as dateTest

Not applicable
Author

Perfect ! That was exactly the function I was looking for