Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Announcing the newest addition to the Qlik Community, Qlik Gallery! Learn More
mwscott1
Contributor

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
Partner
Partner

Re: Flooring mixed timestamp and date data

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
Esteemed Contributor

Re: Flooring mixed timestamp and date data

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

Re: Flooring mixed timestamp and date data

Is that the same? Flooring mixed timestamp and date data

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)