<?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: Wrong Total in table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-Total-in-table/m-p/761256#M1025574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this is what you are trying to get:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-03-08 Correct Totals in Pivot Table.png" class="image-1 jive-image" src="/legacyfs/online/80214_2015-03-08 Correct Totals in Pivot Table.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made an extra column/expression to show how a set expression can be used in a Sum() to filter out all values where Usage=0 thus keeping those that are greater than 0 (actually maybe is should be all not equal to 0) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Mar 2015 12:05:19 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2015-03-08T12:05:19Z</dc:date>
    <item>
      <title>Wrong Total in table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-in-table/m-p/761255#M1025573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Need help in getting the correct total on my pivot table.&lt;/P&gt;&lt;P&gt;my table sums source and usage needs by part code and groups, it looks like that&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Group&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Part Code&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Source&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Usage&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;11&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;12&lt;/TD&gt;&lt;TD style="padding: 2px; background-color: #ffcc99; text-align: center; vertical-align: baseline;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;13&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline; background-color: #ffcc99;"&gt;8&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline; background-color: #c0c0c0;"&gt;Total&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline; background-color: #c0c0c0;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline; background-color: #c0c0c0;"&gt;11&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline; background-color: #c0c0c0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;21&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline; background-color: #ffcc99;"&gt;9&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;22&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline; background-color: #ffcc99;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;23&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline; background-color: #ffcc99;"&gt;14&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline; background-color: #c0c0c0;"&gt;Total&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline; background-color: #c0c0c0;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline; background-color: #c0c0c0;"&gt;43&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline; background-color: #c0c0c0;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center; vertical-align: baseline;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I'm trying to calculate source value only if usage &amp;gt;0 , my syntax looks like:&lt;/P&gt;&lt;P&gt;if([Usage]&amp;gt;0,Sum(source))&lt;/P&gt;&lt;P&gt;my table doesn't show rows where Usage=0 but it calculates total for those rows&lt;/P&gt;&lt;P&gt;i want to calculate total of group source if usage&amp;gt;0 , the problem is that instead of total value like Group 1, i get total value like Group 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for any help&lt;/P&gt;&lt;P&gt;avner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2015 10:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-in-table/m-p/761255#M1025573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-08T10:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Total in table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-in-table/m-p/761256#M1025574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this is what you are trying to get:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-03-08 Correct Totals in Pivot Table.png" class="image-1 jive-image" src="/legacyfs/online/80214_2015-03-08 Correct Totals in Pivot Table.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made an extra column/expression to show how a set expression can be used in a Sum() to filter out all values where Usage=0 thus keeping those that are greater than 0 (actually maybe is should be all not equal to 0) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2015 12:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-in-table/m-p/761256#M1025574</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-03-08T12:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Total in table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-in-table/m-p/761257#M1025575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Petter,&lt;/P&gt;&lt;P&gt;thanks for your reply but Usage is a column title, and doesn't seem to act as a dimension in set analysis.&lt;/P&gt;&lt;P&gt;b.t.w the data in "Usage" comes from a different table from the data in "Source"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2015 12:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-in-table/m-p/761257#M1025575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-08T12:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Total in table</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Total-in-table/m-p/761258#M1025576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually set expressions doesn't care if anything is a measure or a dimension. Anyway Usage in the sample I used is not a dimension either. There is no need for&amp;nbsp; "Usage" and "Source" to be in the same table - but they should be associated appropriately so you don't get a cartesian join....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you provide your data / data model or some representative sample of it it could be easier to help you solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Petter Skjolden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2015 12:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Total-in-table/m-p/761258#M1025576</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-03-08T12:28:12Z</dc:date>
    </item>
  </channel>
</rss>

