<?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 aggr and charts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-and-charts/m-p/521850#M195020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;read about AGGR in the manual, two books, 3 blog posts and a few tech. briefs and still trying to understand how this scenario works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say i have a simple table with three columns:&lt;/P&gt;&lt;P&gt;Country&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Salesperson&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sold,$&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and another table:&lt;/P&gt;&lt;P&gt;Saleperson&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SalespersonOffice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i create a chart with Country and Salesperson as dimensions and one expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AVG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGGR ( SUM([Sold,$] , SalespersonOffice)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that i use SalepersonOffice in AGGR and the chart still works fine even though AGGR creates a virtual table by Office and Sum by office.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So can someone explain how AGGR knows, how to take that virtual table and apply it properly to my chart dimensions? does it works thanks to QV associative engine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a background in database/SQL development so this still looks to me like magic &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, 16 Jan 2014 14:56:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-16T14:56:02Z</dc:date>
    <item>
      <title>aggr and charts</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-and-charts/m-p/521850#M195020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;read about AGGR in the manual, two books, 3 blog posts and a few tech. briefs and still trying to understand how this scenario works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say i have a simple table with three columns:&lt;/P&gt;&lt;P&gt;Country&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Salesperson&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sold,$&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and another table:&lt;/P&gt;&lt;P&gt;Saleperson&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SalespersonOffice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i create a chart with Country and Salesperson as dimensions and one expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AVG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGGR ( SUM([Sold,$] , SalespersonOffice)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that i use SalepersonOffice in AGGR and the chart still works fine even though AGGR creates a virtual table by Office and Sum by office.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So can someone explain how AGGR knows, how to take that virtual table and apply it properly to my chart dimensions? does it works thanks to QV associative engine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a background in database/SQL development so this still looks to me like magic &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, 16 Jan 2014 14:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-and-charts/m-p/521850#M195020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-16T14:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: aggr and charts</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-and-charts/m-p/521851#M195021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Borys,&lt;/P&gt;&lt;P&gt;Its an interesting point you raised.&lt;/P&gt;&lt;P&gt;AGGR is quite similar to Group By function, but Qlikview charts automatically do a group by on dimensions.&lt;/P&gt;&lt;P&gt;So now the question appears where to use AGGR:&lt;/P&gt;&lt;P&gt;a. Create a calculated&lt;STRONG&gt; dimension&lt;/STRONG&gt; and then perform aggregation &lt;BR /&gt;b. Perform additional aggregation based on resulting set of values (e.g. in &lt;STRONG&gt;Text box&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;Most of the times expressions can be written wisely without using any AGGR but using proper dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do refer to Qlikview_11_for_Developers for more clear understanding with examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:04:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-and-charts/m-p/521851#M195021</guid>
      <dc:creator>gopalopsharma</dc:creator>
      <dc:date>2014-01-16T20:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: aggr and charts</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-and-charts/m-p/521852#M195022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Borys,&lt;/P&gt;&lt;P&gt;You guessed it right. its because of the associate data model, the two tables are linked through sales person and hence the result would look like this virtual table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 308px; height: 90px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Country&lt;/SPAN&gt;&lt;/P&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Sales Person&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Sold&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Sales person office&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-and-charts/m-p/521852#M195022</guid>
      <dc:creator />
      <dc:date>2014-01-16T20:38:32Z</dc:date>
    </item>
  </channel>
</rss>

