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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
francisvandergr
Partner - Creator II
Partner - Creator II

Problem with dates

I have a txt file with a text field "Last Backup to appliance2". I tried to convert this field to a date field. But this doesn't work. I attached to files the qvw and the datasource file.

Can someone help me ?

3 Replies
MayilVahanan

Hi

PFA

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable

You have to convert that text field to date using the correct format:

     Date#([Last Backup To Appliance], 'MM/DD/YYYY h:mm TT') AS TheDate

Attached I am sending your file using the same method as you (with IF in the calculated dimension), and with a better approach using set analysis: Sum({<TheDate={"<21-01-2013"}>} 1)

Regards,

francisvandergr
Partner - Creator II
Partner - Creator II
Author

Thank you. Can this also work with times? So i wanna see all records before a time :

for example all records before : 22-01-2013 6:02 AM

i have tried understanding formula.

Sum

({<TheDate={"<22-01-2013 6:02 AM"}>} 1)