<?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 Set analysis - Using aggregate and set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-Using-aggregate-and-set-analysis/m-p/1214545#M389169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of invoices of cars sold. Each invoice has a car, a car maker, invoice date and invoice value. Basically my table is:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="cars - database.png" class="jive-image image-1" src="/legacyfs/online/150424_cars - database.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;What I need to do is to bring in a table all the cars from the car maker that has at least one (could be more) car that sold more than £16,000.00 for a specific month using &lt;SPAN style="text-decoration: underline;"&gt;Set Analysis&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm able to return in a table all the cars that has sold more than £16,000.00, however it was not exhibiting the other cars from the same car makers.&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Car = {'=Aggr(Sum([Invoice Value]), Car)&amp;gt;16000'}&amp;gt;} [Invoice Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result was:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="cars - return set.png" class="jive-image image-2" src="/legacyfs/online/150431_cars - return set.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;What I'm looking for is return in addition to Clio, return also Captur and Megane where even though their individual sold was less than $16,000.00 they are part of Renault which has Clio that sold more £16,000.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached has the Excel file and the Qlikview I've used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll be glad if you send me some suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jan 2017 09:36:15 GMT</pubDate>
    <dc:creator>oscarneo</dc:creator>
    <dc:date>2017-01-23T09:36:15Z</dc:date>
    <item>
      <title>Set analysis - Using aggregate and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Using-aggregate-and-set-analysis/m-p/1214545#M389169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of invoices of cars sold. Each invoice has a car, a car maker, invoice date and invoice value. Basically my table is:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="cars - database.png" class="jive-image image-1" src="/legacyfs/online/150424_cars - database.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;What I need to do is to bring in a table all the cars from the car maker that has at least one (could be more) car that sold more than £16,000.00 for a specific month using &lt;SPAN style="text-decoration: underline;"&gt;Set Analysis&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm able to return in a table all the cars that has sold more than £16,000.00, however it was not exhibiting the other cars from the same car makers.&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Car = {'=Aggr(Sum([Invoice Value]), Car)&amp;gt;16000'}&amp;gt;} [Invoice Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result was:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="cars - return set.png" class="jive-image image-2" src="/legacyfs/online/150431_cars - return set.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;What I'm looking for is return in addition to Clio, return also Captur and Megane where even though their individual sold was less than $16,000.00 they are part of Renault which has Clio that sold more £16,000.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached has the Excel file and the Qlikview I've used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll be glad if you send me some suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 09:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Using-aggregate-and-set-analysis/m-p/1214545#M389169</guid>
      <dc:creator>oscarneo</dc:creator>
      <dc:date>2017-01-23T09:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Using aggregate and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Using-aggregate-and-set-analysis/m-p/1214546#M389170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;[Car Brand] = P({&amp;lt;Car = {"=SUM([Invoice Value])&amp;gt;16000"}&amp;gt;}[Car Brand])&amp;gt;}[Invoice Value])&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;[Car Brand] = P({1&amp;lt;Car = {"=SUM([Invoice Value])&amp;gt;16000"}&amp;gt;}[Car Brand])&amp;gt;}[Invoice Value])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 10:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Using-aggregate-and-set-analysis/m-p/1214546#M389170</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-01-23T10:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Using aggregate and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Using-aggregate-and-set-analysis/m-p/1214547#M389171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Manish Kachhia. You've solved it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 10:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Using-aggregate-and-set-analysis/m-p/1214547#M389171</guid>
      <dc:creator>oscarneo</dc:creator>
      <dc:date>2017-01-23T10:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Using aggregate and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Using-aggregate-and-set-analysis/m-p/1214548#M389172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't you get your answer yet? &lt;/P&gt;&lt;P&gt;Let me know what is missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 10:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Using-aggregate-and-set-analysis/m-p/1214548#M389172</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-01-23T10:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Using aggregate and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Using-aggregate-and-set-analysis/m-p/1214549#M389173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I did. I'm just trying to find out how to mark that as the correct answer. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 10:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Using-aggregate-and-set-analysis/m-p/1214549#M389173</guid>
      <dc:creator>oscarneo</dc:creator>
      <dc:date>2017-01-23T10:42:49Z</dc:date>
    </item>
  </channel>
</rss>

