<?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: Load Script: Combine If Then Logic in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Script-Combine-If-Then-Logic/m-p/404386#M489747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Umm this would normally work however this revenue account has a sales and margin value assigned to it.&amp;nbsp; I would like to only remove the sales value (&lt;SPAN style="color: #737373; font-family: monospace; font-size: 16px; background-color: #ffffff;"&gt;extended_price&lt;/SPAN&gt;).&amp;nbsp; The Margin value for the gl_account I would like to keep in tack.&amp;nbsp; Summing these values in the load script is something I can not do either.&amp;nbsp; Otherwise when you look at an individual order number you will see the sum of all Sales.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2012 22:22:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-05T22:22:46Z</dc:date>
    <item>
      <title>Load Script: Combine If Then Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Combine-If-Then-Logic/m-p/404384#M489745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to combine two equations into one in my load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Script:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13521532046661642" jivemacro_uid="_13521532046661642"&gt;&lt;P&gt;((IF(match(gl_revenue_account_no, 4006003),(extended_price*-1)))) AS extended_price_Commission,&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Equation (equation I would like to combine)&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13521532246473760" jivemacro_uid="_13521532246473760"&gt;&lt;P&gt;=sum(extended_price_Commission)+sum(extended_price)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like it so I can do 'blah' AS extended_price and this new value will have gl_revenue_account_no value removed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if anyone else has any other ideas?&amp;nbsp; I would like to remove '&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;gl_revenue_account_no = 4006003'&lt;/SPAN&gt; from the total extented_price value however this can be done within the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 22:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Combine-If-Then-Logic/m-p/404384#M489745</guid>
      <dc:creator />
      <dc:date>2012-11-05T22:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script: Combine If Then Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Combine-If-Then-Logic/m-p/404385#M489746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you mean like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;sum(extended_price_Commission)+sum(extended_price)&lt;/CODE&gt; AS SumPrice&lt;/P&gt;&lt;P&gt;Resident TableName&lt;/P&gt;&lt;P&gt;Where &lt;SPAN style="color: #737373; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;gl_revenue_account_no &amp;lt;&amp;gt; 4006003;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 22:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Combine-If-Then-Logic/m-p/404385#M489746</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-11-05T22:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script: Combine If Then Logic</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Combine-If-Then-Logic/m-p/404386#M489747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Umm this would normally work however this revenue account has a sales and margin value assigned to it.&amp;nbsp; I would like to only remove the sales value (&lt;SPAN style="color: #737373; font-family: monospace; font-size: 16px; background-color: #ffffff;"&gt;extended_price&lt;/SPAN&gt;).&amp;nbsp; The Margin value for the gl_account I would like to keep in tack.&amp;nbsp; Summing these values in the load script is something I can not do either.&amp;nbsp; Otherwise when you look at an individual order number you will see the sum of all Sales.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 22:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Combine-If-Then-Logic/m-p/404386#M489747</guid>
      <dc:creator />
      <dc:date>2012-11-05T22:22:46Z</dc:date>
    </item>
  </channel>
</rss>

