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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Timestamp SQL Conversion

Hi All,

I am having an issue with some timestamp columns in Qlikview

I want to convert DateRaised to a Date format in Qlikview (DD/MM/YYY) so it works better with my master calendar.

The data all runs through but when presented in a table the Master Calendar field does not populate every row as it is only looking for DD/MM/YYYY

What is the best way in a SQL Select to convert the timestamp?

Thanks in advance.

1 Solution

Accepted Solutions
maxgro
MVP
MVP

if you want a date fromDateRaised

date(Floor(DateRaised))

1.png

View solution in original post

5 Replies
maxgro
MVP
MVP

if you want a date fromDateRaised

date(Floor(DateRaised))

1.png

Not applicable
Author

Thanks Massimo, that does not work in the Select statement though, so do I need to declare it in a Load Statement?

jpenuliar
Partner - Specialist III
Partner - Specialist III

You can do a preceding load on top of your select script.

Load *,

floor(date) as x;

select

...

from

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Use the convert or cast function. See CAST and CONVERT (SQL Server Compact)


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks for your help guys a combination of Massimo and Jonathans answers have done the trick

As always the QV Community Rocks !