Skip to main content
Announcements
YOUR OPINION MATTERS! Please take the Qlik Experience survey you received via email. Survey ends June 14.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Converting a timestamp into a date dimension.

Hi,

I am loading data via a qvd file and have a date field called date which is a timestamp field.

I want a listbox that contains only a single date for each day.

How can I use daystart() or or similar to convert these already loaded date timestamp values into a new field for my date only listbox?

Many Thanks

Sandy

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I always use date(floor(field))

View solution in original post

4 Replies
rbecher
MVP
MVP

Hi Sandy,

a good way is to load a separate date field from the timestamp with function date#(<timestamp>,<date format>) in the same load statement.

Then you can add a date listbox on this field which will display all dates once...

- Ralf

Astrato.io Head of R&D
prieper
Master II
Master II

There are various way, usually we use FLOOR-function for this purpose:

FLOOR(Timestamp)

HTH
Peter

Anonymous
Not applicable
Author

I always use date(floor(field))

Not applicable
Author

Thanks for all the useful suggestions.

I have used date(floor(date)) and it works fine!

Cheers

Sandy