<?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 - 2 different conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-2-different-conditions/m-p/103190#M509265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works! thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2018 07:03:41 GMT</pubDate>
    <dc:creator>divya_anand</dc:creator>
    <dc:date>2018-09-07T07:03:41Z</dc:date>
    <item>
      <title>set analysis - 2 different conditions</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-2-different-conditions/m-p/103186#M509261</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;I am trying to get the count of complaints&lt;/P&gt;&lt;P&gt;condition 1: if the supplier family of the complaint is 'ABC', then there are no extra criteria, it should just consider that complaint&lt;/P&gt;&lt;P&gt;condition 2: if the supplier family of the complaint is not 'ABC', then it should check another condition Portal_Status-={0}.&lt;/P&gt;&lt;P&gt;Below is the expression I am using in the chart:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Supplier_Family&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'ABC'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;&lt;BR /&gt; +&lt;BR /&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Supplier_Family&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={'ABC'}, &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Portal_Status&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={0},&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Company_Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={'Test Supplier','Test Supplier','Test Company'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Complaint_Number&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the issue with this expression is this-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Without any selections, it is correct.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/212906_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;2. When I select a Supplier_Family, for eg. KGR, what I need to see is 0 (according to my 2 conditions mentioned above), but it shows the values for "ABC".&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/212907_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand it is showing correctly based on the expression, but could someone help me in modifying the expression to show the results I want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 05:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-2-different-conditions/m-p/103186#M509261</guid>
      <dc:creator>divya_anand</dc:creator>
      <dc:date>2018-09-07T05:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis - 2 different conditions</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-2-different-conditions/m-p/103187#M509262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably need the intersection operator * in your first field modifier:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Supplier_Family *= 'ABC'} &amp;gt;&lt;/P&gt;&lt;P&gt; +&lt;/P&gt;&lt;P&gt; &amp;lt;Supplier_Family-={'ABC'}, Portal_Status-={0}, Company_Name-={'Test Supplier','Test company','Test Company'} &amp;gt;}DISTINCT Complaint_Number)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 06:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-2-different-conditions/m-p/103187#M509262</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-09-07T06:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis - 2 different conditions</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-2-different-conditions/m-p/103188#M509263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the response, while I check the data with the new expression, could you please tell me what does the intersection operator do here? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 06:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-2-different-conditions/m-p/103188#M509263</guid>
      <dc:creator>divya_anand</dc:creator>
      <dc:date>2018-09-07T06:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis - 2 different conditions</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-2-different-conditions/m-p/103189#M509264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4663"&gt;Implicit Set Operators&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 06:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-2-different-conditions/m-p/103189#M509264</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-09-07T06:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis - 2 different conditions</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-2-different-conditions/m-p/103190#M509265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works! thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 07:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-2-different-conditions/m-p/103190#M509265</guid>
      <dc:creator>divya_anand</dc:creator>
      <dc:date>2018-09-07T07:03:41Z</dc:date>
    </item>
  </channel>
</rss>

