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

Distinct value in the list box

How to display distinct value in a list box?right now list box looks like

newtime
09.05
09.05
09.05
09.05
09.06

and in the script I am using below to populate the newtime field

 

time

(time#(log_time,'yyyyMMdd-hh:mm:ss'),'hh:mm') as newtime

log_time is a string field which looks like

20120927-09:05:01

20120927-09:05:02

20120927-09:05:03

is there a way list box can look like

newtime
09.05
09.06
1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try

time#(time(time#(log_time,'yyyyMMdd-hh:mm:ss'),'hh:mm'),'hh:mm') as newtime

View solution in original post

3 Replies
swuehl
MVP
MVP

Try

time#(time(time#(log_time,'yyyyMMdd-hh:mm:ss'),'hh:mm'),'hh:mm') as newtime

erichshiino
Partner - Master
Partner - Master

You can also try this:

maketime( hour ( time#(log_time,'yyyyMMdd-hh:mm:ss') ), minute( time#(log_time,'yyyyMMdd-hh:mm:ss') ) as newtime

Regards,

Erich

Not applicable
Author

thanks...