<?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: Custom Totals in Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Custom-Totals-in-Table/m-p/254628#M498197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at your suggestion, but I must say I find it a bit hard to follow. I think I have found another solution though. I haven't had time to implement it yet, but I think it will work. It is inspired by this blog post: &lt;A href="http://qlikviewmaven.blogspot.com/2011_07_01_archive.html"&gt;A Chart Expression That Works Differently for Totals Row&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to always show the top 10 areas, so I will use a straight table with a Max Number of 13 in Presentation tab in Chart Properties. One might ask why 13? Well, I need the last three rows to be replaced by my own totals, so I will use a formula like the one below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(RowNo()=11,&lt;/P&gt;&lt;P&gt;//do something,&lt;/P&gt;&lt;P&gt;If(RowNo()=12,&lt;/P&gt;&lt;P&gt;//do something else&lt;/P&gt;&lt;P&gt;If(RowNo()=13,&lt;/P&gt;&lt;P&gt;//do something else&lt;/P&gt;&lt;P&gt;, Sum(Sales YTD))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only things I worry about are: How to sort the table, but I think that can be accomplished by maybe inserting a column that is hidden, which runs Sum(Sales YTD). Also, it is not certain that there will be 10 areas, so I might need to implement some kind of NoOfRows-function... Finally, I will also need to turn off regular totals...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will report back, when I have worked it out. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2011 16:09:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-09T16:09:16Z</dc:date>
    <item>
      <title>Custom Totals in Table</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Totals-in-Table/m-p/254626#M498195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi (again) &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to reproduce a table that I created in Excel a while back. In QlikView, doing simple totals is swift, but what if I want to do advanced totals (and multiple rows of them)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would really love some pointers, so I don't waste time going in the wrong direction. I have tried searching the community, but I couldn't find someone with the exact same problem. I found discussions on formatting of the standard totals, but nothing on altering the expression used in totals (and still I would need not just one total, but 3-4 totals [subtotals]). There was something about the dimensionality() function, but I don't see how this would help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the solution is to create a table with the actual output (perhaps using SQL). Is there any way to add rows to a table in QlikView? Could I actually create a table from another table in QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas, links etc is greatly appreciated...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Simon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG __jive_id="6332" alt="CustomTotals01.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/6332_CustomTotals01.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 22:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Totals-in-Table/m-p/254626#M498195</guid>
      <dc:creator />
      <dc:date>2011-08-07T22:59:44Z</dc:date>
    </item>
    <item>
      <title>Custom Totals in Table</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Totals-in-Table/m-p/254627#M498196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look here. You may need to take this (P&amp;amp;L) approach to produce such tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/56465#56465"&gt;http://community.qlik.com/message/56465#56465&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 02:00:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Totals-in-Table/m-p/254627#M498196</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2011-08-08T02:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Totals in Table</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-Totals-in-Table/m-p/254628#M498197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at your suggestion, but I must say I find it a bit hard to follow. I think I have found another solution though. I haven't had time to implement it yet, but I think it will work. It is inspired by this blog post: &lt;A href="http://qlikviewmaven.blogspot.com/2011_07_01_archive.html"&gt;A Chart Expression That Works Differently for Totals Row&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to always show the top 10 areas, so I will use a straight table with a Max Number of 13 in Presentation tab in Chart Properties. One might ask why 13? Well, I need the last three rows to be replaced by my own totals, so I will use a formula like the one below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(RowNo()=11,&lt;/P&gt;&lt;P&gt;//do something,&lt;/P&gt;&lt;P&gt;If(RowNo()=12,&lt;/P&gt;&lt;P&gt;//do something else&lt;/P&gt;&lt;P&gt;If(RowNo()=13,&lt;/P&gt;&lt;P&gt;//do something else&lt;/P&gt;&lt;P&gt;, Sum(Sales YTD))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only things I worry about are: How to sort the table, but I think that can be accomplished by maybe inserting a column that is hidden, which runs Sum(Sales YTD). Also, it is not certain that there will be 10 areas, so I might need to implement some kind of NoOfRows-function... Finally, I will also need to turn off regular totals...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will report back, when I have worked it out. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 16:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-Totals-in-Table/m-p/254628#M498197</guid>
      <dc:creator />
      <dc:date>2011-08-09T16:09:16Z</dc:date>
    </item>
  </channel>
</rss>

