<?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 Pivot Table Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945397#M959860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was the solution that I could by myself get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sem Título3.png" class="jive-image image-1" src="/legacyfs/online/102811_Sem Título3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;With the expressions be like:&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;%Imputação -&amp;gt; =Sum(Imputacao%)&lt;/LI&gt;&lt;LI&gt;€ Imputação -&amp;gt; =Sum(Aggr(((tempo*1440)/60)*(ValorHora)*(Imputacao%), Zona, CodLocal, [CodEmpregado], [DataHora], [Saída]))&lt;/LI&gt;&lt;LI&gt;€ Custo Real -&amp;gt; =Sum(Aggr(((tempo*1440)/60)*(ValorHora), Zona, CodLocal, [CodEmpregado], [DataHora], [Saída]))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone find a similar problem in the future and that this answers may give you a similar solution. Have fun and good job people &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Oct 2015 16:33:11 GMT</pubDate>
    <dc:creator>miguelbraga</dc:creator>
    <dc:date>2015-10-22T16:33:11Z</dc:date>
    <item>
      <title>Wrong Pivot Table Values</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945387#M959850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a new problem in my dashboard, when I enable the "Show Partial Sums" in the Presentation Tab in my Chart Properties, I get a wrong value. In the snapshot bellow you can see it clearly that there is something wrong with the value:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="102795" alt="Sem Título1.png" class="jive-image image-1" src="/legacyfs/online/102795_Sem Título1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;My dimensions are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;[Zona]&lt;/LI&gt;&lt;LI&gt;[CodLocal] labeled as [Cod. Local]&lt;/LI&gt;&lt;LI&gt;[CodEmpregado] labeled as [Cod. Funcionário]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expressions are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;=sum(CustoReal) -&amp;gt; labeled as [€ Custo Real]&lt;/LI&gt;&lt;LI&gt;=sum(CustoReal)*num(sum({$&amp;lt;Zona=, CodLocal=, CodEmpregado=, data= &amp;gt;} DISTINCT Imputacao%)) -&amp;gt; labeled as [Imputação]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The [Imputacao%] values table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="102796" alt="Sem Título2.png" class="jive-image image-2" src="/legacyfs/online/102796_Sem Título2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the changes that I need to make to get the correct output result (&lt;SPAN style="font-size: 13.3333px; text-align: -webkit-right;"&gt;1 316,41 €&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;) for the totals of [Imputação] and (3 949,22 €)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Can you experts help me? &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/13229"&gt;jontydkpi&lt;/A&gt;‌ can you help me? Anyone?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If anyone needs further more explanation, please ask it in the comment section bellow.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MB&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 11:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945387#M959850</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2015-10-22T11:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Pivot Table Values</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945388#M959851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most likely you will need to use Dimensionality() function to use different expressions for your Partial Sum Rows. Do you have a qvw sample we can look at?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 11:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945388#M959851</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-22T11:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Pivot Table Values</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945389#M959852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm afraid I can't have the permission to share a qvw sample, due to privacy policy from my client &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;. How can I use the Dimensionally() here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 12:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945389#M959852</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2015-10-22T12:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Pivot Table Values</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945390#M959853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wouldn't use dimensionality unless I wanted a different calculation on the totals - i.e. different from what I have on the rows. In your case, You want Sum(CustoReal) everywhere right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, if the subtotals are wrong, I'd say your data model is wrong. QlikView calculates correctly. It could e.g. be that the same dollar is asigned to several "Cod.Local" or to several "Zona". Then you would get exactly what you have here: A total that indeed is summed correctly in the fact table, but does not correspond to the sum of the lines in the pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess is that the "Zona" isn't connected to the data at all: Note that CBRASS is 398.50 no matter which "Zona" you look at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS If you create a text box with =&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(CustoReal) in it, what do you get? &lt;EM style="text-decoration: underline;"&gt;This number is the true number in your data model.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 12:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945390#M959853</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-10-22T12:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Pivot Table Values</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945391#M959854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently I've had the permission to develop a sample qvw so that I can share with my problem in it &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;MB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 13:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945391#M959854</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2015-10-22T13:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Pivot Table Values</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945392#M959855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is the table Zona, probability you joined Zona with Local and duplicated..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 13:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945392#M959855</guid>
      <dc:creator />
      <dc:date>2015-10-22T13:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Pivot Table Values</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945393#M959856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you see the Data Model, there is no duplication of Zona. Thanks for answering for my question &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 13:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945393#M959856</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2015-10-22T13:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Pivot Table Values</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945394#M959857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so, maybe the table Zona isn't relationship with Fact..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 13:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945394#M959857</guid>
      <dc:creator />
      <dc:date>2015-10-22T13:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Pivot Table Values</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945395#M959858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcos, my field Zone is linked with a table called PresenteFuturo and that's our fact table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 15:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945395#M959858</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2015-10-22T15:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Pivot Table Values</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945396#M959859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌ have you view my qvw sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 15:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945396#M959859</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2015-10-22T15:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Pivot Table Values</title>
      <link>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945397#M959860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was the solution that I could by myself get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sem Título3.png" class="jive-image image-1" src="/legacyfs/online/102811_Sem Título3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;With the expressions be like:&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;%Imputação -&amp;gt; =Sum(Imputacao%)&lt;/LI&gt;&lt;LI&gt;€ Imputação -&amp;gt; =Sum(Aggr(((tempo*1440)/60)*(ValorHora)*(Imputacao%), Zona, CodLocal, [CodEmpregado], [DataHora], [Saída]))&lt;/LI&gt;&lt;LI&gt;€ Custo Real -&amp;gt; =Sum(Aggr(((tempo*1440)/60)*(ValorHora), Zona, CodLocal, [CodEmpregado], [DataHora], [Saída]))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone find a similar problem in the future and that this answers may give you a similar solution. Have fun and good job people &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2015 16:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wrong-Pivot-Table-Values/m-p/945397#M959860</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2015-10-22T16:33:11Z</dc:date>
    </item>
  </channel>
</rss>

