<?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 expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression/m-p/335871#M123871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; can ny1 help how this function works?&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;numsum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Rangesum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0,12))) , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/1000000 &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2012 03:24:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-04T03:24:02Z</dc:date>
    <item>
      <title>expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/335871#M123871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; can ny1 help how this function works?&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;numsum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Rangesum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0,12))) , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/1000000 &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 03:24:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/335871#M123871</guid>
      <dc:creator />
      <dc:date>2012-04-04T03:24:02Z</dc:date>
    </item>
    <item>
      <title>expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/335872#M123872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To understand how this expression works, we will first see how underlying functions work.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Above &lt;/STRONG&gt;function will work on charts and it returns us rows above the current row in the chart's straight table equivalent.&lt;/P&gt;&lt;P&gt;its syntax is &lt;STRONG&gt;Above (Expression, [offset,&lt;N&gt;])&lt;/N&gt;&lt;/STRONG&gt; So, here it evaluates expression &lt;STRONG&gt;Sum({1}Value) &lt;/STRONG&gt;on the current row since offset is 0 and upto the next 12 rows above the current row.&lt;/P&gt;&lt;P&gt;Then this input is passes to rangesum function which will sum all the 12 rows.&lt;/P&gt;&lt;P&gt;Then this sum will be passes to sum function (I believe that here rather then using numsum, You should use sum) which will calculate this expression according to distinct values of YearMonth dimension then that sum will be divided by 1000000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview will not necessarily calculate this expression in the order I have explained but it is just to explain you properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 05:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/335872#M123872</guid>
      <dc:creator />
      <dc:date>2012-04-04T05:26:49Z</dc:date>
    </item>
    <item>
      <title>expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/335873#M123873</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;nice explanation by paliwal !!! ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;want to add little extra to that while using Above() function where you hard coded 12&lt;/P&gt;&lt;P&gt;then it means it will do Rangesum()&amp;nbsp; for only 12 rows but not for 14 rows that means by mistake if you give 12 instead of 14 rows then things may go wrong so if you want to skip this situation and play safe&lt;/P&gt;&lt;P&gt;you can use rowno() in Above as&amp;nbsp; Above ( expression,offset, rowno() ) then whatever may be no of Rows &lt;/P&gt;&lt;P&gt;it will automatically do rangesum for that no of rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anant Dubey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 06:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/335873#M123873</guid>
      <dc:creator />
      <dc:date>2012-04-04T06:37:45Z</dc:date>
    </item>
    <item>
      <title>expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/335874#M123874</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; okay. Logically speaking, the given expression will calculate the rolling 12 month summation of 'Value' if the data is sorted by YearMonth or Year and Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Since {1} is given inside the sum function, this will sum up all the values regardless of the currently shown values in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; One more thing in this expression to note is either use rangesum or numsum function. I would suggest to use rangesum function since numsum is obsolete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hudson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 07:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/335874#M123874</guid>
      <dc:creator>adhudson</dc:creator>
      <dc:date>2012-04-04T07:52:40Z</dc:date>
    </item>
    <item>
      <title>expression</title>
      <link>https://community.qlik.com/t5/QlikView/expression/m-p/335875#M123875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; thanx 2 all.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yojas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 08:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression/m-p/335875#M123875</guid>
      <dc:creator />
      <dc:date>2012-04-04T08:45:37Z</dc:date>
    </item>
  </channel>
</rss>

