<?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 Pivot table &amp; Acumulation row in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-Acumulation-row/m-p/168806#M39830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mansyno, thxs for your answer!&lt;/P&gt;&lt;P&gt;I was reading about what I want to achieve in this foro and as you recommend me, I found about the above function.&lt;/P&gt;&lt;P&gt;I'll try to use it.. even though I've multiple dimensions &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; and as you say (and now I understand) it get quite tricky...&lt;/P&gt;&lt;P&gt;I heard once that using the aggr function i could get the accumulation, what do u think about that??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, thxs for your well explained answer! xD and example!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Mar 2010 15:47:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-04T15:47:46Z</dc:date>
    <item>
      <title>Pivot table &amp; Acumulation row</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Acumulation-row/m-p/168803#M39827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,I'm sure my issue is easy to solve..&lt;/P&gt;&lt;P&gt;I've a pivot table and I need to show in one of the columns a full accumulation of rows. Right now, those options are disabled.&lt;/P&gt;&lt;P&gt;How can I do to solve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thxs in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 14:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Acumulation-row/m-p/168803#M39827</guid>
      <dc:creator />
      <dc:date>2010-03-04T14:26:13Z</dc:date>
    </item>
    <item>
      <title>Pivot table &amp; Acumulation row</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Acumulation-row/m-p/168804#M39828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;well acutely this isn't so easy to solve:) especially since your using a pivot.&lt;/P&gt;&lt;P&gt;the problem with pivot is that it changes&lt;/P&gt;&lt;P&gt;when you make selection&lt;/P&gt;&lt;P&gt;or when you expand and collapse dimension&lt;/P&gt;&lt;P&gt;also you might have dimension spread out on the top (in one or more levels)&lt;/P&gt;&lt;P&gt;so it can get very tricky&lt;/P&gt;&lt;P&gt;there are few methods of manually doing accumulation.&lt;/P&gt;&lt;P&gt;one of them is the use of the functions rangesum() and above()&lt;/P&gt;&lt;P&gt;something like this rangesum(Num,above(Num,1,(3-1)))&lt;/P&gt;&lt;P&gt;the rangesum functions takes a coma seperated list of values and return the sum of them&lt;/P&gt;&lt;P&gt;the above functions in its extended format generates a comma seperated list of the values above it in a chart&lt;/P&gt;&lt;P&gt;together they can produce accumulation&lt;/P&gt;&lt;P&gt;like i said it works best in a st8 table (where it isn't acutely needed) but is kinda problematic ina pivot&lt;/P&gt;&lt;P&gt;attached is a sample QVW&lt;/P&gt;&lt;P&gt;in the sample it works on a pivot too because the pivot has no collapsing dimensions&lt;/P&gt;&lt;P&gt;but like i said when you start adding dimension it can get tricky&lt;/P&gt;&lt;P&gt;it can be solved (with the dimensionality() function and others) but its not simple (well as far as iv been trying)&lt;/P&gt;&lt;P&gt;hope this puts you on the right track&lt;/P&gt;&lt;P&gt;Mansyno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 15:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Acumulation-row/m-p/168804#M39828</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2010-03-04T15:06:32Z</dc:date>
    </item>
    <item>
      <title>Pivot table &amp; Acumulation row</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Acumulation-row/m-p/168805#M39829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried attaching a file but seems there are problems again because it doesn't show&lt;/P&gt;&lt;P&gt;any it was a short sample so here is it's description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enter this line of code in the script.&lt;/P&gt;&lt;P&gt;it will produce a 10 rows of test data:&lt;/P&gt;&lt;P&gt;Load Chr(RecNo()+Ord('A')-1) as Alfa, RecNo() as Num autogenerate 10;&lt;/P&gt;&lt;P&gt;after reload put a st8 table on the sheet&lt;/P&gt;&lt;P&gt;add Alfa as dimension&lt;/P&gt;&lt;P&gt;add two expressions&lt;/P&gt;&lt;P&gt;on the first just put the field Num (just the field name without SUM )&lt;/P&gt;&lt;P&gt;on the second expression enter this :&lt;/P&gt;&lt;P&gt;rangesum(Num,above(Num,1,(3-1)))&lt;/P&gt;&lt;P&gt;this should give you the accumulation of Num on the 2nd expr&lt;/P&gt;&lt;P&gt;Mansyno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 15:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Acumulation-row/m-p/168805#M39829</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2010-03-04T15:16:30Z</dc:date>
    </item>
    <item>
      <title>Pivot table &amp; Acumulation row</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Acumulation-row/m-p/168806#M39830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mansyno, thxs for your answer!&lt;/P&gt;&lt;P&gt;I was reading about what I want to achieve in this foro and as you recommend me, I found about the above function.&lt;/P&gt;&lt;P&gt;I'll try to use it.. even though I've multiple dimensions &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; and as you say (and now I understand) it get quite tricky...&lt;/P&gt;&lt;P&gt;I heard once that using the aggr function i could get the accumulation, what do u think about that??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, thxs for your well explained answer! xD and example!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 15:47:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Acumulation-row/m-p/168806#M39830</guid>
      <dc:creator />
      <dc:date>2010-03-04T15:47:46Z</dc:date>
    </item>
    <item>
      <title>Pivot table &amp; Acumulation row</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Acumulation-row/m-p/168807#M39831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mansyno,&lt;/P&gt;&lt;P&gt;I took the example you gave me: &lt;B&gt;rangesum(Num,above(Num,1,(3-1)))&lt;/B&gt; and modify it a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I needed the accumulation of all rows before an actual one. With your example I got (3-1) positions, so the only thing I changed was the number &lt;B&gt;3&lt;/B&gt; for &lt;B&gt;rowno().&lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;That way, in the last row, would have the accumulation of all the ones before it.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;rangesum(Num,above(Num,1,(rowno()-1)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 16:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Acumulation-row/m-p/168807#M39831</guid>
      <dc:creator />
      <dc:date>2010-03-04T16:46:34Z</dc:date>
    </item>
    <item>
      <title>Pivot table &amp; Acumulation row</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Acumulation-row/m-p/168808#M39832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As a variant of this does anybody know how I can pick up the last non zero value in a dimension in a pivot table if the current value is null/zero. I realise that I can pick up the previous value using &lt;STRONG&gt;before&lt;/STRONG&gt; and that I can offset before to pick up a prior one. The problem I have is that I cannot work out how far back the last non zero value was without creating a second expression that counts the number of consecutive null/zero values. In summary I have a solution to my issue but it requires 2 expressions. I would like to do it in one expression if possible.&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Footsie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 09:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Acumulation-row/m-p/168808#M39832</guid>
      <dc:creator />
      <dc:date>2010-03-05T09:47:22Z</dc:date>
    </item>
  </channel>
</rss>

