<?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: Set Analysis with AND condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-AND-condition/m-p/930743#M321801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you've got a couple of good answers there but I wanted to offer up a Set Analysis tip. Your answer was in your question: "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;return a result of all customers.." therefore your field selector is Customer. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Nov 2015 19:52:37 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2015-11-03T19:52:37Z</dc:date>
    <item>
      <title>Set Analysis with AND condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-AND-condition/m-p/930739#M321797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having a hard time structuring my set analysis to make this work. Let's say i have a simple table like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Product&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Qty&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Smith&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Widget&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Smith&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Cog&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Jones&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Widget&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to return a result of all customers who bought 2 or more widgets AND 4 or more cogs. Smith is the only customer that would meet that criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Qty={"&amp;gt;=2"},Product={'Widget'}&amp;gt; * &amp;lt;Qty={"&amp;gt;=4"},Product={'Cog'}&amp;gt;} Qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that this returns zero results, because there are no records that meet both criteria (only one product per record). I've attached a sample QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 19:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-AND-condition/m-p/930739#M321797</guid>
      <dc:creator>mhassinger</dc:creator>
      <dc:date>2015-11-03T19:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with AND condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-AND-condition/m-p/930740#M321798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(SUM({&amp;lt;Qty={"&amp;gt;=2"},Product={'Widget'}&amp;gt; * &amp;lt;Qty={"&amp;gt;=4"},Product={'Cog'}&amp;gt;} Qty), Customer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any issues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 19:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-AND-condition/m-p/930740#M321798</guid>
      <dc:creator>varunreddy</dc:creator>
      <dc:date>2015-11-03T19:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with AND condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-AND-condition/m-p/930741#M321799</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;{&amp;lt;Customer = p({&amp;lt;Qty = {'&amp;gt;=2'}, Product = {'Widget'}&amp;gt;}) * p({&amp;lt;Qty = {'&amp;gt;=4'}, Product = {'Cog'}&amp;gt;})&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 19:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-AND-condition/m-p/930741#M321799</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-03T19:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with AND condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-AND-condition/m-p/930742#M321800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum( {$ &amp;lt;Customer={"=sum({$&amp;lt;Product={Widget}&amp;gt;}Qty)&amp;gt;=2"}*{"=sum({$&amp;lt;Product={Cog}&amp;gt;}Qty)&amp;gt;=4"}&amp;gt;} Qty) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 19:44:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-AND-condition/m-p/930742#M321800</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-11-03T19:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with AND condition</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-AND-condition/m-p/930743#M321801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you've got a couple of good answers there but I wanted to offer up a Set Analysis tip. Your answer was in your question: "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;return a result of all customers.." therefore your field selector is Customer. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 19:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-AND-condition/m-p/930743#M321801</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-11-03T19:52:37Z</dc:date>
    </item>
  </channel>
</rss>

