<?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 Strange Pivot Table behaviour in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Strange-Pivot-Table-behaviour/m-p/1275957#M400793</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;I am experiencing strange behaviour in a pivot table as per attached application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calculating a 9 Week Average of Unique Customers, matching the dimension from an inline load of fixed values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Unique Customers is the first in the list of the Inline Load (as per Metric table), the 9 Week Average is calculated correctly, but when the Unique Customers is NOT the first in the list of the Inline Load (as per Metric2 table) the calculation is not evaluated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone solve and explain this please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jan 2017 11:00:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-01-05T11:00:12Z</dc:date>
    <item>
      <title>Strange Pivot Table behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Pivot-Table-behaviour/m-p/1275957#M400793</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;I am experiencing strange behaviour in a pivot table as per attached application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calculating a 9 Week Average of Unique Customers, matching the dimension from an inline load of fixed values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Unique Customers is the first in the list of the Inline Load (as per Metric table), the 9 Week Average is calculated correctly, but when the Unique Customers is NOT the first in the list of the Inline Load (as per Metric2 table) the calculation is not evaluated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone solve and explain this please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 11:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Pivot-Table-behaviour/m-p/1275957#M400793</guid>
      <dc:creator />
      <dc:date>2017-01-05T11:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Pivot Table behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Pivot-Table-behaviour/m-p/1275958#M400794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you change expression 2 in the Pivot Table and add an extra aggregation dimension to your Aggr-function it seems to work as you want it to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-01-05 13_09_24-.png" class="jive-image image-1" src="/legacyfs/online/148437_2017-01-05 13_09_24-.png" style="height: 231px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I high-lighted (selected) what I added in black in the above screenshot...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 12:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Pivot-Table-behaviour/m-p/1275958#M400794</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-05T12:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Pivot Table behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Pivot-Table-behaviour/m-p/1275959#M400795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The explanation is that you have to let the Aggr function aggregate over all necessary dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you have a single row selected in your Pivot Table it will sort of act as an aggregation for the Metric2 with only one value which is "Unique Customers" - that is why it is able to calculate correctly. If you have none of the Metric2 values selected it will force a Null() value because of your If( ... ) and then of course it will turn into a Null value for the Aggr too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should simplify your expression removing the If so it becomes like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-01-05 13_19_21-Edit Expression.png" class="jive-image image-1" src="/legacyfs/online/148438_2017-01-05 13_19_21-Edit Expression.png" style="height: 263px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 12:20:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Pivot-Table-behaviour/m-p/1275959#M400795</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-05T12:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Pivot Table behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Pivot-Table-behaviour/m-p/1275960#M400796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, Great so I had to Include Metric2 to the Aggr as a dimension as well... Thanks, but really strange how QlikView works this out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 13:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Pivot-Table-behaviour/m-p/1275960#M400796</guid>
      <dc:creator />
      <dc:date>2017-01-05T13:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Pivot Table behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Pivot-Table-behaviour/m-p/1275961#M400797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It can be hard to understand - it has taken me a while to get to grips with it. It is not so strange once you get past the first few advanced/complex use-cases with Aggr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 13:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Pivot-Table-behaviour/m-p/1275961#M400797</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-05T13:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Pivot Table behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Pivot-Table-behaviour/m-p/1275962#M400798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Petter for your help, yes will take me some time to get my head around it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 13:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Pivot-Table-behaviour/m-p/1275962#M400798</guid>
      <dc:creator />
      <dc:date>2017-01-05T13:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Pivot Table behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Pivot-Table-behaviour/m-p/1275963#M400799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, please mark the question as answered to close this thread &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, 05 Jan 2017 14:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Pivot-Table-behaviour/m-p/1275963#M400799</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-05T14:46:57Z</dc:date>
    </item>
  </channel>
</rss>

