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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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
Partner - Champion III
Partner - Champion III

MakeDate(2016,3,Day) as dateTest


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

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