<?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: R12 Calculation for more than one products in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/R12-Calculation-for-more-than-one-products/m-p/1749458#M172505</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127100"&gt;@M_Jay&lt;/a&gt;&amp;nbsp; You have two options&lt;/P&gt;&lt;P&gt;1) You many need to fill the missing dates in your invoice table so that you will have all the Dates for each product and then your expression will return the correct value. See the below links for this option&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/How-to-populate-a-sparsely-populated-field/ba-p/1470637" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/How-to-populate-a-sparsely-populated-field/ba-p/1470637&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Generating-Missing-Data-In-QlikView/ta-p/1491394" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Generating-Missing-Data-In-QlikView/ta-p/1491394&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2) You can create AsOfTable which you can link to your calendar&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Generating-Missing-Data-In-QlikView/ta-p/1491394" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Generating-Missing-Data-In-QlikView/ta-p/1491394&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Oct 2020 20:48:14 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-10-04T20:48:14Z</dc:date>
    <item>
      <title>R12 Calculation for more than one products</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/R12-Calculation-for-more-than-one-products/m-p/1749429#M172499</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 2 tables - 1) Invoice table 2) Date. They are connected by Date as below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And there are more than 100s of products in the "Invoice Table". And some products may not have sales in some months.&lt;/P&gt;&lt;P&gt;Since there are lot of products the BILL_DATE has all dates ( missing some for some products). The reports are good. Now I am trying to do Rolling 12 Months calculation for each product. I am using the below formula. It gives the correct R12 value if there is no missing months. &lt;STRONG&gt;But if there is missing months it looks for 12 sales months instead of last 12 months.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;aggr(rangesum(above(Sum(Quantity),0,12)),product, FISCAL_Month)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="M_Jay_0-1601820578250.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41679i0BAF057AFF4A133F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="M_Jay_0-1601820578250.png" alt="M_Jay_0-1601820578250.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any help.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2020 14:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/R12-Calculation-for-more-than-one-products/m-p/1749429#M172499</guid>
      <dc:creator>M_Jay</dc:creator>
      <dc:date>2020-10-04T14:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: R12 Calculation for more than one products</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/R12-Calculation-for-more-than-one-products/m-p/1749458#M172505</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127100"&gt;@M_Jay&lt;/a&gt;&amp;nbsp; You have two options&lt;/P&gt;&lt;P&gt;1) You many need to fill the missing dates in your invoice table so that you will have all the Dates for each product and then your expression will return the correct value. See the below links for this option&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/How-to-populate-a-sparsely-populated-field/ba-p/1470637" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/How-to-populate-a-sparsely-populated-field/ba-p/1470637&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Generating-Missing-Data-In-QlikView/ta-p/1491394" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Generating-Missing-Data-In-QlikView/ta-p/1491394&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2) You can create AsOfTable which you can link to your calendar&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Generating-Missing-Data-In-QlikView/ta-p/1491394" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Generating-Missing-Data-In-QlikView/ta-p/1491394&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2020 20:48:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/R12-Calculation-for-more-than-one-products/m-p/1749458#M172505</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-04T20:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: R12 Calculation for more than one products</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/R12-Calculation-for-more-than-one-products/m-p/1749459#M172506</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127100"&gt;@M_Jay&lt;/a&gt;&amp;nbsp; or you can try below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum(aggr(rangesum(above(Sum(Quantity)&lt;STRONG&gt;+sum({1}0)&lt;/STRONG&gt;,0,12)),product, FISCAL_Month))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2020 21:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/R12-Calculation-for-more-than-one-products/m-p/1749459#M172506</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-04T21:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: R12 Calculation for more than one products</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/R12-Calculation-for-more-than-one-products/m-p/1749469#M172509</link>
      <description>&lt;P&gt;Thanks for your response Kush. But none of them are working. Already Bill Date has all dates. Since there are more than 100s of products there is a sale on each date. The problem is I am trying to do R12M calculation by each product which may not have sales in all months. This is what I am getting.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="M_Jay_0-1601855490964.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41690i7B668B5FC18F5A6E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="M_Jay_0-1601855490964.png" alt="M_Jay_0-1601855490964.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But this is what I am expecting:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="M_Jay_1-1601855565542.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41691i41618838B1018FC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="M_Jay_1-1601855565542.png" alt="M_Jay_1-1601855565542.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2020 23:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/R12-Calculation-for-more-than-one-products/m-p/1749469#M172509</guid>
      <dc:creator>M_Jay</dc:creator>
      <dc:date>2020-10-04T23:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: R12 Calculation for more than one products</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/R12-Calculation-for-more-than-one-products/m-p/1749612#M172545</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127100"&gt;@M_Jay&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kush is right that you will have to create the date or a 0 value sale for each product/Date. Recently had to do this with sales and unit closures during covid in order to get a proper rolling average. Was the same issue where I had to create a date point and a sale point, even if it is now a 0, for each individual Unit so that I could roll that up. We did this using a master calendar to create any missing dates and then replaced any null sales points with a 0.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 13:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/R12-Calculation-for-more-than-one-products/m-p/1749612#M172545</guid>
      <dc:creator>Steven_Haught</dc:creator>
      <dc:date>2020-10-05T13:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: R12 Calculation for more than one products</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/R12-Calculation-for-more-than-one-products/m-p/1749764#M172573</link>
      <description>&lt;P&gt;Thanks Steven for your response. In that case I have to set up the sales numbers as 0 for missing months in my data model. I will try.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 22:02:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/R12-Calculation-for-more-than-one-products/m-p/1749764#M172573</guid>
      <dc:creator>M_Jay</dc:creator>
      <dc:date>2020-10-05T22:02:28Z</dc:date>
    </item>
  </channel>
</rss>

