<?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: Create a new table, based on aggregations in the original table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-new-table-based-on-aggregations-in-the-original-table/m-p/2009372#M1221675</link>
    <description>&lt;P&gt;can you share output for all line items ? It will be easier to understand your requirement in that way.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Aditya&lt;/P&gt;</description>
    <pubDate>Sat, 26 Nov 2022 05:16:56 GMT</pubDate>
    <dc:creator>Aditya_Chitale</dc:creator>
    <dc:date>2022-11-26T05:16:56Z</dc:date>
    <item>
      <title>Create a new table, based on aggregations in the original table</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-table-based-on-aggregations-in-the-original-table/m-p/2009290#M1221672</link>
      <description>&lt;P&gt;From the first table I want to produce the result that is in the last table. So in this example only one record needs to be created. The logic is as follows. Users are in the userGroups and users have interest in specific "sites". If any user from a userGroup visits the site, that view is counted for him, but also for all the other users from the same userGroup that have interest in that site.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;groupViews&lt;/STRONG&gt;&lt;/U&gt; in the final table is the sum of all the views from all users in the group that have views for one of the sites of the user&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VIEWS:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;date, user, userGroup, site, views&lt;BR /&gt;1, moe, a, sport, 2&amp;nbsp;&lt;BR /&gt;1, moe, a, art, 2&lt;BR /&gt;1, bo, b, sport, 2&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;USERS_SITES:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;user, userSite&lt;BR /&gt;joe, sport&lt;BR /&gt;moe, sport&lt;BR /&gt;moe, art&lt;BR /&gt;bo, sport&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;// Desired result:&lt;/P&gt;
&lt;P&gt;GROUP_VIEWS:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;date, user, userGroup, site, &lt;STRONG&gt;groupViews&lt;/STRONG&gt;&lt;BR /&gt;1, joe, a, sport, &lt;STRONG&gt;2&lt;/STRONG&gt;&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 16:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-table-based-on-aggregations-in-the-original-table/m-p/2009290#M1221672</guid>
      <dc:creator>MraakB</dc:creator>
      <dc:date>2022-11-25T16:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new table, based on aggregations in the original table</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-table-based-on-aggregations-in-the-original-table/m-p/2009372#M1221675</link>
      <description>&lt;P&gt;can you share output for all line items ? It will be easier to understand your requirement in that way.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2022 05:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-table-based-on-aggregations-in-the-original-table/m-p/2009372#M1221675</guid>
      <dc:creator>Aditya_Chitale</dc:creator>
      <dc:date>2022-11-26T05:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new table, based on aggregations in the original table</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-new-table-based-on-aggregations-in-the-original-table/m-p/2009541#M1221693</link>
      <description>&lt;P&gt;The output should be the last table, so the &lt;STRONG&gt;groupViews&lt;/STRONG&gt; per &lt;STRONG&gt;user&lt;/STRONG&gt;&amp;nbsp;per &lt;STRONG&gt;date&lt;/STRONG&gt; per &lt;STRONG&gt;site&lt;/STRONG&gt;, without the individual views. In this case Joe got 2 views from Moe, because they're in the same group and Moe had 2 views in sport section - which is also what &amp;nbsp;Joe is interested in.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 08:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-new-table-based-on-aggregations-in-the-original-table/m-p/2009541#M1221693</guid>
      <dc:creator>MraakB</dc:creator>
      <dc:date>2022-11-28T08:05:15Z</dc:date>
    </item>
  </channel>
</rss>

