<?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: Get Average Between Dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-Average-Between-Dimensions/m-p/1725526#M452002</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/120462"&gt;@lain_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in this case I suggest you change ValueList to island table:&lt;/P&gt;&lt;P&gt;attached qvw file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;IslanTable:

LOAD * INLINE [

Var,Measure

Var1,Avg(total aggr(sum(total &amp;lt;Var1&amp;gt; value1) / sum(total &amp;lt;Var1&amp;gt; value2),Var1))

Var2,Avg(total aggr(sum(total &amp;lt;Var2&amp;gt; value1) / sum(total &amp;lt;Var2&amp;gt; value2) ,Var2))

];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37044i61A8E40A32951D10/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37045i422BF31E3E670BBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jul 2020 21:52:39 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-07-06T21:52:39Z</dc:date>
    <item>
      <title>Get Average Between Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Average-Between-Dimensions/m-p/1725486#M451996</link>
      <description>&lt;P&gt;With the tables I have in the qvw file below, one is a table of Var1 and some values calculated from an expression, the other&amp;nbsp;&amp;nbsp;is a table of Var2 and some values calculated from an expression. How do I take the average of these values, so that Var1 has an associated average and Var2 has an associated average. The goal is to then graph this. I attached an excel file of what I want to avoid confusion.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 18:27:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Average-Between-Dimensions/m-p/1725486#M451996</guid>
      <dc:creator>lain_</dc:creator>
      <dc:date>2020-07-06T18:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get Average Between Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Average-Between-Dimensions/m-p/1725518#M451999</link>
      <description>&lt;P&gt;Maye be qvw attached file ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37042i14D391287822527F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 21:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Average-Between-Dimensions/m-p/1725518#M451999</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-07-06T21:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get Average Between Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Average-Between-Dimensions/m-p/1725519#M452000</link>
      <description>&lt;P&gt;Thank you so much. To expand on this. How would I go about adding a listbox to select the Var1, Var2. Let's say I have Var1, Var2, Var3, Var4 and I want to be able to select some of these to do the calculations.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 21:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Average-Between-Dimensions/m-p/1725519#M452000</guid>
      <dc:creator>lain_</dc:creator>
      <dc:date>2020-07-06T21:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get Average Between Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Average-Between-Dimensions/m-p/1725526#M452002</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/120462"&gt;@lain_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in this case I suggest you change ValueList to island table:&lt;/P&gt;&lt;P&gt;attached qvw file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;IslanTable:

LOAD * INLINE [

Var,Measure

Var1,Avg(total aggr(sum(total &amp;lt;Var1&amp;gt; value1) / sum(total &amp;lt;Var1&amp;gt; value2),Var1))

Var2,Avg(total aggr(sum(total &amp;lt;Var2&amp;gt; value1) / sum(total &amp;lt;Var2&amp;gt; value2) ,Var2))

];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37044i61A8E40A32951D10/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37045i422BF31E3E670BBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 21:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Average-Between-Dimensions/m-p/1725526#M452002</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-07-06T21:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get Average Between Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Average-Between-Dimensions/m-p/1725533#M452003</link>
      <description>&lt;P&gt;Thank you! I ended up needing to use a variable so I couldn't implement what you did with the load script, so I expanded on your first solution by replacing the value list with the listbox and adding more Var(s) in the match function. I'll accept your first solution to this since it directly solves my original question in case anyone else needs it.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 22:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Average-Between-Dimensions/m-p/1725533#M452003</guid>
      <dc:creator>lain_</dc:creator>
      <dc:date>2020-07-06T22:39:49Z</dc:date>
    </item>
  </channel>
</rss>

