<?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 Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/638472#M234025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks HIC but if ID is as string then it will use like 'ID' or if it is field reference then it will use like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If ID is field reference from table then&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IF(Match(Fieldname,'1111','1112','1113','11233'),&lt;STRONG&gt;"ID"&lt;/STRONG&gt;) AS CODENAME&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IF(Match(Fieldname,'1111','1112','1113','11233'),&lt;STRONG&gt;[ID]&lt;/STRONG&gt;) AS CODENAME&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2.If ID is string then it will use like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IF(Match(Fieldname,'1111','1112','1113','11233'),'ID') AS CODENAME&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 May 2014 15:58:03 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2014-05-19T15:58:03Z</dc:date>
    <item>
      <title>IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/638469#M234022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Need help transferring this logic into an IF statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF Fieldname&amp;nbsp; = '1111' or '1112' or '1113' or '11233','ID' AS CODENAME&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 15:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/638469#M234022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-19T15:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/638470#M234023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;IF(Match(Fieldname,'1111','1112','1113','11233'),'ID') AS CODENAME&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 15:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/638470#M234023</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-05-19T15:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/638471#M234024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Small correction: You probably want ID to be a field reference. Then you cannot use single quotes. You need double quotes, or square brackets:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IF(Match(Fieldname,'1111','1112','1113','11233'),"ID") AS CODENAME&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 15:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/638471#M234024</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-05-19T15:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/638472#M234025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks HIC but if ID is as string then it will use like 'ID' or if it is field reference then it will use like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If ID is field reference from table then&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IF(Match(Fieldname,'1111','1112','1113','11233'),&lt;STRONG&gt;"ID"&lt;/STRONG&gt;) AS CODENAME&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IF(Match(Fieldname,'1111','1112','1113','11233'),&lt;STRONG&gt;[ID]&lt;/STRONG&gt;) AS CODENAME&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2.If ID is string then it will use like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IF(Match(Fieldname,'1111','1112','1113','11233'),'ID') AS CODENAME&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 15:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/638472#M234025</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-05-19T15:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/638473#M234026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your r near to the code wht u want some correction check this one&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;LOAD *,if(ID='5'or ID='4',ID) as ID1;&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;ID,Amount&lt;/P&gt;&lt;P&gt;1,10&lt;/P&gt;&lt;P&gt;2,20&lt;/P&gt;&lt;P&gt;3,30&lt;/P&gt;&lt;P&gt;4,40&lt;/P&gt;&lt;P&gt;5,50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 16:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/638473#M234026</guid>
      <dc:creator>nizamsha</dc:creator>
      <dc:date>2014-05-19T16:16:55Z</dc:date>
    </item>
  </channel>
</rss>

