<?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 And Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-And-Statement/m-p/1375965#M420049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be matches with your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(field1 = 'yes' and field2 = 'yes', 'Match',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(field1 = 'yes' and field2 = 'no','Match1',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(field1 = 'no' and field2 = 'yes','Match2'))) as logicField&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Sep 2017 17:12:49 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2017-09-19T17:12:49Z</dc:date>
    <item>
      <title>If And Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-And-Statement/m-p/1375962#M420046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am struggling in writing an if and statent in qlikview. I am used to doing it in sql but it's different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to say &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If field1 = 'yes' and field2 = 'yes' then 'match' or&lt;/P&gt;&lt;P&gt;If field1 = 'yes and field2 = 'no' then 'match1' or&lt;/P&gt;&lt;P&gt;If field1 ='no and field2 = 'yes' then 'match2'&lt;/P&gt;&lt;P&gt;Else 'no match'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible in qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using match and wild match but don't seem to get the and and or working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 16:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-And-Statement/m-p/1375962#M420046</guid>
      <dc:creator />
      <dc:date>2017-09-19T16:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: If And Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-And-Statement/m-p/1375963#M420047</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;If(field1 = 'yes',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(field2 = 'yes', 'match', 'match1),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(field2 = 'yes', 'match2', 'no match')) as MatchFlag&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 16:53:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-And-Statement/m-p/1375963#M420047</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-19T16:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: If And Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-And-Statement/m-p/1375964#M420048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With in Qlik we can achieve anything.. Perhaps this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;If(field1 = 'yes', &lt;/STRONG&gt;&lt;STRONG&gt;If(field2 = 'yes', 'match', 'match1), &lt;/STRONG&gt;&lt;STRONG&gt;If(field2 = 'yes', 'match2', 'no match'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;STRONG&gt;OR&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;If(field1 = 'yes' and field2 = 'yes', 'match', If(field1 = 'yes' and field2 = 'no', 'match1', If(field1 ='no' and field2 = 'yes', 'match2', 'no match')))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 16:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-And-Statement/m-p/1375964#M420048</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-19T16:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: If And Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-And-Statement/m-p/1375965#M420049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be matches with your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(field1 = 'yes' and field2 = 'yes', 'Match',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(field1 = 'yes' and field2 = 'no','Match1',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(field1 = 'no' and field2 = 'yes','Match2'))) as logicField&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 17:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-And-Statement/m-p/1375965#M420049</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-09-19T17:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: If And Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-And-Statement/m-p/1375966#M420050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sarah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If condition in qlik is similar to case condition in SQL. Just compare the below syntax with case condition. The code is for the script level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;case when field1 = 'yes' and field2 = 'yes' then 'match' &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; when field1 = 'yes and field2 = 'no' then 'match1' &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;when field1 ='no and field2 = 'yes' then 'match2'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Else 'no match' end in SQL&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In Qlik instead of when we will keep ","(commas)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If (field1 = 'yes' and field2 = 'yes' , 'match' ,&amp;nbsp;&amp;nbsp;&amp;nbsp; ------- case when field1 = 'yes and field2 = 'yes' then 'match' when&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If( field1 = 'yes and field2 = 'no' , 'match1' ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----------&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field1= 'yes' and field2 ='no' then 'match1' when&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If (field1 ='no and field2 = 'yes' ,'match2',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --------------&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;field1 ='no and field2 = 'yes'&amp;nbsp; then 'match2' else &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'no match' )))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'no match'&amp;nbsp; end &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Make sure all the open braces are closed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 17:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-And-Statement/m-p/1375966#M420050</guid>
      <dc:creator>svinnakota</dc:creator>
      <dc:date>2017-09-19T17:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: If And Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-And-Statement/m-p/1375967#M420051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sarah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this on the loading script or else UI part on the Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;On Load Script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(field1 = 'yes' and field2 = 'yes', 'Match',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(field1 = 'yes' and field2 = 'no',&amp;nbsp; 'Match1',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(field1 = 'no'&amp;nbsp; and field2 = 'yes', 'Match2','no match'))) as logicField&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From Source;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Ui part you can use but perhaps you can select suppress when values is null() but care ully you have to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;On UI Part&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;if(field1 = 'yes' and field2 = 'yes', 'Match',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;if(field1 = 'yes' and field2 = 'no',&amp;nbsp; 'Match1',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;if(field1 = 'no'&amp;nbsp; and field2 = 'yes', 'Match2','no match')))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:- If result not matched you can go for the multiple Preceding load or Concatenation between loads or tables&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Find the attached Manual from Qlik Help&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ScriptControlStatements/If.htm" title="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ScriptControlStatements/If.htm"&gt;https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ScriptControlStatements/If.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 17:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-And-Statement/m-p/1375967#M420051</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-09-19T17:31:23Z</dc:date>
    </item>
  </channel>
</rss>

