<?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: Need help with IF Statements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-IF-Statements/m-p/1217027#M389665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Problem! Since there is an"AND-relationship" in your definition, it'll be enough to add "QueryEducation" and "Response3" into the set Analysis. The formula will then look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;QueryID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'RESP.1','RESP.2','RESP.3'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;QueryEducation&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'TEACH.1'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Response3&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'34'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Response1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Account_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) = 11 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;QueryID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'RESP.4'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;QueryEducation&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'TEACH.1'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Response3&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'34'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Response1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Account_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) = 4,'Yes','No Match')&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Dec 2016 06:09:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-12-22T06:09:37Z</dc:date>
    <item>
      <title>Need help with IF Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-IF-Statements/m-p/1217022#M389660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;I need help with 2 IF statements.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;"&gt;First One&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;"&gt;Here is the logic:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #000000; font-size: 10pt;"&gt;[QueryID1 = 'RESP.1' OR 'RESP.2' OR 'RESP.3' AND Response1=11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #000000; font-size: 10pt;"&gt;OR QueryID1='RESP.4' and Response1=4]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #000000; font-size: 10pt;"&gt;AND (QueryEducation='TEACH.1' and Response3=34)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #000000; font-size: 10pt;"&gt;Then “Yes” Otherwise “NO”&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Here is my statement that is not pulling the results correctly:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;((((&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;QueryID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='RESP.1'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;OR&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;QueryID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='RESP.2' &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;OR&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;QueryID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='RESP.3') &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Response1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=11)&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;QueryID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='RESP.4' &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Response1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=4)) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;QueryEducatio&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;n&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='TEACH.1' &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Response3&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=34), 'YES','NoMatch') &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #000000; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif; text-decoration: underline;"&gt;Second One&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #000000; font-size: 10pt;"&gt;No Education requirement&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #000000; font-size: 10pt;"&gt;[QueryID1 = 'RESP.1' OR 'RESP.2' OR 'RESP.3' AND Response1=11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #000000; font-size: 10pt;"&gt;OR QueryID1='RESP.4' and Response1=4]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; color: #000000; font-size: 10pt;"&gt;Then “Yes” Otherwise “NO”&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Here is my statement that is not pulling the results correctly:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;((((&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;QueryID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='RESP.1'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;OR&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;QueryID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='RESP.2'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;OR&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;QueryID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='RESP.3') &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Response1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=11) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;QueryID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='RESP.4' &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Response1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=4)), 'YES','NoMatch') &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Currently, when an account has &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;QueryID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='RESP.3' and &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Response1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=4, it still gets selected. However, it should only get selected if the Response was 11 for RESP.3.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&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>Wed, 21 Dec 2016 13:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-IF-Statements/m-p/1217022#M389660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-21T13:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with IF Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-IF-Statements/m-p/1217023#M389661</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;SPAN style="color: #000000; font-size: 13.3333px; text-decoration: underline;"&gt;First One&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(((Match(QueryID1, 'RESP.1', 'RESP.2', 'RESP.3') and Response1 = 11) or (QueryID1 = 'RESP.4' and Response1 = 4)) and (QueryEducation = 'TEACH.1' and&amp;nbsp; Response3 = 34), 'YES', 'NoMatch')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13.3333px; text-decoration: underline;"&gt;Second One&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If((Match(QueryID1, 'RESP.1', 'RESP.2', 'RESP.3') and Response1 = 11) or (QueryID1 = 'RESP.4' and Response1 = 4), 'YES', 'NoMatch')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 13:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-IF-Statements/m-p/1217023#M389661</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-21T13:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with IF Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-IF-Statements/m-p/1217024#M389662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is still having the same issue. &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Currently, when an account has &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;QueryID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='RESP.3' and &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Response1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=4, it still gets selected when I click "YES". However, it should only get selected if the Response was 11 for RESP.3. It's been driving me crazy since yesterday. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 13:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-IF-Statements/m-p/1217024#M389662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-21T13:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with IF Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-IF-Statements/m-p/1217025#M389663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;you need to add an aggr() function if you are using this expression as a dimension. It could look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;QueryID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'RESP.1','RESP.2','RESP.3'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Response1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Account_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) = 11 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;QueryID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'RESP.4'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Response1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Account_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) = 4,'YES','NO') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Basically, you need to teach QlikView according to which field it should Aggregate. In the sample application below I tried to create your Scenario. I hope it could help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147272_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/147273_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 14:57:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-IF-Statements/m-p/1217025#M389663</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-21T14:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with IF Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-IF-Statements/m-p/1217026#M389664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great. That worked for the second query. Do you mind to please help me with the first query as well where there is teaching education query included? Thanks so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 15:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-IF-Statements/m-p/1217026#M389664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-21T15:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with IF Statements</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-IF-Statements/m-p/1217027#M389665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Problem! Since there is an"AND-relationship" in your definition, it'll be enough to add "QueryEducation" and "Response3" into the set Analysis. The formula will then look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;QueryID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'RESP.1','RESP.2','RESP.3'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;QueryEducation&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'TEACH.1'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Response3&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'34'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Response1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Account_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) = 11 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;QueryID1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'RESP.4'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;QueryEducation&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'TEACH.1'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Response3&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;={'34'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Response1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Account_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) = 4,'Yes','No Match')&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 06:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-IF-Statements/m-p/1217027#M389665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-22T06:09:37Z</dc:date>
    </item>
  </channel>
</rss>

