<?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: How to use OR in if statement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-use-OR-in-if-statement/m-p/1986813#M81545</link>
    <description>&lt;P&gt;Tried this but not giving the expected result.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2022 05:19:29 GMT</pubDate>
    <dc:creator>vikasshana</dc:creator>
    <dc:date>2022-09-29T05:19:29Z</dc:date>
    <item>
      <title>How to use OR in if statement</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-OR-in-if-statement/m-p/1986590#M81521</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I've below data.&lt;/P&gt;
&lt;TABLE style="width: 75%;" border="1" width="75%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;ID&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;New&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Value&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;abc&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;123&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;abc&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;456&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;abc&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;789&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="25px"&gt;2&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;efg&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;963&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using the below IF statement to show the three values if I select '&lt;STRONG&gt;abc'&amp;nbsp;&lt;/STRONG&gt;but it is showing only value '&lt;STRONG&gt;123&lt;/STRONG&gt;'&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(match(ID,'1') and match(New'abc'),'123',if(match(ID,'1') and match(New,'abc'),'456' ,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if(match(ID,'1') and match(New'abc'),'789')))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I'm looking for an IF Statement to show all the three values if I select '&lt;STRONG&gt;abc&lt;/STRONG&gt;'.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vikas&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 14:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-OR-in-if-statement/m-p/1986590#M81521</guid>
      <dc:creator>vikasshana</dc:creator>
      <dc:date>2022-09-28T14:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use OR in if statement</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-OR-in-if-statement/m-p/1986680#M81535</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;IF(Match(ID,'1') and WildMatch(New,'*abc*'),Value,Null()) as [abc Values]&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 17:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-OR-in-if-statement/m-p/1986680#M81535</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-09-28T17:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use OR in if statement</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-OR-in-if-statement/m-p/1986703#M81536</link>
      <description>&lt;P&gt;Where are you applying this expression and what is your expected result regarding those three values given that a single expression only returns a single value per evaluation?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 18:49:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-OR-in-if-statement/m-p/1986703#M81536</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-09-28T18:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to use OR in if statement</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-OR-in-if-statement/m-p/1986812#M81544</link>
      <description>&lt;P&gt;I'm trying to apply this in the load script, my expected result is if user select&amp;nbsp;&lt;SPAN&gt;abc the result should be three values associated to abc (123, 456, 789)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 05:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-OR-in-if-statement/m-p/1986812#M81544</guid>
      <dc:creator>vikasshana</dc:creator>
      <dc:date>2022-09-29T05:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use OR in if statement</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-OR-in-if-statement/m-p/1986813#M81545</link>
      <description>&lt;P&gt;Tried this but not giving the expected result.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 05:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-OR-in-if-statement/m-p/1986813#M81545</guid>
      <dc:creator>vikasshana</dc:creator>
      <dc:date>2022-09-29T05:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use OR in if statement</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-use-OR-in-if-statement/m-p/1986835#M81550</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/3349"&gt;@vikasshana&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can assure you that the syntax works perfectly. And because it's conditioned selecting the value abc won't alter the output values.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LOAD *,IF(Match(ID,'1') AND WildMatch(New,'*abc*'),Value,Null()) as [abc Values];

LOAD * Inline[
ID,New,Value
1,abc,123
1,abc,456
1,abc,789
2,efg,963
];&lt;/LI-CODE&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;O/P&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrunPierre_0-1664432883998.png" style="width: 597px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/90145iD7F33BFA18726787/image-dimensions/597x156?v=v2" width="597" height="156" role="button" title="BrunPierre_0-1664432883998.png" alt="BrunPierre_0-1664432883998.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 06:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-use-OR-in-if-statement/m-p/1986835#M81550</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-09-29T06:39:09Z</dc:date>
    </item>
  </channel>
</rss>

