<?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: Help please - Difficulties to create a Table with the Right Info in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-please-Difficulties-to-create-a-Table-with-the-Right-Info/m-p/577819#M214854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have look at attached QVW . But I am not able to understand your question (2)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Max groupID by company.jpg" class="jive-image" src="/legacyfs/online/56184_Max groupID by company.jpg" style="width: 620px; height: 275px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Mar 2014 18:46:35 GMT</pubDate>
    <dc:creator>chiru_thota</dc:creator>
    <dc:date>2014-03-29T18:46:35Z</dc:date>
    <item>
      <title>Help please - Difficulties to create a Table with the Right Info</title>
      <link>https://community.qlik.com/t5/QlikView/Help-please-Difficulties-to-create-a-Table-with-the-Right-Info/m-p/577818#M214853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have this data:&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" width="240"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="80"&gt;CompanyId&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="80"&gt;GroupId&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="80"&gt;OrderId&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;C01&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;G01&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;C01&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;G02&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;C01&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;G05&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;C02&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;G02&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;C02&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;G04&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;C03&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;G01&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;C03&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;G02&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;C03&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;G05&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;C03&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;G06&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;C03&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;G07&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; And I need to show a table that will show the number of distinct companies grouped by GroupId. The important thing is that a company has to be counted only once in the available group with the maximum OrderId.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; So here you are some examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 1) With no filters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 238px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="80"&gt;GroupId&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="158"&gt;NumDistinctCompanies&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;G01&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;G02&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;G03&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;G04&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;G05&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;G06&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;G07&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;TOTAL&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 2) Filtering groups G01, G02 and G06.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 238px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="80"&gt;GroupId&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="158"&gt;NumDistinctCompanies&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;G01&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;G02&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;G06&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;TOTAL&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Do not hesiate to ask if you have any doubt and many many thanks in advance.&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 17:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-please-Difficulties-to-create-a-Table-with-the-Right-Info/m-p/577818#M214853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-29T17:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help please - Difficulties to create a Table with the Right Info</title>
      <link>https://community.qlik.com/t5/QlikView/Help-please-Difficulties-to-create-a-Table-with-the-Right-Info/m-p/577819#M214854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have look at attached QVW . But I am not able to understand your question (2)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Max groupID by company.jpg" class="jive-image" src="/legacyfs/online/56184_Max groupID by company.jpg" style="width: 620px; height: 275px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 18:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-please-Difficulties-to-create-a-Table-with-the-Right-Info/m-p/577819#M214854</guid>
      <dc:creator>chiru_thota</dc:creator>
      <dc:date>2014-03-29T18:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help please - Difficulties to create a Table with the Right Info</title>
      <link>https://community.qlik.com/t5/QlikView/Help-please-Difficulties-to-create-a-Table-with-the-Right-Info/m-p/577820#M214855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe using a dimension GroupId and an expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum(aggr(if(OrderId= max(total&amp;lt;CompanyId&amp;gt; OrderId),1),CompanyId, GroupId))&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 18:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-please-Difficulties-to-create-a-Table-with-the-Right-Info/m-p/577820#M214855</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-03-29T18:49:44Z</dc:date>
    </item>
  </channel>
</rss>

