<?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: Flag in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357700#M828331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to hear!&lt;/P&gt;&lt;P&gt;Please mark my answer as correct so that this topic is closed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jun 2017 09:34:58 GMT</pubDate>
    <dc:creator>henrikalmen</dc:creator>
    <dc:date>2017-06-26T09:34:58Z</dc:date>
    <item>
      <title>Flag in script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357691#M828322</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;I have imported two spreadsheets and created a single table in Qlikview.&amp;nbsp; I would like to add a flag field that would indicated where three of the fields are populated with values ie. it should reflect "1" if there is a value in all three fields and "0" if there is a missing value on any of the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dilemma I have is that I have left joined each table and created one table so the fields are not recognised when using the flag.&lt;/P&gt;&lt;P&gt;I am using the following formula in the load script.&lt;/P&gt;&lt;P&gt;If (Dom_InflRate&amp;lt;&amp;gt;null() and For_InflRate&amp;lt;&amp;gt;null() and XRate&amp;lt;&amp;gt;null(), Flag=1, Flag=0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the screenshot of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357691#M828322</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357692#M828323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veronica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you attach a sample data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel del Valle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 08:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357692#M828323</guid>
      <dc:creator>migueldelval</dc:creator>
      <dc:date>2017-06-26T08:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357693#M828324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the prompt response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the model.&amp;nbsp; Could you also assist with the data tab where I would like to conduct a check on the data available for the &lt;/P&gt;&lt;P&gt;Exchange Rates , Domestic Inflation and Foreign Inflation (tables on the right).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like the data field to automatically select data available for common dates for the above three fields when a CurrencyPair is chosen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trust that this provides clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Veronica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 08:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357693#M828324</guid>
      <dc:creator />
      <dc:date>2017-06-26T08:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357694#M828325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Veronica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your qvw file it´s empty, check please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel del Valle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 08:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357694#M828325</guid>
      <dc:creator>migueldelval</dc:creator>
      <dc:date>2017-06-26T08:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357695#M828326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 08:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357695#M828326</guid>
      <dc:creator />
      <dc:date>2017-06-26T08:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357696#M828327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not quite sure what you mean, but try adding this in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(ExchangeRate)&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If (isNull(Dom_InflRate) or isNull(For_InflRate) or isNull(XRate), 0, 1) as Flag &lt;/P&gt;&lt;P&gt;Resident ExchangeRate&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should give you a "Flag" field that you can use in objects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 08:57:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357696#M828327</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2017-06-26T08:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357697#M828328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see that you have now attached a sample file. Remove the attempt att creating the table NullValues in the top of the tab ExchageRates, and remove the statement "If (ISNull(XRate),Flag=1,Flag=0)" in creation of the table ExchangeRates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then add my suggestion after the creation of table ExchangeRates. I believe the result will be what you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 09:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357697#M828328</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2017-06-26T09:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357698#M828329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henrik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find attached script error received when using your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 09:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357698#M828329</guid>
      <dc:creator />
      <dc:date>2017-06-26T09:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357699#M828330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henrik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies, I have rerun and it works.&amp;nbsp; Thanks , much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Veronica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 09:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357699#M828330</guid>
      <dc:creator />
      <dc:date>2017-06-26T09:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357700#M828331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to hear!&lt;/P&gt;&lt;P&gt;Please mark my answer as correct so that this topic is closed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 09:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357700#M828331</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2017-06-26T09:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357701#M828332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Henrik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you also assist with the minimum date filters.&amp;nbsp; As you will see, the data starts at different dates for the three fields of interest for each currencypair.&amp;nbsp; I would like to create a minimum date filter for each field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 10:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357701#M828332</guid>
      <dc:creator />
      <dc:date>2017-06-26T10:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357702#M828333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure what it is you want but perhaps something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinimumDate: load CurrencyPair, min(Date) as mindate Resident ExchangeRates group by CurrencyPair;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this will at least send you in the right direction. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 11:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357702#M828333</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2017-06-26T11:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357703#M828334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henrik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Minimum Date of Foreign Inflation(Field called For_InflRate of a currency pair with a value ie. the minimum start date with a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same for Exchange Rate(field called XRate) and Domestic Inflation(field called Dom_InflRate).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 12:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357703#M828334</guid>
      <dc:creator />
      <dc:date>2017-06-26T12:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Flag in script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357704#M828335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll have to check if CurrencyPair has a value, for example by using len(trim(CurrencyPair))&amp;gt;0 in a where-clause. And instead of load CurrencyPair in my examle you should load min(Date) over the dimension For_InflRate and the other fields. Depending on what you want to do with that you could set a flag in your table to indicate what row has the minimum value, or you could create a table with those values (if so, you should look up how to use Concat() in your load script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 12:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-in-script/m-p/1357704#M828335</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2017-06-26T12:47:34Z</dc:date>
    </item>
  </channel>
</rss>

