<?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: Using Flags in Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Flags-in-Load-Script/m-p/300364#M712011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Though I do not know the requirements of your application nor what you are trying to do, I can answer a part of your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you were advised to try the use of flag, probably s(he) meant this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) In the logical table having the fields &lt;STRONG&gt;app_date&lt;/STRONG&gt; and &lt;STRONG&gt;strat_date&lt;/STRONG&gt;, add a field (let us call it 'date_flag') which is true when the dates are equal. (You can do this by adding &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;(app_date = strat_date) as date_flag&lt;/STRONG&gt;&lt;/SPAN&gt; in your load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) Use this flag in your set analysis expression instead of comparing dates (e.g. &lt;STRONG&gt;count ({&amp;lt;Strat1 ={'1'}, &lt;SPAN style="color: #ff0000;"&gt;date_flag = {'true'}&lt;/SPAN&gt;&amp;gt;}distinct customer_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Jun 2011 14:10:49 GMT</pubDate>
    <dc:creator>nagaiank</dc:creator>
    <dc:date>2011-06-18T14:10:49Z</dc:date>
    <item>
      <title>Using Flags in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Flags-in-Load-Script/m-p/300361#M712008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have searched the forum looking for posts relating to using flags in Load script to simplify expressions in charts. Oleg had a post, but the link to the post does not work anymore. Can someone please provide a very basic, simple and clear example of how to use these flags as I am unsure of how to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jun 2011 10:40:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Flags-in-Load-Script/m-p/300361#M712008</guid>
      <dc:creator />
      <dc:date>2011-06-18T10:40:53Z</dc:date>
    </item>
    <item>
      <title>Using Flags in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Flags-in-Load-Script/m-p/300362#M712009</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can use variables in scripts which can act like a flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Will you please explain what you want to achieve using flags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jun 2011 10:46:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Flags-in-Load-Script/m-p/300362#M712009</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-06-18T10:46:54Z</dc:date>
    </item>
    <item>
      <title>Using Flags in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Flags-in-Load-Script/m-p/300363#M712010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I m trying to do something like this as an expression,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count ({&amp;lt;Strat1 ={'1'}, app_date = strat_date&amp;gt;}distinct customer_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; but from my understanding, in set analysis you can't compare two fields together, as the app_date and the strat_date are both fields in my application. I have been advised to try and use flags in the load script to handle this, so any thoughts on this or any other way of re-writing this expression to get it to satisfy those conditions would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jun 2011 11:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Flags-in-Load-Script/m-p/300363#M712010</guid>
      <dc:creator />
      <dc:date>2011-06-18T11:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using Flags in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Flags-in-Load-Script/m-p/300364#M712011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Though I do not know the requirements of your application nor what you are trying to do, I can answer a part of your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you were advised to try the use of flag, probably s(he) meant this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) In the logical table having the fields &lt;STRONG&gt;app_date&lt;/STRONG&gt; and &lt;STRONG&gt;strat_date&lt;/STRONG&gt;, add a field (let us call it 'date_flag') which is true when the dates are equal. (You can do this by adding &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;(app_date = strat_date) as date_flag&lt;/STRONG&gt;&lt;/SPAN&gt; in your load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) Use this flag in your set analysis expression instead of comparing dates (e.g. &lt;STRONG&gt;count ({&amp;lt;Strat1 ={'1'}, &lt;SPAN style="color: #ff0000;"&gt;date_flag = {'true'}&lt;/SPAN&gt;&amp;gt;}distinct customer_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jun 2011 14:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Flags-in-Load-Script/m-p/300364#M712011</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-06-18T14:10:49Z</dc:date>
    </item>
    <item>
      <title>Using Flags in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Flags-in-Load-Script/m-p/300365#M712012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply &lt;SPAN class="replytoname"&gt;krishnamoorthy. I will try it out and let you know how it goes&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jun 2011 19:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Flags-in-Load-Script/m-p/300365#M712012</guid>
      <dc:creator />
      <dc:date>2011-06-18T19:14:44Z</dc:date>
    </item>
  </channel>
</rss>

