<?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 Help with RangeSum and above in bar charts in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Help-with-RangeSum-and-above-in-bar-charts/m-p/112658#M7746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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 style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I been asked to produce a chart that shows a cumulative count of the pieces of equipment we have installed by Month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I have managed to do this by using the RangeSum , above and aggr functions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Here is my code&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P&gt;=round(Aggr(&lt;/P&gt;&lt;P&gt;RangeSum(Above( sum({$&amp;lt;&lt;/P&gt;&lt;P&gt;[Instance Summary - Install Date Num]={"&amp;lt;=$(vtoday)"}&lt;/P&gt;&lt;P&gt;,[Instance -&amp;nbsp; Date Calendar Year Period]=&lt;/P&gt;&lt;P&gt;,[Instance - Status]-={'Not Installed','Replaced','Uninstalled','Terminated'}&lt;/P&gt;&lt;P&gt;,[Instance - Serial Number Flag]={'Y'}&lt;/P&gt;&lt;P&gt;, [Instance - Install Date Flag]={'Y'}&lt;/P&gt;&lt;P&gt;,[Location / Customer Type]={'Installed At'}&lt;/P&gt;&lt;P&gt;,[Instance - Include Flag]={'Y'}&lt;/P&gt;&lt;P&gt;&amp;gt;} [Instance Summary - Count]), 0, RowNo())), [Instance -&amp;nbsp; Date Calendar Year Period]))&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&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 style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;It works great however the chart by default without fiters shows the first install period which is 1999 resulting in displaying 235 columns!!&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 style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;What they want is to have a cumulative total by back to 1999 but only display the last 12 columns ( ie 12 months)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Current (just showing from 2014)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213163_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;They want to display without filters needing to be selected ( back 12 months from today so 2017 - 10 - Oct)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/213167_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2021 20:40:09 GMT</pubDate>
    <dc:creator>mikelees80</dc:creator>
    <dc:date>2021-12-22T20:40:09Z</dc:date>
    <item>
      <title>Help with RangeSum and above in bar charts</title>
      <link>https://community.qlik.com/t5/App-Development/Help-with-RangeSum-and-above-in-bar-charts/m-p/112658#M7746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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 style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I been asked to produce a chart that shows a cumulative count of the pieces of equipment we have installed by Month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I have managed to do this by using the RangeSum , above and aggr functions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Here is my code&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P&gt;=round(Aggr(&lt;/P&gt;&lt;P&gt;RangeSum(Above( sum({$&amp;lt;&lt;/P&gt;&lt;P&gt;[Instance Summary - Install Date Num]={"&amp;lt;=$(vtoday)"}&lt;/P&gt;&lt;P&gt;,[Instance -&amp;nbsp; Date Calendar Year Period]=&lt;/P&gt;&lt;P&gt;,[Instance - Status]-={'Not Installed','Replaced','Uninstalled','Terminated'}&lt;/P&gt;&lt;P&gt;,[Instance - Serial Number Flag]={'Y'}&lt;/P&gt;&lt;P&gt;, [Instance - Install Date Flag]={'Y'}&lt;/P&gt;&lt;P&gt;,[Location / Customer Type]={'Installed At'}&lt;/P&gt;&lt;P&gt;,[Instance - Include Flag]={'Y'}&lt;/P&gt;&lt;P&gt;&amp;gt;} [Instance Summary - Count]), 0, RowNo())), [Instance -&amp;nbsp; Date Calendar Year Period]))&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&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 style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;It works great however the chart by default without fiters shows the first install period which is 1999 resulting in displaying 235 columns!!&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 style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;What they want is to have a cumulative total by back to 1999 but only display the last 12 columns ( ie 12 months)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Current (just showing from 2014)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213163_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;They want to display without filters needing to be selected ( back 12 months from today so 2017 - 10 - Oct)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/213167_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2021 20:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Help-with-RangeSum-and-above-in-bar-charts/m-p/112658#M7746</guid>
      <dc:creator>mikelees80</dc:creator>
      <dc:date>2021-12-22T20:40:09Z</dc:date>
    </item>
  </channel>
</rss>

