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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
master_student
Creator III
Creator III

time

Hello,

I need  to display time only if it is >= 13:00:00

If(TIME (DATE_DEB)>'13:00:00', TIME (DATE_DEB), '')

How to do it?

Thanks

Labels (1)
9 Replies
sunny_talwar
MVP
MVP

May be this:

If(Time(DATE_DEB) > MakeTime(13), Time(DATE_DEB))

Digvijay_Singh
MVP
MVP

If(TIME (DATE_DEB)>13/24, TIME (DATE_DEB), '')

Chanty4u
MVP
MVP

try this

If(TIME (Field)>'13:00:00', TIME (Field),Time(Field)) as new

master_student
Creator III
Creator III
Author

it didn't work sunny.

or how to get the maximum time of the DATE_DEB, I tried this exp : MAX (Time(DATE_DEB)), it didn't work

DATE_DEB has this '19/09/2016 13:00:00'

sunny_talwar
MVP
MVP

How about this:

If(Time(TimeStamp#(DATE_DEB, 'DD/MM/YYYY hh:mm:ss')) > MakeTime(13), Time(TimeStamp#(DATE_DEB, 'DD/MM/YYYY hh:mm:ss')))

master_student
Creator III
Creator III
Author

nope. and the maximum time of the DATE_DEB field. any idea?

Thanks

sunny_talwar
MVP
MVP

In the script or front end? What are the dimensions?

tresB
Champion III
Champion III

Try like:

Time(MAX (Frac(DATE_DEB)), 'hh:mm:ss')

master_student
Creator III
Creator III
Author

in the front end