Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sampada0810
Creator
Creator

Week and Month key format

I want to convert my week id and month id into a correct readable format.

May be I will do this is edit script.

my Week Id is like '20161201' and I want it as '01/02/2016'

and my Month Id is '201602' , I want this as 'Feb 2016'

Is this possible ?

Or any other way around ?

Please help!!!

1 Solution

Accepted Solutions
sunny_talwar

May be like this:

For Week Id

Date(Date#([Week Id], 'YYYYMMDD'), 'DD/MM/YYYY') as [Week Id],

For Month Id

Date(MonthStart(Date#([Month Id], 'YYYYMM')), 'MMM YYYY') as [Month Id],

or

MonthName(Date#([Month Id], 'YYYYMM')) as [Month Id],

View solution in original post

2 Replies
sunny_talwar

May be like this:

For Week Id

Date(Date#([Week Id], 'YYYYMMDD'), 'DD/MM/YYYY') as [Week Id],

For Month Id

Date(MonthStart(Date#([Month Id], 'YYYYMM')), 'MMM YYYY') as [Month Id],

or

MonthName(Date#([Month Id], 'YYYYMM')) as [Month Id],

sampada0810
Creator
Creator
Author

Thanks for your reply.

It helped me!!