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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to get month field by using week field

can anyone help me in creating month field by using the week field

8 Replies
MayilVahanan

HI

refer

http://community.qlik.com/message/322288#322288

if you have year n week field

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Hi appache77,

What is the format number of your week field? Is it an integer, a date? share you app and data.

Regards,

Ricardo

Not applicable
Author

my format is of week is

01

02

03

04

05

.............

Anonymous
Not applicable
Author

Do you have year field?  If not, there is no relaible way, because the same week# can be in the different months depending on year.

And, what is your rule for the weeks that overlap months?

Regards,

Michael

Not applicable
Author

I am having year field and week field from this i need month

Not applicable
Author

Can you upload your sample application

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

=Month(MakeWeekDate(YearFieldName,  WeekFieldName) )

Hope this helps you.

Regards,

Jagan.

Anonymous
Not applicable
Author

See function MakeWeekDate.  Assuming you don't have day, by default it is Monday:

month(MakeWeekDate(Year, Week))