<?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 IF In List Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-In-List-Statement/m-p/191444#M53522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to add a flag and set this to 1 if the name is equal to Trev or Ross, I have tried the following script but QlikVIew does not like it?&lt;/P&gt;&lt;P&gt;If(Name in ('Trev','Ross'),1,0) as Flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jan 2011 16:41:30 GMT</pubDate>
    <dc:creator>ivandrago</dc:creator>
    <dc:date>2011-01-28T16:41:30Z</dc:date>
    <item>
      <title>IF In List Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-In-List-Statement/m-p/191444#M53522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to add a flag and set this to 1 if the name is equal to Trev or Ross, I have tried the following script but QlikVIew does not like it?&lt;/P&gt;&lt;P&gt;If(Name in ('Trev','Ross'),1,0) as Flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 16:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-In-List-Statement/m-p/191444#M53522</guid>
      <dc:creator>ivandrago</dc:creator>
      <dc:date>2011-01-28T16:41:30Z</dc:date>
    </item>
    <item>
      <title>IF In List Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-In-List-Statement/m-p/191445#M53523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, use match instead&lt;/P&gt;&lt;P&gt;If(match(Name,'Trev','Ross'),1,0) as Flag&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 16:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-In-List-Statement/m-p/191445#M53523</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-01-28T16:43:53Z</dc:date>
    </item>
    <item>
      <title>IF In List Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-In-List-Statement/m-p/191446#M53524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice Work Hector&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 16:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-In-List-Statement/m-p/191446#M53524</guid>
      <dc:creator>ivandrago</dc:creator>
      <dc:date>2011-01-28T16:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: IF In List Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-In-List-Statement/m-p/1951460#M1219753</link>
      <description>&lt;P&gt;how to write multiple names in "Name"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 16:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-In-List-Statement/m-p/1951460#M1219753</guid>
      <dc:creator>Shax</dc:creator>
      <dc:date>2022-07-04T16:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: IF In List Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-In-List-Statement/m-p/1951575#M1219756</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/187053"&gt;@Shax&lt;/a&gt;&amp;nbsp;how many names are we talking about? If it is way too high, we can get the desired output using Mapping Load and Applymap concept. Something like below:&lt;/P&gt;
&lt;P&gt;Mappingtable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mapping load&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Name&lt;/P&gt;
&lt;P&gt;Value&lt;/P&gt;
&lt;P&gt;From Table_Name:&lt;/P&gt;
&lt;P&gt;MainTable:&lt;/P&gt;
&lt;P&gt;Load Name,&lt;/P&gt;
&lt;P&gt;Applymap('Mappingtable',Name,'Unknown') as Flag&lt;/P&gt;
&lt;P&gt;From Table_Name;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 06:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-In-List-Statement/m-p/1951575#M1219756</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2022-07-05T06:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: IF In List Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-In-List-Statement/m-p/1951577#M1219757</link>
      <description>&lt;P&gt;You may try:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If(&lt;STRONG&gt;wild&lt;/STRONG&gt;match(Name1 &amp;amp; '|' &amp;amp; Name2,'&lt;STRONG&gt;*&lt;/STRONG&gt;Trev&lt;STRONG&gt;*&lt;/STRONG&gt;','&lt;STRONG&gt;*&lt;/STRONG&gt;Ross&lt;STRONG&gt;*&lt;/STRONG&gt;'),1,0) as Flag&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But you will need to specify all relevant name-fields directly and also using wildmatch() by applying wildcards to your search-strings which may result in some overlapping.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alternatives could be to nest multiple match() logic or to transform your crosstable-structures with a crosstable-statement into a stream-data-structure - means it remains only one name-field and the multiple values are distributed to records.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 06:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-In-List-Statement/m-p/1951577#M1219757</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-07-05T06:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: IF In List Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-In-List-Statement/m-p/2006760#M1221561</link>
      <description>&lt;P&gt;What about multiple conditions in the same measure/column?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like this;&lt;/P&gt;
&lt;P&gt;If(match(nativeCode, 1, 2, 3,&amp;nbsp;),'Minor severity')&lt;/P&gt;
&lt;P&gt;If(match(nativeCode, 4, 5, 6,&amp;nbsp;),'Medium severity')&lt;/P&gt;
&lt;P&gt;If(match(nativeCode, 7, 8, 9,&amp;nbsp;),'Critical')&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2022 20:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-In-List-Statement/m-p/2006760#M1221561</guid>
      <dc:creator>Nakosan</dc:creator>
      <dc:date>2022-11-20T20:23:50Z</dc:date>
    </item>
  </channel>
</rss>

