<?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 Rolling 6 month sum/average returns incorrect values when current months values is Zero in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-6-month-sum-average-returns-incorrect-values-when/m-p/1324411#M836623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am having problem calculating Rolling 6 month sum and average if the current months value is Zero. For sum it returns 0 and for average it returns a null. Is there any option that I could use to make the set analysis to consider zero values? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using below expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; text-decoration: underline;"&gt;Rolling 6 MO sum:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;rangesum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;ORDER_TYPE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={VR'},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;order_flag&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={'1'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;CASE_NUMBER&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;),0,6)),&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;COMPANY_NAME&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Transaction_Date_YR_MTH&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;))&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;Rolling 6 MO average:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;a&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;vg&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;rangeavg&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;ORDER_TYPE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;={'RV'},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;ORDER_STATUS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;={'O','H'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;CASE_NUMBER&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;),0,6)),&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;COMPANY_NAME&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Transaction_Date_YR_MTH&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164498_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>phoenix</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Rolling 6 month sum/average returns incorrect values when current months values is Zero</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-6-month-sum-average-returns-incorrect-values-when/m-p/1324411#M836623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am having problem calculating Rolling 6 month sum and average if the current months value is Zero. For sum it returns 0 and for average it returns a null. Is there any option that I could use to make the set analysis to consider zero values? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using below expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; text-decoration: underline;"&gt;Rolling 6 MO sum:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;rangesum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;ORDER_TYPE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={VR'},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;order_flag&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;={'1'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;CASE_NUMBER&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;),0,6)),&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;COMPANY_NAME&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Transaction_Date_YR_MTH&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;))&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;Rolling 6 MO average:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;a&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;vg&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;rangeavg&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;ORDER_TYPE&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;={'RV'},&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;ORDER_STATUS&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;={'O','H'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;CASE_NUMBER&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;),0,6)),&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;COMPANY_NAME&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Transaction_Date_YR_MTH&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164498_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&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/Rolling-6-month-sum-average-returns-incorrect-values-when/m-p/1324411#M836623</guid>
      <dc:creator>phoenix</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

