<?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 SQL Load script - make currency negative based on flag in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Load-script-make-currency-negative-based-on-flag/m-p/217688#M70874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;TRANSACTIONS:&lt;BR /&gt;Load&lt;BR /&gt;DRCR_FLG * OSBASE_AMT as OSBASE_AMT&lt;BR /&gt;SQL SELECT * FROM ALI.TRX;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jul 2010 14:00:12 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2010-07-08T14:00:12Z</dc:date>
    <item>
      <title>SQL Load script - make currency negative based on flag</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load-script-make-currency-negative-based-on-flag/m-p/217687#M70873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi im wondering what the sql code would be if i wanted to make a field negative (-) based on a flag. Because by default all values in the database are positive (+).&lt;/P&gt;&lt;P&gt;The conditions are if DRCR_FLG = -1 then the OSBASE_AMT should be negative, if DRCR_FLG = 1 then the OSBASE_AMT should be positive.&lt;/P&gt;&lt;P&gt;Currently my load script looks like the following:&lt;/P&gt;&lt;P&gt;-----------&lt;/P&gt;&lt;P&gt;TRANSACTIONS:&lt;BR /&gt;Load&lt;BR /&gt;DRCR_FLG,&lt;BR /&gt;OSBASE_AMT,&lt;BR /&gt;SQL SELECT * FROM ALI.TRX;&lt;/P&gt;&lt;P&gt;----------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 13:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load-script-make-currency-negative-based-on-flag/m-p/217687#M70873</guid>
      <dc:creator />
      <dc:date>2010-07-08T13:39:38Z</dc:date>
    </item>
    <item>
      <title>SQL Load script - make currency negative based on flag</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load-script-make-currency-negative-based-on-flag/m-p/217688#M70874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;TRANSACTIONS:&lt;BR /&gt;Load&lt;BR /&gt;DRCR_FLG * OSBASE_AMT as OSBASE_AMT&lt;BR /&gt;SQL SELECT * FROM ALI.TRX;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 14:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load-script-make-currency-negative-based-on-flag/m-p/217688#M70874</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2010-07-08T14:00:12Z</dc:date>
    </item>
    <item>
      <title>SQL Load script - make currency negative based on flag</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load-script-make-currency-negative-based-on-flag/m-p/217689#M70875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ihave the same concept of prob &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of flag field &lt;/P&gt;&lt;P&gt;i use the code value of the field for determining &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my prob&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/34074"&gt;http://community.qlik.com/thread/34074&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 02:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load-script-make-currency-negative-based-on-flag/m-p/217689#M70875</guid>
      <dc:creator>rotero</dc:creator>
      <dc:date>2011-08-24T02:26:27Z</dc:date>
    </item>
  </channel>
</rss>

