<?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: Pivot with 3 dimensions Avg(), Sum() Dimensionality() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-with-3-dimensions-Avg-Sum-Dimensionality/m-p/76234#M12602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry..&lt;/P&gt;&lt;P&gt;You were right.. i had the same numbers... forgot that i fooled around with the expression..&lt;/P&gt;&lt;P&gt;But looks like expression is what I need..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Feb 2018 13:07:37 GMT</pubDate>
    <dc:creator>dafnis14</dc:creator>
    <dc:date>2018-02-09T13:07:37Z</dc:date>
    <item>
      <title>Pivot with 3 dimensions Avg(), Sum() Dimensionality()</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-with-3-dimensions-Avg-Sum-Dimensionality/m-p/76229#M12597</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 need to create a pivot for data which have the same price for a part&amp;nbsp; each line of a file.&lt;/P&gt;&lt;P&gt;The pivot dimensions should be Acc Family, Family, part.&lt;/P&gt;&lt;P&gt;The measure to be calculated&amp;nbsp; is total price.&lt;/P&gt;&lt;P&gt;I need to show sub totals for each dim.&lt;/P&gt;&lt;P&gt;The challenge is to manipulate between Avg and Sum.&lt;/P&gt;&lt;P&gt;Which is the best way to achieve this?&lt;/P&gt;&lt;P&gt;By doing some manipulation in script?&lt;/P&gt;&lt;P&gt;I got a bit lost with Dimensioanlity &amp;amp; aggr..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is some sample data and the model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate some guidelines about the way to deal with such a case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="192891" alt="Cost_Pivot.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/192891_Cost_Pivot.png" style="height: 318px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 20:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-with-3-dimensions-Avg-Sum-Dimensionality/m-p/76229#M12597</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2018-02-08T20:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot with redundant value</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-with-3-dimensions-Avg-Sum-Dimensionality/m-p/76230#M12598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you create a pivot table, you can select to see sub-totals for any of your dimensions on the presentation tab: &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/192910_Untitled.png" style="height: 506px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;You need to select each dimension and check the "Show Partial Sums" box for each one you want to see the subtotal for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 23:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-with-3-dimensions-Avg-Sum-Dimensionality/m-p/76230#M12598</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2018-02-08T23:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot with 3 dimensions Avg(), Sum() Dimensionality()</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-with-3-dimensions-Avg-Sum-Dimensionality/m-p/76231#M12599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your tip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in this case that solution will generate wrong results, since the value to be summed repeats itself in the data. Another words, the expression has to be average and not sum, and I have problems with getting the right dimensionality expressions..&lt;/P&gt;&lt;P&gt;I attached a model to demonstrate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 06:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-with-3-dimensions-Avg-Sum-Dimensionality/m-p/76231#M12599</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2018-02-09T06:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot with 3 dimensions Avg(), Sum() Dimensionality()</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-with-3-dimensions-Avg-Sum-Dimensionality/m-p/76232#M12600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if you need to deal with dimensionality here at all - this formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(Avg([Total Price]), [Acc Family], Family, Part))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will show averages at the Part level, and sum them up on Family and Acc Family levels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, this gives exact same numbers as your old formula, so I'm not sure if I understood your requirements correctly &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; If you have 2 different Total Prices for the same Part, do you actually want to have them averaged, or summed (distinct values only, not every repeated one)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 10:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-with-3-dimensions-Avg-Sum-Dimensionality/m-p/76232#M12600</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2018-02-09T10:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot with 3 dimensions Avg(), Sum() Dimensionality()</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-with-3-dimensions-Avg-Sum-Dimensionality/m-p/76233#M12601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jakub,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added your expression to the model (Total Price 2), and you can see that it doesn't show the exact same numbers.&lt;/P&gt;&lt;P&gt;Looks like your expression is the correct one &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The data structure is that a part a few costs line, and each has the part price (which is identical). That's why i needed the average,&lt;/P&gt;&lt;P&gt;but also show a correct total for the 3 dimensions.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="New_Expression.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/192943_New_Expression.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 13:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-with-3-dimensions-Avg-Sum-Dimensionality/m-p/76233#M12601</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2018-02-09T13:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot with 3 dimensions Avg(), Sum() Dimensionality()</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-with-3-dimensions-Avg-Sum-Dimensionality/m-p/76234#M12602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry..&lt;/P&gt;&lt;P&gt;You were right.. i had the same numbers... forgot that i fooled around with the expression..&lt;/P&gt;&lt;P&gt;But looks like expression is what I need..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 13:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-with-3-dimensions-Avg-Sum-Dimensionality/m-p/76234#M12602</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2018-02-09T13:07:37Z</dc:date>
    </item>
  </channel>
</rss>

