Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

taylor_jesse
Contributor

Date(Date#()

Hi

Can anyone please explain the below functions for me

DATE(DATE#MID(FILENAME(),23,10),'YYY_MM_DD'),'M/D/YYYY')

Floor(Monthend()

Thank you

1 Solution

Accepted Solutions

Re: Date(Date#()

DATE(DATE#(MID(FILENAME(),23,10),'YYYY_MM_DD'),'M/D/YYYY')

extracts a date from the name of the file this expression is loaded from, starting from its 23rd character.

Floor(Monthend(SomeDateOrTimestamp))

returns the last day (date) of the month that contains SomeDateOrTimestamp.

Another expression that additionally formats the result as date would be:

DayName(Monthend(SomeDateOrTimestamp))



hope this helps


regards


Marco

View solution in original post

2 Replies

Re: Date(Date#()

DATE(DATE#(MID(FILENAME(),23,10),'YYYY_MM_DD'),'M/D/YYYY')

extracts a date from the name of the file this expression is loaded from, starting from its 23rd character.

Floor(Monthend(SomeDateOrTimestamp))

returns the last day (date) of the month that contains SomeDateOrTimestamp.

Another expression that additionally formats the result as date would be:

DayName(Monthend(SomeDateOrTimestamp))



hope this helps


regards


Marco

View solution in original post

Highlighted
taylor_jesse
Contributor

Re: Date(Date#()

Thank you