<?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 condition is not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-condition-is-not-working/m-p/233958#M85459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data looks like below&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;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;t:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;* &lt;B&gt;INLINE&lt;/B&gt; [ &lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;VBELN,OBJNR,OBJNR1,Flag&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;'1000018402\000010',VB1153031859010200,000000000000000000,1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;'1450018402\000010',000000000000000000,VB1450018402000010,0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&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;&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;t1:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Load&lt;/P&gt;&lt;P&gt;VBELN,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Flag = '1',OBJNR,OBJNR1) &lt;B&gt;as&lt;/B&gt; Temp&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;resident&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;drop&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;table&lt;/B&gt; &lt;I&gt;t;&lt;/I&gt; t;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;I&gt;I am expecting to see only one value VB1153031859010200 in the Temp field.&lt;/I&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Advance Thanks for your help.&lt;/I&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Nov 2009 04:46:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-06T04:46:56Z</dc:date>
    <item>
      <title>if condition is not working</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-is-not-working/m-p/233958#M85459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data looks like below&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;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;t:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;* &lt;B&gt;INLINE&lt;/B&gt; [ &lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;VBELN,OBJNR,OBJNR1,Flag&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;'1000018402\000010',VB1153031859010200,000000000000000000,1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;'1450018402\000010',000000000000000000,VB1450018402000010,0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&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;&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;t1:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Load&lt;/P&gt;&lt;P&gt;VBELN,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Flag = '1',OBJNR,OBJNR1) &lt;B&gt;as&lt;/B&gt; Temp&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;resident&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;drop&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;table&lt;/B&gt; &lt;I&gt;t;&lt;/I&gt; t;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;I&gt;I am expecting to see only one value VB1153031859010200 in the Temp field.&lt;/I&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Advance Thanks for your help.&lt;/I&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 04:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-is-not-working/m-p/233958#M85459</guid>
      <dc:creator />
      <dc:date>2009-11-06T04:46:56Z</dc:date>
    </item>
    <item>
      <title>if condition is not working</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-is-not-working/m-p/233959#M85460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure why you are expecting only one value in Temp. You have 2 record in table "t" and for those 2 records the correct OBJNR will be loaded in "t1" table due to your IF condition.&lt;/P&gt;&lt;P&gt;If you have to see only one OBJNR, you can put a WHERE condition after "resident t" like:&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;VBELN,&lt;BR /&gt;if (Flag = '1',OBJNR, OBJNR1) as Temp&lt;BR /&gt;resident t&lt;BR /&gt;WHERE Flag = 1;&lt;/P&gt;&lt;P&gt;Or if you must load both the VBELNs but only one OBJNR where FLag is 1, you can do so by:&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;VBELN,&lt;BR /&gt;if (Flag = '1',OBJNR) as Temp&lt;BR /&gt;resident t;&lt;/P&gt;&lt;P&gt;But if I think what you are trying to achieve, having my SAP hat on, I think you would be better off using MAPPING and APPLYMAP, if I guess correctly what you are trying to do.&lt;/P&gt;&lt;P&gt;If nothing of above mentioned works for you, please provide details of what ultimately you are trying to achieve.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 07:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-is-not-working/m-p/233959#M85460</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-11-06T07:12:48Z</dc:date>
    </item>
    <item>
      <title>if condition is not working</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-is-not-working/m-p/233960#M85461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 21:40:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-is-not-working/m-p/233960#M85461</guid>
      <dc:creator />
      <dc:date>2009-11-06T21:40:49Z</dc:date>
    </item>
    <item>
      <title>if condition is not working</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-is-not-working/m-p/233961#M85462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you pleas validate which method worked for you? Just for my curiosity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 22:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-is-not-working/m-p/233961#M85462</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-11-06T22:35:13Z</dc:date>
    </item>
  </channel>
</rss>

