Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
master_student
Creator III
Creator III

maximum time

Hello everyone

please how to get the maximum time of a date field that has this format : 12/06/2013 12:33:55

Thanks in advance

18 Replies
Anonymous
Not applicable

Did you try my expression? It will work

master_student
Creator III
Creator III
Author

no it didn't

Capture.PNG

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Use only the date as dimension and Max(Time(DateTimeField)) as expression. Max() is an aggregation function to be used in a table expression.

You can wrap all identical dates together using a calculated dimension like: Date(Floor(DateTimeField))

Not applicable

Hi,

Do you want Max time of all the records in all fields??

try

max(time(total DATE_DEB)

HTH,

Abdul

Peter_Cammaert
Partner - Champion III
Partner - Champion III

You can't use Max() in calculated dimensions, at least not without aggr().

master_student
Creator III
Creator III
Author

I need to set a condition in my expression to display the time only if it is >13:00:00 and <14:00:00

If(time(DATE_DEB)>'13:00:00', and time(DATE_DEB)>'13:00:00', '')

any idea please

susovan
Partner - Specialist
Partner - Specialist

Try this also,

=Time(Now())

Warm Regards,
Susovan
MarcoWedel

please post some sample data and your expected result

thanks

regards

Marco

Anil_Babu_Samineni

I don;t think what you are expecting, here you are posting issue is different to now? Can you please post the sample application which demonstrates the expected o/p?

Anyway, try this

If you really have DATE_DEB has 12/06/2013 12:33:55 format, then might you will get below

Aggr(Date(Date#(If(Timestamp(Timestamp#(DATE_DEB,'DD/MM/YYYY hh:mm:ss'),'hh:mm:ss' > Timestamp(MakeTime(13:00:00),'hh:mm:ss') < Timestamp(MakeTime(14:00:00),'hh:mm:ss')), 'hh:mm:ss'),'DD/MM/YYYY hh:mm:ss'), DATE_DEB)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful