Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
Did you try my expression? It will work
no it didn't
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))
Hi,
Do you want Max time of all the records in all fields??
try
max(time(total DATE_DEB)
HTH,
Abdul
You can't use Max() in calculated dimensions, at least not without aggr().
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
Try this also,
=Time(Now())
please post some sample data and your expected result
thanks
regards
Marco
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)