<?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 condition compare two IDs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-condition-compare-two-IDs/m-p/1680699#M726661</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your load inline is different from the screenshot for items Red and Green. Anyway.&lt;/P&gt;&lt;P&gt;Not sure if this is what you want, basically created an if condition that if ID=Notfound, it will still check the ID2. If the ID2 is empty then it will take ID1 .&lt;/P&gt;&lt;P&gt;temp:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Name, ID1, ID2&lt;BR /&gt;Red, Notfound,&lt;BR /&gt;Pink, Notfound,&lt;BR /&gt;Blue, 45654565,&lt;BR /&gt;Red, Notfound, 520022386&lt;BR /&gt;Green, Notfound, 520022386&lt;BR /&gt;Red, 45456456,&lt;BR /&gt;Red, 87979956, 78945265&lt;BR /&gt;Green, 84516566, 22165466&lt;BR /&gt;Pink, 46545489,&lt;BR /&gt;Blue, 54848963,&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;LOAD Name, if(ID1 = 'Notfound', if(len(ID2)=0, ID1, ID2), ID1)&lt;BR /&gt;resident temp;&lt;/P&gt;&lt;P&gt;drop table temp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 01 Mar 2020 23:38:44 GMT</pubDate>
    <dc:creator>_ylc</dc:creator>
    <dc:date>2020-03-01T23:38:44Z</dc:date>
    <item>
      <title>if condition compare two IDs</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-compare-two-IDs/m-p/1680688#M726660</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NewField&lt;/STRONG&gt; - If (ID1 = Notfound, check ID2 else keep ID1,) please refer screenshot for better understanding.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29379i41C6B1B0D2A646DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;Name, ID1, ID2&lt;BR /&gt;Red, Notfound,&lt;BR /&gt;Pink, Notfound,&lt;BR /&gt;Blue, 45654565,&lt;BR /&gt;Red, Notfound, 520022386&lt;BR /&gt;Green, Notfound, 520022386&lt;BR /&gt;Red, 45456456,&lt;BR /&gt;Red, 78945265, 78945265&lt;BR /&gt;Green, 22165466, 22165466&lt;BR /&gt;Pink, 46545489,&lt;BR /&gt;Blue, 54848963,&lt;BR /&gt;];&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-compare-two-IDs/m-p/1680688#M726660</guid>
      <dc:creator>karan_kn</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: if condition compare two IDs</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-compare-two-IDs/m-p/1680699#M726661</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your load inline is different from the screenshot for items Red and Green. Anyway.&lt;/P&gt;&lt;P&gt;Not sure if this is what you want, basically created an if condition that if ID=Notfound, it will still check the ID2. If the ID2 is empty then it will take ID1 .&lt;/P&gt;&lt;P&gt;temp:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Name, ID1, ID2&lt;BR /&gt;Red, Notfound,&lt;BR /&gt;Pink, Notfound,&lt;BR /&gt;Blue, 45654565,&lt;BR /&gt;Red, Notfound, 520022386&lt;BR /&gt;Green, Notfound, 520022386&lt;BR /&gt;Red, 45456456,&lt;BR /&gt;Red, 87979956, 78945265&lt;BR /&gt;Green, 84516566, 22165466&lt;BR /&gt;Pink, 46545489,&lt;BR /&gt;Blue, 54848963,&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;LOAD Name, if(ID1 = 'Notfound', if(len(ID2)=0, ID1, ID2), ID1)&lt;BR /&gt;resident temp;&lt;/P&gt;&lt;P&gt;drop table temp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Mar 2020 23:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-compare-two-IDs/m-p/1680699#M726661</guid>
      <dc:creator>_ylc</dc:creator>
      <dc:date>2020-03-01T23:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: if condition compare two IDs</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-compare-two-IDs/m-p/1696796#M726662</link>
      <description>&lt;P&gt;Tab :&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Name, ID1, ID2&lt;BR /&gt;Red, Notfound,&lt;BR /&gt;Pink, Notfound,&lt;BR /&gt;Blue, 45654565,&lt;BR /&gt;Red, Notfound, 520022386&lt;BR /&gt;Green, Notfound, 520022386&lt;BR /&gt;Red, 45456456,&lt;BR /&gt;Red, 78945265, 78945265&lt;BR /&gt;Green, 22165466, 22165466&lt;BR /&gt;Pink, 46545489,&lt;BR /&gt;Blue, 54848963,&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Tab1:&lt;BR /&gt;Load&lt;BR /&gt;*,&lt;BR /&gt;if(isnum(ID1),ID1,if(isnum(ID2),ID2,ID1)) as ID3&lt;BR /&gt;Resident Tab;&lt;/P&gt;&lt;P&gt;Drop table Tab;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 12:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-compare-two-IDs/m-p/1696796#M726662</guid>
      <dc:creator>rajaxavier</dc:creator>
      <dc:date>2020-04-26T12:23:56Z</dc:date>
    </item>
  </channel>
</rss>

