<?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: If condition with multiple criteria using AND, also value if TRUE is aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-condition-with-multiple-criteria-using-AND-also-value-if-TRUE/m-p/1200922#M878409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(FCRA_dummy = 1 and [Not_e-Oscar_Dum] = 1, Count(Pkey) + Count([ACDV Control Number]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({&amp;lt;FCRA_dummy = {1}, [Not_e-Oscar_Dum] = {1}&amp;gt;} Pkey) + Count({&amp;lt;FCRA_dummy = {1}, [Not_e-Oscar_Dum] = {1}&amp;gt;}[ACDV Control Number])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2016 16:46:25 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-10-17T16:46:25Z</dc:date>
    <item>
      <title>If condition with multiple criteria using AND, also value if TRUE is aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-with-multiple-criteria-using-AND-also-value-if-TRUE/m-p/1200921#M878408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to write a condition on some of my bar charts that would be equivalent to SUMIFS or COUNTIFS variations in Excel. If my IF condition meets two criteria (AND) then I want two values aggregated (summed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's what I have written:&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;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FCRA_dummy&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=1 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Not_e-Oscar_Dum]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=1, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Pkey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ACDV Control 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;SPAN style="font-size: 8pt;"&gt;IF both of my dummies are "1", I just want a count of a distinct column in my data, then sum that with another count of a distinct column in my data. I am not getting an error with this expression, but it isn't showing any data, and I know that's not true. I'm sure there is a simple solution to this, or maybe even a function built in to QV.. Any ideas on why this isn't working?&lt;/SPAN&gt;&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/If-condition-with-multiple-criteria-using-AND-also-value-if-TRUE/m-p/1200921#M878408</guid>
      <dc:creator>lucasdavis500</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: If condition with multiple criteria using AND, also value if TRUE is aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-with-multiple-criteria-using-AND-also-value-if-TRUE/m-p/1200922#M878409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(FCRA_dummy = 1 and [Not_e-Oscar_Dum] = 1, Count(Pkey) + Count([ACDV Control Number]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({&amp;lt;FCRA_dummy = {1}, [Not_e-Oscar_Dum] = {1}&amp;gt;} Pkey) + Count({&amp;lt;FCRA_dummy = {1}, [Not_e-Oscar_Dum] = {1}&amp;gt;}[ACDV Control Number])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 16:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-with-multiple-criteria-using-AND-also-value-if-TRUE/m-p/1200922#M878409</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-17T16:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: If condition with multiple criteria using AND, also value if TRUE is aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-with-multiple-criteria-using-AND-also-value-if-TRUE/m-p/1200923#M878410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did indeed use Set Analysis to solve this issue. Thanks &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, 17 Oct 2016 17:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-with-multiple-criteria-using-AND-also-value-if-TRUE/m-p/1200923#M878410</guid>
      <dc:creator>lucasdavis500</dc:creator>
      <dc:date>2016-10-17T17:20:40Z</dc:date>
    </item>
  </channel>
</rss>

