Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Weekday and Day calc

I am getting Monthyear as below ..how can I manipulate this to get the week, weekday and date also ?

     Date(Date#(Trim(SubField(Header, Chr(10), 1)), 'MMM-YY'), 'MMM-YY') as MonthYear,

Thanks much.

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Week(Date#(Trim(SubField(Header, Chr(10), 1)), 'MMM-YY')) as Week,

WeekDay(Date#(Trim(SubField(Header, Chr(10), 1)), 'MMM-YY')) as WeekDay,

Date(Date#(Trim(SubField(Header, Chr(10), 1)), 'MMM-YY'),'DD-MMM-YY') as Date,



talk is cheap, supply exceeds demand
vishsaggi
Champion III
Champion III

Anonymous
Not applicable
Author

you can define additional parameters

D will give you day of month

WWW will give you weekday

WW will give you the weeknumber

but you Need a date in dayformat (means not a month)

e.g. =date('29.08.2016','MM/YYYY D WWW ') gives you