<?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 Create a flag in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-flag-in-the-script/m-p/1731531#M721956</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a flag in the script, the scenario is Sample company has subscriptions for customers, inventory, customer emails and in addition, employees can buy a subscription as well. So the flag I am trying to create is where subscription belongs to an employee then Yes else No. The join or lookup will be customer email to employee email.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I prefer not to use mapping load to keep the optimized load in load script and also I have to convert the email fields to Upper() as they are inconsistency with regards to email alphabet characters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:17:53 GMT</pubDate>
    <dc:creator>madhuqliklondon</dc:creator>
    <dc:date>2024-11-16T18:17:53Z</dc:date>
    <item>
      <title>Create a flag in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-flag-in-the-script/m-p/1731531#M721956</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a flag in the script, the scenario is Sample company has subscriptions for customers, inventory, customer emails and in addition, employees can buy a subscription as well. So the flag I am trying to create is where subscription belongs to an employee then Yes else No. The join or lookup will be customer email to employee email.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I prefer not to use mapping load to keep the optimized load in load script and also I have to convert the email fields to Upper() as they are inconsistency with regards to email alphabet characters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-flag-in-the-script/m-p/1731531#M721956</guid>
      <dc:creator>madhuqliklondon</dc:creator>
      <dc:date>2024-11-16T18:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create a flag in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-flag-in-the-script/m-p/1731702#M721957</link>
      <description>Since you have to already use the Upper() function, I would definitely use a mapping table as long as you have such table with employee IDs for which you can create the flag.&lt;BR /&gt;&lt;BR /&gt;Alternatively, you can use the EXISTS() function in the field and use it for the flag:&lt;BR /&gt;&lt;BR /&gt;Employees:&lt;BR /&gt;LOAD Upper(email_address) FROM File.qvd (qvd);&lt;BR /&gt;&lt;BR /&gt;Subscriptions:&lt;BR /&gt;LOAD *,&lt;BR /&gt;If(Exists(Upper(email_address)), 1, 0) AS flag.Employee // field with the same name as the one loaded previously elsewhere in the script&lt;BR /&gt;//else see help link below&lt;BR /&gt;FROM File.qvd (qvd);&lt;BR /&gt;&lt;BR /&gt;More reference on the Exists(): &lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/InterRecordFunctions/Exists.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/InterRecordFunctions/Exists.htm&lt;/A&gt;</description>
      <pubDate>Wed, 29 Jul 2020 10:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-flag-in-the-script/m-p/1731702#M721957</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2020-07-29T10:21:45Z</dc:date>
    </item>
  </channel>
</rss>

