<?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/535581#M200131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will I get all id's? If I need only the Id's corresponding to &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red;"&gt;'24567'&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;'24568' then what is the case?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jul 2013 10:55:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-03T10:55:42Z</dc:date>
    <item>
      <title>IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/535579#M200129</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 have below query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; color: blue; font-size: 9.5pt;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: 9.5pt;"&gt; &lt;SPAN style="color: teal;"&gt;a&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;id&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;a&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;b&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;id&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;b&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 9.5pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; color: blue; font-size: 9.5pt;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: 9.5pt;"&gt;&amp;nbsp; databasenew.Table1&lt;SPAN style="color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;nolock&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;a&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; color: gray; font-size: 9.5pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: 9.5pt;"&gt; &lt;SPAN style="color: gray;"&gt;join&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: teal;"&gt;databaseold&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;.Table1(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;nolock&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;b&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 9.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;on&lt;/SPAN&gt; &lt;SPAN style="color: teal;"&gt;a&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt; id&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;b&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt; id&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; color: blue; font-size: 9.5pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: 9.5pt;"&gt;&amp;nbsp; &lt;SPAN style="color: teal;"&gt;a&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;.name&lt;/SPAN&gt; &lt;SPAN style="color: gray;"&gt;in&lt;/SPAN&gt; &lt;SPAN style="color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;'24567'&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;'24568'&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; color: blue; font-size: 9.5pt;"&gt;order&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: 9.5pt;"&gt; &lt;SPAN style="color: blue;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="color: teal;"&gt;a&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: teal;"&gt;id&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to write IF statement to generate the id's corresponding to those names. Can anyone help in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 10:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/535579#M200129</guid>
      <dc:creator />
      <dc:date>2013-07-03T10:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/535580#M200130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;for generate id corresponding to name then use &lt;STRONG&gt;recno() or rowno()&lt;/STRONG&gt; like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(name&amp;lt;&amp;gt;' ',rowno()) as id&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 10:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/535580#M200130</guid>
      <dc:creator />
      <dc:date>2013-07-03T10:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/535581#M200131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will I get all id's? If I need only the Id's corresponding to &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red;"&gt;'24567'&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;'24568' then what is the case?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 10:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/535581#M200131</guid>
      <dc:creator />
      <dc:date>2013-07-03T10:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/535582#M200132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(match(name,&lt;SPAN style="color: red;"&gt;'24567'&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;'24568'), rowno()&lt;/SPAN&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 10:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/535582#M200132</guid>
      <dc:creator />
      <dc:date>2013-07-03T10:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/535583#M200133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;if(name=pick(match(name,&lt;SPAN style="color: red;"&gt;'24567'&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;'24568'&lt;/SPAN&gt;),&lt;SPAN style="color: red;"&gt;'24567'&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;'24568'&lt;/SPAN&gt;),&lt;SPAN style="color: #ff0000;"&gt;rowno&lt;/SPAN&gt;()) as id&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(name=pick(match(name,&lt;SPAN style="color: red;"&gt;'24567'&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;'24568'&lt;/SPAN&gt;),&lt;SPAN style="color: red;"&gt;'24567'&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;'24568'&lt;/SPAN&gt;),&lt;SPAN style="color: #ff0000;"&gt;recno&lt;/SPAN&gt;()) as id&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 11:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/535583#M200133</guid>
      <dc:creator />
      <dc:date>2013-07-03T11:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/535584#M200134</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;Thanks, it's working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I change this IF statement as I need to get integer for eg: 23145 instead of 'Others'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;trim&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;))=0 &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;OR&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;ISNULL&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;)=-1,'Others',&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;name_New&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Please help&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 11:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/535584#M200134</guid>
      <dc:creator />
      <dc:date>2013-07-03T11:07:02Z</dc:date>
    </item>
  </channel>
</rss>

