<?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: How to use Exist() for generating Flag value 0/1 in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-Exist-for-generating-Flag-value-0-1-in-script/m-p/445829#M701970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In its one argument syntax, exists takes just a field name, no expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you need to use&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;([CostType]) and &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Amount &amp;gt; 0 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;And &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Cost Type] like &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;'Actual*', 1, 0) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;ActFlg&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2012 16:22:30 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-09-26T16:22:30Z</dc:date>
    <item>
      <title>How to use Exist() for generating Flag value 0/1 in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Exist-for-generating-Flag-value-0-1-in-script/m-p/445826#M701967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some data that looks like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Desired output&lt;/STRONG&gt;;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 290px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl118" height="17" width="132"&gt;Cost type&lt;/TD&gt;&lt;TD class="xl118" width="79"&gt;Amount&lt;/TD&gt;&lt;TD class="xl118" width="79"&gt;&lt;STRONG&gt;ActFlg&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Actual Cost Labor&lt;/TD&gt;&lt;TD class="xl117" style="text-align: right;"&gt; 175,054.00 &lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Actual Cost Travel&lt;/TD&gt;&lt;TD class="xl117" style="text-align: right;"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Projected Cost Labor&lt;/TD&gt;&lt;TD class="xl117"&gt;&amp;nbsp;&amp;nbsp; 12,144.00 &lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Projected Cost Travel&lt;/TD&gt;&lt;TD class="xl117" style="text-align: right;"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Actual Cost Travel&lt;/TD&gt;&lt;TD class="xl117" style="text-align: right;"&gt; 100,000.00 &lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Obligated Cost Travel&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Actual Cost Labor&lt;/TD&gt;&lt;TD class="xl117" style="text-align: right;"&gt;&amp;nbsp;&amp;nbsp; 30,058.27 &lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Projected Cost Labor&lt;/TD&gt;&lt;TD class="xl117" style="text-align: right;"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to generate a column like 'ActFlg' possibly using &lt;STRONG&gt;Exists &lt;/STRONG&gt;since I'm evaluating the current row vs. previous.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Here is what I have but its only generating 0 values.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Cost Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;='Actual*'), 1, 0) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt; &lt;STRONG style="color: maroon; font-size: 9pt; font-family: 'Courier New';"&gt;ActFlg&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Please help!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 16:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Exist-for-generating-Flag-value-0-1-in-script/m-p/445826#M701967</guid>
      <dc:creator />
      <dc:date>2012-09-26T16:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Exist() for generating Flag value 0/1 in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Exist-for-generating-Flag-value-0-1-in-script/m-p/445827#M701968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't understood why you flag the very first record line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I assume you want something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Cost Type]) and [Cost Type] like &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;'Actual*', 1, 0) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt; &lt;STRONG style="color: maroon; font-size: 9pt; font-family: 'Courier New';"&gt;ActFlg&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 16:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Exist-for-generating-Flag-value-0-1-in-script/m-p/445827#M701968</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-09-26T16:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Exist() for generating Flag value 0/1 in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Exist-for-generating-Flag-value-0-1-in-script/m-p/445828#M701969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to add the other condition AND Amount &amp;gt; 0&amp;nbsp; in my posting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Amount &amp;gt; 0 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;And &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Cost Type] like &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;'Actual*'), 1, 0) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;ActFlg&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;I will try this Thanks!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 16:17:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Exist-for-generating-Flag-value-0-1-in-script/m-p/445828#M701969</guid>
      <dc:creator />
      <dc:date>2012-09-26T16:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Exist() for generating Flag value 0/1 in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Exist-for-generating-Flag-value-0-1-in-script/m-p/445829#M701970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In its one argument syntax, exists takes just a field name, no expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you need to use&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;([CostType]) and &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Amount &amp;gt; 0 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;And &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Cost Type] like &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;'Actual*', 1, 0) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;ActFlg&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 16:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Exist-for-generating-Flag-value-0-1-in-script/m-p/445829#M701970</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-09-26T16:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Exist() for generating Flag value 0/1 in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Exist-for-generating-Flag-value-0-1-in-script/m-p/445830#M701971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this but only Zeros...the&amp;nbsp; operator Like is missing but &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Exists &lt;/SPAN&gt;won't allow it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &amp;gt; 0 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Cost Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,'Actual*'), 1, 0) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ActFlg&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;output should be:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 354px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl121" height="17" width="132"&gt;Costype&lt;/TD&gt;&lt;TD class="xl121" width="79"&gt;Amount&lt;/TD&gt;&lt;TD class="xl121" width="79"&gt;ActFlg&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Actual Cost Labor&lt;/TD&gt;&lt;TD class="xl120"&gt; 175,054.00 &lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Actual Cost Travel&lt;/TD&gt;&lt;TD class="xl120"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl119"&gt;0&lt;/TD&gt;&lt;TD class="xl121"&gt;Not &amp;gt; 0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Projected Cost Labor&lt;/TD&gt;&lt;TD class="xl120"&gt;&amp;nbsp;&amp;nbsp; 12,144.00 &lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Projected Cost Travel&lt;/TD&gt;&lt;TD class="xl120"&gt;&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Actual Cost Travel&lt;/TD&gt;&lt;TD class="xl120"&gt; 100,000.00 &lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Obligated Cost Travel&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Actual Cost Labor&lt;/TD&gt;&lt;TD class="xl120"&gt;&amp;nbsp;&amp;nbsp; 30,058.27 &lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Projected Cost Labor&lt;/TD&gt;&lt;TD class="xl120"&gt;&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 16:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Exist-for-generating-Flag-value-0-1-in-script/m-p/445830#M701971</guid>
      <dc:creator />
      <dc:date>2012-09-26T16:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Exist() for generating Flag value 0/1 in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Exist-for-generating-Flag-value-0-1-in-script/m-p/445831#M701972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up using this instead, but the &lt;STRONG&gt;&lt;EM&gt;Like &lt;/EM&gt;&lt;/STRONG&gt;was the missing link Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[Cost Type]&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;like&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; 'Actual*' &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &amp;gt; 0, 1, 0) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ActFlg&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 16:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Exist-for-generating-Flag-value-0-1-in-script/m-p/445831#M701972</guid>
      <dc:creator />
      <dc:date>2012-09-26T16:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Exist() for generating Flag value 0/1 in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Exist-for-generating-Flag-value-0-1-in-script/m-p/445832#M701973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to do this from 2 tables in my DB. So for example I'm trying:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;userconf:&lt;/P&gt;&lt;P&gt;load userid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; city,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0) AS partnercheck;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL select userid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; city,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title,&lt;/P&gt;&lt;P&gt;from table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This creates a field in userconf called partnercheck and sets the default value to 0. I want to now check another table in the DB to see if userid exists, and if it does, set the value of partnercheck to 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2013 10:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Exist-for-generating-Flag-value-0-1-in-script/m-p/445832#M701973</guid>
      <dc:creator />
      <dc:date>2013-11-01T10:45:46Z</dc:date>
    </item>
  </channel>
</rss>

