<?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 Flag in If condition with 'Not Exists' functionality in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065458#M641495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to create a flag which distinguishes special and normal orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Order,&amp;nbsp; Product, INS&lt;/P&gt;&lt;P&gt;12345&amp;nbsp;&amp;nbsp; ABC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;12345&amp;nbsp;&amp;nbsp;&amp;nbsp; DEF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;12345&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GHI&lt;/P&gt;&lt;P&gt;12345&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JKL&lt;/P&gt;&lt;P&gt;67891&amp;nbsp;&amp;nbsp;&amp;nbsp; TYU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an order has atleast one INS specified then it by default becomes special type and give 'Y' .&lt;/P&gt;&lt;P&gt;Only if the order has no INS, then give 'N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O/P:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flag Y has only 12345&lt;/P&gt;&lt;P&gt;Flag N has only 67891&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is highly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2016 21:04:01 GMT</pubDate>
    <dc:creator>markgraham123</dc:creator>
    <dc:date>2016-03-01T21:04:01Z</dc:date>
    <item>
      <title>Flag in If condition with 'Not Exists' functionality</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065458#M641495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to create a flag which distinguishes special and normal orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Order,&amp;nbsp; Product, INS&lt;/P&gt;&lt;P&gt;12345&amp;nbsp;&amp;nbsp; ABC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;12345&amp;nbsp;&amp;nbsp;&amp;nbsp; DEF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;12345&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GHI&lt;/P&gt;&lt;P&gt;12345&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JKL&lt;/P&gt;&lt;P&gt;67891&amp;nbsp;&amp;nbsp;&amp;nbsp; TYU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an order has atleast one INS specified then it by default becomes special type and give 'Y' .&lt;/P&gt;&lt;P&gt;Only if the order has no INS, then give 'N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;O/P:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flag Y has only 12345&lt;/P&gt;&lt;P&gt;Flag N has only 67891&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is highly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 21:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065458#M641495</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2016-03-01T21:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in If condition with 'Not Exists' functionality</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065459#M641496</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;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Order,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Product,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Len(Trim(INS)) &amp;gt; 0, INS) as INS; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order,&amp;nbsp; Product, INS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;12345,&amp;nbsp; ABC,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;12345,&amp;nbsp; DEF,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;12345,&amp;nbsp; GHI,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;12345,&amp;nbsp; JKL,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;67891,&amp;nbsp; TYU,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join(Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DISTINCT Order,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'Y' as INS1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where INS = 'Y';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Order,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Len(Trim(INS1)) = 0, 'N', INS1) as INS,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Product &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 21:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065459#M641496</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-01T21:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in If condition with 'Not Exists' functionality</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065460#M641497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Table1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Order, Product, INS&lt;BR /&gt; 12345,ABC,Y&lt;BR /&gt; 12345,DEF,Y&lt;BR /&gt; 12345,GHI&lt;BR /&gt; 12345,JKL&lt;BR /&gt; 67891,TYU&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; Table2:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;LEFT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;JOIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Order&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Maxstring&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;INS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = 'Y', 'Y', 'N') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Table1&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GROUP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;BY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Order&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 21:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065460#M641497</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-01T21:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in If condition with 'Not Exists' functionality</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065461#M641498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Elegant &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 21:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065461#M641498</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-01T21:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in If condition with 'Not Exists' functionality</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065462#M641501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like this?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG __jive_id="116493" alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116493_1.png" style="height: auto; width: auto;" /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * Inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Order,&amp;nbsp; Product, INS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;12345,&amp;nbsp; ABC,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;12345,&amp;nbsp; DEF,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;12345,&amp;nbsp; GHI,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;12345,&amp;nbsp; JKL,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;67891,&amp;nbsp; TYU,&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;EM&gt;Left Join(Table)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load Order, if(match(MaxString(INS), 'Y'), 'Y', 'N') as Flag &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Table&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;group by Order;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;EDIT: ops, swuehl already answered&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 21:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065462#M641501</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-03-01T21:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in If condition with 'Not Exists' functionality</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065463#M641504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks bro. Sunny &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 21:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065463#M641504</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2016-03-01T21:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in If condition with 'Not Exists' functionality</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065464#M641506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks swueh1 &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 21:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065464#M641506</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2016-03-01T21:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in If condition with 'Not Exists' functionality</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065465#M641507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks maxgro &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 21:51:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-If-condition-with-Not-Exists-functionality/m-p/1065465#M641507</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2016-03-01T21:51:40Z</dc:date>
    </item>
  </channel>
</rss>

