<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to turn week no into months, quarters and years? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409160#M799486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Marco, Your responses were super helpful. I did some changes on "&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;tabCalendar"&lt;/SPAN&gt; you provided me, and the result is as I wanted. Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Dec 2017 02:32:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-02T02:32:37Z</dc:date>
    <item>
      <title>How to turn week no into months, quarters and years?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409152#M799473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;I have a set of data that shows me only week no. I have 102 weeks. I want to turn them into months, quarters and years. The week starts Monday. Every month is 4 weeks. Every year is 48 weeks. How can I do it?&lt;/P&gt;&lt;DIV class="grammarly-disable-indicator"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409152#M799473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn week no into months, quarters and years?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409153#M799475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Every month is 4 weeks. Every year is 48 weeks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Are the weeks 7 days? If so, how are you handling the 'missing' 4 weeks in a year?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If they are not 7 days (Monday - Sunday), then you need to provide more information on how you defines a week.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either way, I suggest you use a master calendar and associate the weeks with the year/quarter/month in that table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2017 11:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409153#M799475</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-12-01T11:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn week no into months, quarters and years?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409154#M799477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jonathan,&lt;/P&gt;&lt;P&gt;The week is 7 days starts Mondy. I have only week numbers (from week no 1 to week number 102).&lt;/P&gt;&lt;P&gt;WEEK_NO &lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;102&lt;/P&gt;&lt;P&gt;I don't have anything else. I don't' have year or day but it's fine if we can make up a starting year or starting a day if we need to. I have this data for learning purpose. Therefore, I can play with it. I tried &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;master calendar&lt;/SPAN&gt; but it didn't work. &lt;/P&gt;&lt;DIV class="grammarly-disable-indicator"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2017 15:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409154#M799477</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-01T15:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn week no into months, quarters and years?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409155#M799479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe one solution could be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_283643_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/185471_QlikCommunity_Thread_283643_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15121705050363542 jive_text_macro" jivemacro_uid="_15121705050363542"&gt;
&lt;P&gt;tabCalendar:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mod(WEEK_NO-1,4)+1 as WeekOfMonth,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mod(Div(WEEK_NO-1,4),12)+1 as Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mod(Div(WEEK_NO-1,12),4)+1 as Quarter,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Div(WEEK_NO-1,48)+1 as Year;&lt;/P&gt;
&lt;P&gt;LOAD RecNo() as WEEK_NO&lt;/P&gt;
&lt;P&gt;AutoGenerate 102;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2017 23:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409155#M799479</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-12-01T23:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn week no into months, quarters and years?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409156#M799482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Marco.&amp;nbsp; How if I want to convert WEEK_NO to periods? Each period is a month. I have 102 weeks which makes 26 periods. &lt;SPAN style="font-size: 10pt;"&gt;I want it to be P1, P2, P3, ...., P26?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Then every quarter = 4 periods (Q1,Q2,...,Q7). Then every ear should be 4 quarters or 16 periods (Y1,Y2,and Y3).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;SO I should have the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; 26 periods (P1, P2, P3, ...., P26)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;7 quarters ( (Q1,Q2,...,Q7)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;3 years (Y1,Y2,Y3).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can I do that?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="grammarly-disable-indicator"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2017 23:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409156#M799482</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-01T23:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn week no into months, quarters and years?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409157#M799483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should be the same principle, simply adjust the number of weeks per period, quarter and year accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please close your thread if your question is answered:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Dec 2017 00:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409157#M799483</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-12-02T00:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn week no into months, quarters and years?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409158#M799484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When I tried the one you provided me:&lt;/P&gt;&lt;OL class="dp-c" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; list-style-position: initial; list-style-image: initial; color: #5c5c5c; margin: 0 0 1px 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit;"&gt;tabCalendar:&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;LOAD *,&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mod(WEEK_NO-1,4)+1 as WeekOfMonth,&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mod(Div(WEEK_NO-1,4),12)+1 as Month,&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mod(Div(WEEK_NO-1,12),4)+1 as Quarter,&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Div(WEEK_NO-1,48)+1 as Year;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;LOAD RecNo() as WEEK_NO&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;AutoGenerate 102;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the result&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qlik.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/185463_Qlik.png" style="height: 328px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's why I said I want it as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;26 periods (P1, P2, P3, ...., P26)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;7 quarters ( (Q1,Q2,...,Q7)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;3 years (Y1,Y2,Y3).&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="grammarly-disable-indicator"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Dec 2017 00:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409158#M799484</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-02T00:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn week no into months, quarters and years?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409159#M799485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So your requirements changed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;I have 102 weeks. I want to turn them into months, quarters and years. The week starts Monday. Every month is 4 weeks. Every year is 48 weeks.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Please post a table of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;those new fields&lt;/SPAN&gt; as well as your initial weekno showing your expected result.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Dec 2017 02:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409159#M799485</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-12-02T02:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn week no into months, quarters and years?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409160#M799486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Marco, Your responses were super helpful. I did some changes on "&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;tabCalendar"&lt;/SPAN&gt; you provided me, and the result is as I wanted. Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Dec 2017 02:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-turn-week-no-into-months-quarters-and-years/m-p/1409160#M799486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-02T02:32:37Z</dc:date>
    </item>
  </channel>
</rss>

