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: 
evansabres
Specialist
Specialist

Date List Box

I have a date field called 'StartDate' which is displays in the data as

2/8/2017 12:00

.

I want to create a list that displays the dates (StartDate) however, within the data it is possible for the same actual date to appear twice. For example

StartDate

2/8/2017 15:15

2/8/2017 12:00

2/8/2017 17:47

In my script, I have transformed the date to only pull in the left 10 characters of the field by doing

LEFT(StartDate, 10)          as cmpSTRTDTE so that when I create a list box, the data appears as 2/8/2017. However, there are still multiple values for 2/8/2017.

Is there a way to either in the script or in a calculated dimension only display the date once?

Ideally, I want the list to display the StartDates but only have each date appear once.

1 Solution

Accepted Solutions
sunny_talwar

Transform using Floor function

Date(Floor(StartDate)) as StartDate

Read more here:

Why don’t my dates work?

QlikView Date fields

Get the Dates Right

View solution in original post

2 Replies
sunny_talwar

Transform using Floor function

Date(Floor(StartDate)) as StartDate

Read more here:

Why don’t my dates work?

QlikView Date fields

Get the Dates Right

evansabres
Specialist
Specialist
Author

Great thank you