Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
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

taylor_jesse
Creator
Creator
Author

Thank you