<?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: Week to Month Rollups in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Week-to-Month-Rollups/m-p/1157366#M377453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But in this way the comparison is not valid.One month has more weeks and 1 less.Any other better way to do rollup in qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mayank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2016 20:53:25 GMT</pubDate>
    <dc:creator>mayankraoka</dc:creator>
    <dc:date>2016-07-01T20:53:25Z</dc:date>
    <item>
      <title>Week to Month Rollups</title>
      <link>https://community.qlik.com/t5/QlikView/Week-to-Month-Rollups/m-p/1157364#M377451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following requirement ,Please help me on this..&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;data is available at week level. customer needs weekly and monthly view. we usually follows 4-4-5 rolls up from week to month. Refer below example.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;WKLY_CYC_DT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MTH_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;2015-12-04 00:00:00&amp;nbsp; 201512&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;2015-12-25 00:00:00&amp;nbsp; 201512&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;2015-12-11 00:00:00&amp;nbsp; 201512&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;2016-01-01 00:00:00&amp;nbsp; 201512&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;2015-12-18 00:00:00&amp;nbsp; 201512&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;2016-01-15 00:00:00&amp;nbsp; 201601&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;2016-01-29 00:00:00&amp;nbsp; 201601&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;2016-01-08 00:00:00&amp;nbsp; 201601&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;2016-01-22 00:00:00&amp;nbsp; 201601&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;2016-02-05 00:00:00&amp;nbsp; 201602&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;2016-02-26 00:00:00&amp;nbsp; 201602&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;2016-02-19 00:00:00&amp;nbsp; 201602&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;&lt;SPAN lang="EN-US" style="color: #1f497d;"&gt;2016-02-12 00:00:00&amp;nbsp; 201602&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;With this approach Dec 15 will show inflated data as its for 5 weeks as compared to Jan 16 and Feb 16. We want to avoid this and hence need alternative way to roll-up data at month?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Mayank&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 10:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-to-Month-Rollups/m-p/1157364#M377451</guid>
      <dc:creator>mayankraoka</dc:creator>
      <dc:date>2016-07-01T10:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Week to Month Rollups</title>
      <link>https://community.qlik.com/t5/QlikView/Week-to-Month-Rollups/m-p/1157365#M377452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think a master-calendar to your week/month logic could be useful. This one: &lt;A href="https://community.qlik.com/docs/DOC-8837"&gt;4-5-4 Master Calendar&lt;/A&gt; is 4-5-4 and not 4-4-5 but this could be adjusted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 11:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-to-Month-Rollups/m-p/1157365#M377452</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-07-01T11:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Week to Month Rollups</title>
      <link>https://community.qlik.com/t5/QlikView/Week-to-Month-Rollups/m-p/1157366#M377453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But in this way the comparison is not valid.One month has more weeks and 1 less.Any other better way to do rollup in qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mayank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 20:53:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-to-Month-Rollups/m-p/1157366#M377453</guid>
      <dc:creator>mayankraoka</dc:creator>
      <dc:date>2016-07-01T20:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Week to Month Rollups</title>
      <link>https://community.qlik.com/t5/QlikView/Week-to-Month-Rollups/m-p/1157367#M377454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Months and weeks are different things and even you take only one of them you will have some inaccuracies with holidays, switching from weekdays over the years and some more. But if you tries to compare your data against both dimensions you will increase these inaccuracies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way to make such comparings more useful could be not to look on the total amounts else on the rate per workingday. Another thought is to create a master-calendar with 13 months, each with 4 weeks which meant you need only a way to handle the 365/366 day in year / shift year - everything else would be equal. This could be a starting-point for this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;calendar:&lt;/P&gt;&lt;P&gt;load *, ceil(daynumberofyear(Date) / 7) as Week2, ceil(ceil(daynumberofyear(Date) / 7) / 4) as Month2&lt;/P&gt;&lt;P&gt;resident calendar_temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jul 2016 06:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-to-Month-Rollups/m-p/1157367#M377454</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-07-02T06:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Week to Month Rollups</title>
      <link>https://community.qlik.com/t5/QlikView/Week-to-Month-Rollups/m-p/1157368#M377455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: 6.05pt; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;&lt;IMG alt="table 3.jpg" class="jive-image image-1" src="/legacyfs/online/129896_table 3.jpg" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6.05pt; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;This is another example&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: 6.05pt; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;CREATE VOLATILE TABLE &lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;STORE_QTY&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;EM style="color: black; font-size: 7.5pt; font-family: 'Arial','sans-serif';"&gt;(&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;STORE_ID &lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;INTEGER&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: black;"&gt;,&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;SOLD_DATE &lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: black;"&gt;,&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;PRODUCT_ID &lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;INTEGER&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: black;"&gt;,&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;QUANTITY &lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;INTEGER&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;EM style="color: black; font-size: 7.5pt; font-family: 'Arial','sans-serif';"&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;ON COMMIT PRESERVE ROWS&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: black;"&gt;; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;EM style="color: black; font-size: 7.5pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-top: 6.05pt; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: #2c2b2b;"&gt;If you want to calculate the number of products of same kind sold from the table, along with the total number of products sold, then you can use a ROLLUP function as :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;PRODUCT_ID&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;QUANTITY&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: black;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;AS &lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;TOTAL_QUANTITY&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;STORE_QTY&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;GROUP BY ROLLUP &lt;/SPAN&gt; &lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;PRODUCT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;ORDER BY &lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: fuchsia;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: black;"&gt;; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: black;"&gt;I hope this resolve your problem even for further resolving you can go for checking out thus link&lt;/SPAN&gt;&lt;EM style="color: black; font-size: 7.5pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;A href="https://goo.gl/XhM5DI" title="https://goo.gl/XhM5DI"&gt;https://goo.gl/XhM5DI&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jul 2016 07:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-to-Month-Rollups/m-p/1157368#M377455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-02T07:27:30Z</dc:date>
    </item>
  </channel>
</rss>

