Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
mwscott1
Creator
Creator

Flooring mixed timestamp and date data

In my data I have a mix of timestamps and dates. When I floor this to try and return all entries at dates. It appears only the entries that are dates in the original data are returned. None of the timestamp entries show.

date(floor([Completed Date]),'MM/DD/YYYY') as [Completed Date]

3 Replies
Mark_Little
Luminary
Luminary

Hi,

It could be down to Qlik Seeing the timestamp data as a string and not a date. maybe try soemthing like

DATE(DATE#(LEFT([Completed Date],10),'DD/MM/YYYY'),'DD/MM/YYYY') as [Completed Date]

Mark

YoussefBelloum
Champion
Champion

Hi,

it is because you're using only formatting function Date().

you will need to use Date#() to interpret both format differently combined with Alt() and encapsulate the whole into Date() function

Anil_Babu_Samineni

Is that the same? Flooring mixed timestamp and date data

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