<?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: Difference in Totals between Straight Table and Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Difference-in-Totals-between-Straight-Table-and-Pivot-Table/m-p/893551#M311095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ur expression creating the problem,u set for dimension subtype2=1 else for all the dimension 0,so in ut pivot table it will shows only for subtype2=1 else 0,pivot will calculates the result based on multiple dimensions.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2015 11:43:39 GMT</pubDate>
    <dc:creator>buzzy996</dc:creator>
    <dc:date>2015-04-23T11:43:39Z</dc:date>
    <item>
      <title>Difference in Totals between Straight Table and Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-in-Totals-between-Straight-Table-and-Pivot-Table/m-p/893549#M311093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The attached qvw has a simple in inline table (see load script below). I first created the straight table then copied it and changed the copy to a pivot table. Why does the pivot table not show the totals correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1, F2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type1, subtype1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type2, subtype1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type3, subtype1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type4, subtype1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type1, subtype2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type2, subtype2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type3, subtype2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type4, subtype2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type1, subtype3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type2, subtype3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; type4, subtype3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-in-Totals-between-Straight-Table-and-Pivot-Table/m-p/893549#M311093</guid>
      <dc:creator>jlongoria</dc:creator>
      <dc:date>2015-04-23T11:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in Totals between Straight Table and Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-in-Totals-between-Straight-Table-and-Pivot-Table/m-p/893550#M311094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because the pivot table does not have a Total Mode you can set to Sum of Rows. Try sum({&amp;lt;F2 ={ 'subtype2'} &amp;gt;}1) or maybe sum(aggr(if(F2 = 'subtype2', 1, 0),F1,F2)). Not sure if you care about showing the zero values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-in-Totals-between-Straight-Table-and-Pivot-Table/m-p/893550#M311094</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-23T11:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in Totals between Straight Table and Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-in-Totals-between-Straight-Table-and-Pivot-Table/m-p/893551#M311095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ur expression creating the problem,u set for dimension subtype2=1 else for all the dimension 0,so in ut pivot table it will shows only for subtype2=1 else 0,pivot will calculates the result based on multiple dimensions.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:43:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-in-Totals-between-Straight-Table-and-Pivot-Table/m-p/893551#M311095</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-04-23T11:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in Totals between Straight Table and Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-in-Totals-between-Straight-Table-and-Pivot-Table/m-p/893552#M311096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I want to show the 0 values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-in-Totals-between-Straight-Table-and-Pivot-Table/m-p/893552#M311096</guid>
      <dc:creator>jlongoria</dc:creator>
      <dc:date>2015-04-23T11:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in Totals between Straight Table and Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-in-Totals-between-Straight-Table-and-Pivot-Table/m-p/893553#M311097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then use the second expression with the aggr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:46:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-in-Totals-between-Straight-Table-and-Pivot-Table/m-p/893553#M311097</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-23T11:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Difference in Totals between Straight Table and Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Difference-in-Totals-between-Straight-Table-and-Pivot-Table/m-p/893554#M311098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot I posted this. I really didn't know what I was doing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With much more QlikView experience now I wouldn't do what I posted. In any case, thank you for the reply. Both of these work. While the Aggr() works as well, it is not necessary given the simple expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;F2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'subtype2', 1, 0)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;F2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={ 'subtype2'} &amp;gt;}1)&amp;nbsp; // uses set analysis (better than "if")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 16:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Difference-in-Totals-between-Straight-Table-and-Pivot-Table/m-p/893554#M311098</guid>
      <dc:creator>jlongoria</dc:creator>
      <dc:date>2016-04-07T16:18:29Z</dc:date>
    </item>
  </channel>
</rss>

