<?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: Aggregated average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregated-average/m-p/1001190#M340346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understood the problem, the requirement was to obtain the average of the city of red_cars to total_cars &lt;SPAN style="font-size: 13.3333px;"&gt;ratio, and this is what my expression does&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the original expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {[(10 + 5 + 0)/(50 + 20 + 10)] + [(2/30)]} / 2 results in 0.12708333&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;My expression, also resulted in 0.12708333&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Eduardo&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Dec 2015 17:08:01 GMT</pubDate>
    <dc:creator>eduardo_sommer</dc:creator>
    <dc:date>2015-12-11T17:08:01Z</dc:date>
    <item>
      <title>Aggregated average</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-average/m-p/1001186#M340342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following question. If I have the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 249px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="48"&gt;city_id&lt;/TD&gt;&lt;TD class="xl63" width="75"&gt;date&lt;/TD&gt;&lt;TD class="xl63" width="59"&gt;red_cars&lt;/TD&gt;&lt;TD class="xl63" width="67"&gt;total_cars&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;1&lt;/TD&gt;&lt;TD class="xl64"&gt;12/11/2015&lt;/TD&gt;&lt;TD class="xl63"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/TD&gt;&lt;TD class="xl63"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="22"&gt;1&lt;/TD&gt;&lt;TD class="xl64"&gt;12/12/2015&lt;/TD&gt;&lt;TD class="xl63"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/TD&gt;&lt;TD class="xl63"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="22"&gt;1&lt;/TD&gt;&lt;TD class="xl64"&gt;12/13/2015&lt;/TD&gt;&lt;TD class="xl63"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/TD&gt;&lt;TD class="xl63"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;2&lt;/TD&gt;&lt;TD class="xl64"&gt;12/11/2015&lt;/TD&gt;&lt;TD class="xl63"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/TD&gt;&lt;TD class="xl63"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to compute the average of red cars aggregated by the average by city.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, {[(10 + 5 + 0)/(50 + 20 + 10)] + [(2/30)]} / 2 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 14:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-average/m-p/1001186#M340342</guid>
      <dc:creator />
      <dc:date>2015-12-11T14:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated average</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-average/m-p/1001187#M340343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a pivot table and add dimensions as your id,date and in the expression use avg(red_Cars)/total_cars&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 16:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-average/m-p/1001187#M340343</guid>
      <dc:creator />
      <dc:date>2015-12-11T16:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated average</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-average/m-p/1001188#M340344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the following expression in a text object, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(sum(red_cars)/sum(total_cars),city_id))/count(DISTINCT city_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 16:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-average/m-p/1001188#M340344</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2015-12-11T16:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated average</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-average/m-p/1001189#M340345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand very well your formula, but this expresion maybe help you see more clear:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/108790_Capture.PNG" style="height: 230px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(Sum(red_cars),city_id)) = Sum all values for each city&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(Sum(red_cars),city_id))/Sum(Aggr(Sum(total_cars),city_id)) = Divide Red_Cars by Total_Cars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 16:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-average/m-p/1001189#M340345</guid>
      <dc:creator>jolivares</dc:creator>
      <dc:date>2015-12-11T16:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregated average</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregated-average/m-p/1001190#M340346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understood the problem, the requirement was to obtain the average of the city of red_cars to total_cars &lt;SPAN style="font-size: 13.3333px;"&gt;ratio, and this is what my expression does&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the original expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {[(10 + 5 + 0)/(50 + 20 + 10)] + [(2/30)]} / 2 results in 0.12708333&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;My expression, also resulted in 0.12708333&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Eduardo&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 17:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregated-average/m-p/1001190#M340346</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2015-12-11T17:08:01Z</dc:date>
    </item>
  </channel>
</rss>

