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: 
adiarnon
Creator III
Creator III

KEY TABLE - problem

hi,

i created a kay table.

one of the fields in this table is date

when im creating a list box of the date field i see duplications:

like-

1/1/12

1/1/12

1/1/12

2/1/12

3/1/12

3/1/12

...

can someone halp me to understand why?

i need that each value will be shown once...

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

This is most likely because those dates contain a time portion which is hidden by the format. Test this by using Num(date) in a list box - you will see a fractional part which is the time.

Load with the Floor() function to get a clean date or use Date(Floor(date)) in the list box.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

This is most likely because those dates contain a time portion which is hidden by the format. Test this by using Num(date) in a list box - you will see a fractional part which is the time.

Load with the Floor() function to get a clean date or use Date(Floor(date)) in the list box.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
MayilVahanan

Hi

Try like this'

Load Date(floor(Datefield)) As Datefield  ...

Hope it helps

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