<?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 Total in pivot is wrong in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-in-pivot-is-wrong/m-p/1337814#M842832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am quite new to QlikView and have a problem with a pivot table. I hope that you can help me with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions are Year, Quarter, Month&lt;/P&gt;&lt;P&gt;Expressions are FC1, FC2, FC3, Final&lt;/P&gt;&lt;P&gt;During the month I get values for FC1 then FC2 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to have a column for each expression but only 1 column which shows one of these expressions depending on whether there are values in or not. I did this with an&amp;nbsp; if formula in expressions like if(Final&amp;gt;0,sum(Final),if(FC3&amp;gt;0,sum(FC3),if(FC2&amp;gt;0,sum(FC2),if(FC1&amp;gt;0,sum(FC1),0.&lt;/P&gt;&lt;P&gt;It shows the right monthly values but the total of quarter ,year are wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached a test file for you to better understand my issue. Thanks in advance for your help &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;regards,&lt;/P&gt;&lt;P&gt;Fredi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Total in pivot is wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Total-in-pivot-is-wrong/m-p/1337814#M842832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am quite new to QlikView and have a problem with a pivot table. I hope that you can help me with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions are Year, Quarter, Month&lt;/P&gt;&lt;P&gt;Expressions are FC1, FC2, FC3, Final&lt;/P&gt;&lt;P&gt;During the month I get values for FC1 then FC2 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to have a column for each expression but only 1 column which shows one of these expressions depending on whether there are values in or not. I did this with an&amp;nbsp; if formula in expressions like if(Final&amp;gt;0,sum(Final),if(FC3&amp;gt;0,sum(FC3),if(FC2&amp;gt;0,sum(FC2),if(FC1&amp;gt;0,sum(FC1),0.&lt;/P&gt;&lt;P&gt;It shows the right monthly values but the total of quarter ,year are wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached a test file for you to better understand my issue. Thanks in advance for your help &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;regards,&lt;/P&gt;&lt;P&gt;Fredi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-in-pivot-is-wrong/m-p/1337814#M842832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Total in pivot is wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Total-in-pivot-is-wrong/m-p/1337815#M842833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(if(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Final&amp;gt;0,sum(Final),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FC3&amp;gt;0,sum(FC3),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FC2&amp;gt;0,sum(FC2),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FC1&amp;gt;0,sum(FC1),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)))), Year, Quarter, Month, Dpartment))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2017 19:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-in-pivot-is-wrong/m-p/1337815#M842833</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-18T19:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Total in pivot is wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Total-in-pivot-is-wrong/m-p/1337816#M842834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works, thanks for your help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 06:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-in-pivot-is-wrong/m-p/1337816#M842834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-19T06:38:15Z</dc:date>
    </item>
  </channel>
</rss>

