<?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: Using set analysis aggregated by another field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-aggregated-by-another-field/m-p/73132#M775107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample where you have this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2018 12:45:29 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-05-09T12:45:29Z</dc:date>
    <item>
      <title>Using set analysis aggregated by another field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-aggregated-by-another-field/m-p/73128#M775100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have three fields in my dataset:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Customer&lt;/LI&gt;&lt;LI&gt;SaleID&lt;/LI&gt;&lt;LI&gt;Revenue&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create an table with Revenue as an expression and SalesID for a dimension. I only want the table to display rows for sales where a customer's total Revenue is not equal to zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My initial attempt led me to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Revenue-={'0'}&amp;gt;}Revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue with the above formula is that it checks whether a SalesID has zero revenue, rather than checking whether a Customer does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to aggregate the set analysis by Customer? Or to achieve what I want some other way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-aggregated-by-another-field/m-p/73128#M775100</guid>
      <dc:creator>jwheatonumich</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis aggregated by another field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-aggregated-by-another-field/m-p/73129#M775101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({$&amp;lt;Revenue-={"=Customer = 0"}&amp;gt;}Revenue)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 23:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-aggregated-by-another-field/m-p/73129#M775101</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-05-08T23:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis aggregated by another field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-aggregated-by-another-field/m-p/73130#M775103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({$&amp;lt;Customer = {"=Sum(Revenue) &amp;lt;&amp;gt; 0"}&amp;gt;} Revenue)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 02:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-aggregated-by-another-field/m-p/73130#M775103</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-09T02:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis aggregated by another field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-aggregated-by-another-field/m-p/73131#M775105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This results in a value of zero for revenue on every row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 12:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-aggregated-by-another-field/m-p/73131#M775105</guid>
      <dc:creator>jwheatonumich</dc:creator>
      <dc:date>2018-05-09T12:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis aggregated by another field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-aggregated-by-another-field/m-p/73132#M775107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample where you have this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 12:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-aggregated-by-another-field/m-p/73132#M775107</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-09T12:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis aggregated by another field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-aggregated-by-another-field/m-p/73133#M775108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does not filter out any of the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like this is filtering out any results where Customer is equal to zero, rather than where Revenue by Customer is zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 12:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-aggregated-by-another-field/m-p/73133#M775108</guid>
      <dc:creator>jwheatonumich</dc:creator>
      <dc:date>2018-05-09T12:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis aggregated by another field</title>
      <link>https://community.qlik.com/t5/QlikView/Using-set-analysis-aggregated-by-another-field/m-p/73134#M775110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up solving the problem by doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loading a new table with a flag for Customers with nonzero revenue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer_Revenue_Flag:&lt;/P&gt;&lt;P&gt;LOAD Customer,&lt;/P&gt;&lt;P&gt;if(Revenue &amp;lt;&amp;gt;0,1,0) as Customer_Revenue_Flag&lt;/P&gt;&lt;P&gt;From [...] (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new table was joined to my original table by the customer field since they shared a name, allowing me to use the following set analysis to only include customers with nonzero revenue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Customer_Revenue_Flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={'0'}&amp;gt;}Revenue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 15:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-set-analysis-aggregated-by-another-field/m-p/73134#M775110</guid>
      <dc:creator>jwheatonumich</dc:creator>
      <dc:date>2018-05-09T15:58:23Z</dc:date>
    </item>
  </channel>
</rss>

