<?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: Function AGGR in Set Analisys(pivot table) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Function-AGGR-in-Set-Analisys-pivot-table/m-p/1016515#M939305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the logic behind adding otherdimension in your Aggr? I am not sure I understand why you want to add it when you getting the result without it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jan 2016 21:28:54 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-01-29T21:28:54Z</dc:date>
    <item>
      <title>Function AGGR in Set Analisys(pivot table)</title>
      <link>https://community.qlik.com/t5/QlikView/Function-AGGR-in-Set-Analisys-pivot-table/m-p/1016514#M939304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, someone help me please!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have probem with the function AGGR because, when I put only one dimension, the value is different that when I put others dimensions in the sum. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I put: sum(aggr(if(sum({&amp;lt;ANO={$(=YEAR(&lt;STRONG&gt;DATA_INI&lt;/STRONG&gt;))}&amp;gt;} valor )&amp;lt;&amp;gt;0 and (sum( {&amp;lt;ANO={$(=YEAR(&lt;STRONG&gt;DATA_INI_ANT&lt;/STRONG&gt;))}&amp;gt;} valor )&amp;lt;&amp;gt;0),sum({&amp;lt;ANO={$(=YEAR(DATA_INI))}&amp;gt;} valor ),0),&lt;STRONG&gt;filial&lt;/STRONG&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's work and I can to see the value of the filial, and the sum is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when&amp;nbsp; I try to put something like that: &lt;SPAN style="font-size: 13.3333px;"&gt;sum(aggr(if(sum({&amp;lt;ANO={$(=YEAR(&lt;STRONG&gt;DATA_INI&lt;/STRONG&gt;))}&amp;gt;} valor )&amp;lt;&amp;gt;0 and (sum( {&amp;lt;ANO={$(=YEAR(&lt;STRONG&gt;DATA_INI_ANT&lt;/STRONG&gt;))}&amp;gt;} valor )&amp;lt;&amp;gt;0),sum({&amp;lt;ANO={$(=YEAR(DATA_INI))}&amp;gt;} valor ),0),filial,&lt;STRONG&gt;otherdimension&lt;/STRONG&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value is different. I understood why that happens but I need to solve this problem. Probably the solution is make the same but without AGGR, I tried a lot, but nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ps: Sorry because my english is horrible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 20:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-AGGR-in-Set-Analisys-pivot-table/m-p/1016514#M939304</guid>
      <dc:creator />
      <dc:date>2016-01-29T20:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Function AGGR in Set Analisys(pivot table)</title>
      <link>https://community.qlik.com/t5/QlikView/Function-AGGR-in-Set-Analisys-pivot-table/m-p/1016515#M939305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the logic behind adding otherdimension in your Aggr? I am not sure I understand why you want to add it when you getting the result without it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 21:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-AGGR-in-Set-Analisys-pivot-table/m-p/1016515#M939305</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-29T21:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Function AGGR in Set Analisys(pivot table)</title>
      <link>https://community.qlik.com/t5/QlikView/Function-AGGR-in-Set-Analisys-pivot-table/m-p/1016516#M939306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably know that this kind of expression is used to express the sum-of-rows in a pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your sum-of-rows is different from the expression total (e.g. because you may have records linking multiple times into different segments of your table), then adding dimensions will make a difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But maybe you can add dimensions, still achieving the same using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;aggr(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(sum({&amp;lt;ANO={$(=YEAR(&lt;STRONG&gt;DATA_INI&lt;/STRONG&gt;))}&amp;gt;} &lt;STRONG&gt;TOTAL&amp;lt;filial&amp;gt;&lt;/STRONG&gt; valor )&amp;lt;&amp;gt;0 and (sum( {&amp;lt;ANO={$(=YEAR(&lt;STRONG&gt;DATA_INI_ANT&lt;/STRONG&gt;))}&amp;gt;} &lt;STRONG&gt;TOTAL&amp;lt;filial&amp;gt; &lt;/STRONG&gt;valor )&amp;lt;&amp;gt;0),sum({&amp;lt;ANO={$(=YEAR(DATA_INI))}&amp;gt;} &lt;STRONG&gt;TOTAL&amp;lt;filial&amp;gt; &lt;/STRONG&gt;valor ),0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,filial,&lt;STRONG&gt;otherdimension&lt;/STRONG&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 22:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-AGGR-in-Set-Analisys-pivot-table/m-p/1016516#M939306</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-29T22:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Function AGGR in Set Analisys(pivot table)</title>
      <link>https://community.qlik.com/t5/QlikView/Function-AGGR-in-Set-Analisys-pivot-table/m-p/1016517#M939307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, when you make a Pivot table, if you intend to see others levels(for example, you need to see a car, and all colors available) , you need to use Aggr function. The problem is when you use SubTotal, because when you have a lot of dimensios, the subtotal don't work. It's difficult to explain, maibe swuehl can to explain better than me. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 16:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-AGGR-in-Set-Analisys-pivot-table/m-p/1016517#M939307</guid>
      <dc:creator />
      <dc:date>2016-02-01T16:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function AGGR in Set Analisys(pivot table)</title>
      <link>https://community.qlik.com/t5/QlikView/Function-AGGR-in-Set-Analisys-pivot-table/m-p/1016518#M939308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swehl, thats work! Thank you for your attention!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 16:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-AGGR-in-Set-Analisys-pivot-table/m-p/1016518#M939308</guid>
      <dc:creator />
      <dc:date>2016-02-01T16:40:35Z</dc:date>
    </item>
  </channel>
</rss>

