Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikView forum consolidation is complete. Labels are now required. LEARN ABOUT LABELS
cancel
Showing results for 
Search instead for 
Did you mean: 
taylor_jesse
Creator
Creator

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
MarcoWedel

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
MarcoWedel

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

taylor_jesse
Creator
Creator

Thank you