<?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: pivot table totals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383125#M1166418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hi Matt,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;For uploading a qvw first click on reply,go to Top(Right hand side) click on advanced editor,go the attachments and upload the file.Find the screenshots attached.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2012 02:20:42 GMT</pubDate>
    <dc:creator>thomas_skariah</dc:creator>
    <dc:date>2012-09-03T02:20:42Z</dc:date>
    <item>
      <title>pivot table totals</title>
      <link>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383118#M1166410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working in a pivot table with an expression that is adding together the values in two different expressions.&amp;nbsp; The cell it being populated with the correct result, but the total for the column is zero it is not a dash but a zero.&amp;nbsp; all of the other columns are totaling OK.&amp;nbsp; I exported it to excel to confirm the correct total is not zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 16:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383118#M1166410</guid>
      <dc:creator />
      <dc:date>2012-08-31T16:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: pivot table totals</title>
      <link>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383119#M1166412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, can you send an example qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2012 05:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383119#M1166412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-01T05:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: pivot table totals</title>
      <link>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383120#M1166413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or type your expresison and say what are your dimnsions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2012 09:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383120#M1166413</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-01T09:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: pivot table totals</title>
      <link>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383121#M1166414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;if([Tax unit of Property]='#N/A',[Total Value Replaced],if([Tax unit of Property]='Non-Stock item',[Total Value Replaced],0))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;Tax Unit of property is a dimension&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;Total Value Replaced is another expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;I tried to copy/paste the qvw file into this reply.......but couldn't (really new to qv).&amp;nbsp; The file is pretty large (2MB) which I can share if I can figure out how to attach.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;I may try to create a sample file that is a lot smaller while I wait for instructions on how to attach a file.&amp;nbsp; I will search here a bit more as well. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2012 16:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383121#M1166414</guid>
      <dc:creator />
      <dc:date>2012-09-02T16:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: pivot table totals</title>
      <link>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383122#M1166415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;There is no total because there is no any aggregation function.&amp;nbsp; Try to put your whloe expression inside sum().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp; I think it should be like this:&lt;/P&gt;&lt;P&gt;sum(if([Tax unit of Property]='#N/A' OR [Tax unit of Property]='Non-Stock item',[Total Value Replaced],0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2012 17:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383122#M1166415</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-02T17:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: pivot table totals</title>
      <link>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383123#M1166416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that your formula doesn't contain aggreagatoin.&lt;/P&gt;&lt;P&gt;When this expression evaluated for every value of [Tax unit of Property] it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imagine that it's calculating for the total row. Instead of [Tax unit of Property] you have all set of values.&lt;/P&gt;&lt;P&gt;It's an error and QlikView evaluate this as NULL.&lt;/P&gt;&lt;P&gt;Then NULL='#N/A' =&amp;gt; FALSE, NULL='Non-Stock item' =&amp;gt; FALSE =&amp;gt; you get your '0'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2012 17:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383123#M1166416</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-02T17:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: pivot table totals</title>
      <link>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383124#M1166417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried including the entire expression within a sum function like suggested but it returned a zero for all lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whiteline's comment makes sense to me I think (an accountant not a developer) why it works for each line, but not a total, but I am still unsure how to correct it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I attach a qvw file?&amp;nbsp; I know it is difficult to really address without seeing the entire picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you helping,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2012 18:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383124#M1166417</guid>
      <dc:creator />
      <dc:date>2012-09-02T18:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: pivot table totals</title>
      <link>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383125#M1166418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hi Matt,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;For uploading a qvw first click on reply,go to Top(Right hand side) click on advanced editor,go the attachments and upload the file.Find the screenshots attached.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 02:20:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383125#M1166418</guid>
      <dc:creator>thomas_skariah</dc:creator>
      <dc:date>2012-09-03T02:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: pivot table totals</title>
      <link>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383126#M1166419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the file upload info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the qvw file that contains the expression "Remove Non-Stock items and #N/A" which is working on a line by line basis but does not display a total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 18:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383126#M1166419</guid>
      <dc:creator />
      <dc:date>2012-09-03T18:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: pivot table totals</title>
      <link>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383127#M1166420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as whiteline mentioned above, the problem of the according expression is the missing aggregate-function. Without any of them, a summing up isn't possible. I rewrote your expression. It should work as I used two sums, each with your filter (if()) included. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum (if([Tax unit of Property]='#N/A' or [Tax unit of Property]='Non-Stock item', [Val/COArea Crcy],0))&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;+ &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Sum (if([Tax unit of Property]='#N/A' or [Tax unit of Property]='Non-Stock item', [Val/COArea Crcy])/50185493*79974406,0)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; left: -10000px; top: 2641px; width: 1px; height: 1px; overflow: hidden;"&gt;Sum (if([Tax unit of Property]='#N/A' or [Tax unit of Property]='Non-Stock item', [Val/COArea Crcy],0))&lt;BR /&gt;+ &lt;BR /&gt;Sum (if([Tax unit of Property]='#N/A' or [Tax unit of Property]='Non-Stock item', [Val/COArea Crcy])/50185493*79974406)&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 19:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383127#M1166420</guid>
      <dc:creator />
      <dc:date>2012-09-03T19:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: pivot table totals</title>
      <link>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383128#M1166421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that fixed it.&amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 21:12:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/pivot-table-totals/m-p/383128#M1166421</guid>
      <dc:creator />
      <dc:date>2012-09-03T21:12:53Z</dc:date>
    </item>
  </channel>
</rss>

