<?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: General if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399563#M614668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Name cannot be A &lt;STRONG&gt;and&lt;/STRONG&gt; B &lt;STRONG&gt;and&lt;/STRONG&gt; D ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it could be A or B fr example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Aug 2017 15:48:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-14T15:48:45Z</dc:date>
    <item>
      <title>General if statement</title>
      <link>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399561#M614666</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'm trying to create a new fileds using and in if statement. But i'm not getting any result.&lt;/P&gt;&lt;P&gt;But a simple if statement is not working. I know there should be something wrong in my syntax.&lt;/P&gt;&lt;P&gt;Can someone please help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;ID, Name&lt;/P&gt;&lt;P&gt;1,A&lt;/P&gt;&lt;P&gt;1,B&lt;/P&gt;&lt;P&gt;1,C&lt;/P&gt;&lt;P&gt;1,D&lt;/P&gt;&lt;P&gt;1,E&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;If(Name='A' and Name='B' and Name='D' and Name='D' and Name='E' , 'special') as test&lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Table1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 15:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399561#M614666</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2017-08-14T15:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: General if statement</title>
      <link>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399562#M614667</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(Name='A' or Name='B' or Name='D' or Name='D' or Name='E' , '5', Name) as test&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 15:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399562#M614667</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-14T15:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: General if statement</title>
      <link>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399563#M614668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Name cannot be A &lt;STRONG&gt;and&lt;/STRONG&gt; B &lt;STRONG&gt;and&lt;/STRONG&gt; D ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it could be A or B fr example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 15:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399563#M614668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-14T15:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: General if statement</title>
      <link>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399564#M614669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Anil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID can have multiple names.&lt;/P&gt;&lt;P&gt;Depending on what names the ID has i havre to create a category field.&lt;/P&gt;&lt;P&gt;Above is one of the example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 15:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399564#M614669</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2017-08-14T15:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: General if statement</title>
      <link>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399565#M614670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ID can have multiple names.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Depending on what names the ID has i havre to create a category field.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Above is one of the example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 15:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399565#M614670</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2017-08-14T15:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: General if statement</title>
      <link>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399566#M614671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then, you must explain real data which demonstrates the issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 15:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399566#M614671</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-14T15:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: General if statement</title>
      <link>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399567#M614672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;??? could you elaborate it a bit more please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 15:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399567#M614672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-14T15:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: General if statement</title>
      <link>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399568#M614673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be?&lt;/P&gt;&lt;P&gt;If(Match(Name, 'A','B','C','D','E'), 'Special') as test&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 16:05:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399568#M614673</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-08-14T16:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: General if statement</title>
      <link>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399569#M614674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;/option 1&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Table1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; *, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;WildMatch&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Name&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'A','B','D','E'),'SPE','OTHER') &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;newFieldTest&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; ID, Name&lt;BR /&gt; 1,A&lt;BR /&gt; 1,B&lt;BR /&gt; 1,C&lt;BR /&gt; 1,D&lt;BR /&gt; 1,E&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;//option 2&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;CHRS:&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;MAPPING&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;INLINE&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; Name, Test&lt;BR /&gt; A, SPE&lt;BR /&gt; B, SPE&lt;BR /&gt; C, OTHER&lt;BR /&gt; D, SPE&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Table1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; *, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('CHRS',&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Name&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'OTHER') &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;newFieldTest&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;LOAD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[&lt;BR /&gt; ID, Name&lt;BR /&gt; 1,A&lt;BR /&gt; 1,B&lt;BR /&gt; 1,C&lt;BR /&gt; 1,D&lt;BR /&gt; 1,E&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 17:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399569#M614674</guid>
      <dc:creator>el_aprendiz111</dc:creator>
      <dc:date>2017-08-14T17:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: General if statement</title>
      <link>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399570#M614675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark, i dont know if i right understant, but Id could have multiple values, but only one per line.&lt;/P&gt;&lt;P&gt;Name could be A or B or C or D or E, but not all at the same time.&lt;/P&gt;&lt;P&gt;So change your AND to OR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 17:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399570#M614675</guid>
      <dc:creator>eduardo_dimperio</dc:creator>
      <dc:date>2017-08-14T17:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: General if statement</title>
      <link>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399571#M614676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you're looking for a category based on the actual name sequence, so one solution to this problem might be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_271160_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/173420_QlikCommunity_Thread_271160_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15027460221111741 jive_text_macro" jivemacro_uid="_15027460221111741"&gt;
&lt;P&gt;mapCategory:&lt;/P&gt;
&lt;P&gt;Mapping LOAD * Inline [&lt;/P&gt;
&lt;P&gt;NameSequence, Category&lt;/P&gt;
&lt;P&gt;ABCDE, normal&lt;/P&gt;
&lt;P&gt;ABDDE, special&lt;/P&gt;
&lt;P&gt;EDCBA, reverse&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Table1:&lt;/P&gt;
&lt;P&gt;LOAD * Inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;ID, Name&lt;/P&gt;
&lt;P&gt;1,A&lt;/P&gt;
&lt;P&gt;1,B&lt;/P&gt;
&lt;P&gt;1,C&lt;/P&gt;
&lt;P&gt;1,D&lt;/P&gt;
&lt;P&gt;1,E&lt;/P&gt;
&lt;P&gt;2,A&lt;/P&gt;
&lt;P&gt;2,B&lt;/P&gt;
&lt;P&gt;2,D&lt;/P&gt;
&lt;P&gt;2,D&lt;/P&gt;
&lt;P&gt;2,E&lt;/P&gt;
&lt;P&gt;3,E&lt;/P&gt;
&lt;P&gt;3,D&lt;/P&gt;
&lt;P&gt;3,C&lt;/P&gt;
&lt;P&gt;3,B&lt;/P&gt;
&lt;P&gt;3,A&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Join&lt;/P&gt;
&lt;P&gt;LOAD ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('mapCategory',Concat(Name,'',RecNo())) as Category&lt;/P&gt;
&lt;P&gt;Resident Table1&lt;/P&gt;
&lt;P&gt;Group By ID;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 21:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-if-statement/m-p/1399571#M614676</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2017-08-14T21:29:53Z</dc:date>
    </item>
  </channel>
</rss>

