<?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 Calculate Avg grouped by 2 dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-Avg-grouped-by-2-dimensions/m-p/295987#M579896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i need to obtein the average grouped by Period and Country like show the following table. Can you help me?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="chart.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/10467_chart.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jan 2012 12:51:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-21T12:51:08Z</dc:date>
    <item>
      <title>Calculate Avg grouped by 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Avg-grouped-by-2-dimensions/m-p/295987#M579896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i need to obtein the average grouped by Period and Country like show the following table. Can you help me?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="chart.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/10467_chart.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 12:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Avg-grouped-by-2-dimensions/m-p/295987#M579896</guid>
      <dc:creator />
      <dc:date>2012-01-21T12:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Avg grouped by 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Avg-grouped-by-2-dimensions/m-p/295988#M579897</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;it seems I have some problems reading your table. The last column is what you want to achieve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your sample data,&amp;nbsp; I would expect to see the same value for any given combination of Period and Country, if you want to group by these 2 dimensions.&lt;/P&gt;&lt;P&gt;It looks to me that your last column is an average grouped by 3 dimensions (Period, Country and Type or Products).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the field / value you want to average? If you could post some lines of raw data, this might help in finding a solution for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;If you just want to give it a try:&lt;/P&gt;&lt;P&gt;=avg(total&amp;lt;Period, Country&amp;gt; Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 15:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Avg-grouped-by-2-dimensions/m-p/295988#M579897</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-21T15:18:32Z</dc:date>
    </item>
    <item>
      <title>Calculate Avg grouped by 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Avg-grouped-by-2-dimensions/m-p/295989#M579898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl, the last column is the normal average result. So it sum 100%, but i need the result of previous column: Avg (Period/Country) which sum 100% by each Period &amp;amp; Country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your attention&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 15:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Avg-grouped-by-2-dimensions/m-p/295989#M579898</guid>
      <dc:creator />
      <dc:date>2012-01-21T15:38:02Z</dc:date>
    </item>
    <item>
      <title>Calculate Avg grouped by 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Avg-grouped-by-2-dimensions/m-p/295990#M579899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks more like a percentage share of products number than an average value to me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is what you want, I think the last column is calculated like&lt;/P&gt;&lt;P&gt;= sum(Products) / sum(total Products) *100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the second last column like&lt;/P&gt;&lt;P&gt;= sum(Products) / sum(total&amp;lt;Period, Country&amp;gt; Products) * 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a table chart with Period, Country and Type as dimensions - wait that won't explain your two feb-11 / Spain / D lines, how do you separate these two lines? There seems to be some dimension missing here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 15:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Avg-grouped-by-2-dimensions/m-p/295990#M579899</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-21T15:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Avg grouped by 2 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Avg-grouped-by-2-dimensions/m-p/295991#M579900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks swuehl, your solution works fine !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry, the two feb-11 / Spain / D lines was a mistake when typing, one line would be C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2012 16:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Avg-grouped-by-2-dimensions/m-p/295991#M579900</guid>
      <dc:creator />
      <dc:date>2012-01-21T16:38:09Z</dc:date>
    </item>
  </channel>
</rss>

