<?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:Simple Equation in LOAD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-Equation-in-LOAD/m-p/233728#M85256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My issue now is the field name Margin and field name salesrep_id are stored in two separate tables. Combining the two tables leads to an in efficient application.&lt;/P&gt;&lt;P&gt;So thus I could use a variable?&lt;/P&gt;&lt;P&gt;Variable name: split&lt;/P&gt;&lt;P&gt;Value: IF(salesrep_id = 3208 OR salesrep_id = 3219, MARGIN/2,0)&lt;/P&gt;&lt;P&gt;Then if I make a text box with a condition: =sum(spilt) it should give me a value. Currently it gives me a value of zero.&lt;/P&gt;&lt;P&gt;Any other ideas on how to do this if I do not want to this in the load.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Nov 2009 00:45:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-06T00:45:43Z</dc:date>
    <item>
      <title>Simple Equation in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Equation-in-LOAD/m-p/233726#M85254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to make an equation within QV in the load statement. We are attempting to figure out our margin by using a 50/50 split between our sales reps. The equation is fairly simple but I am fairly new at QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(salesrep_id = 3208, 3207 THEN [MARGIN/2])&lt;/P&gt;&lt;P&gt;So in words. If the salesrep_id (field name in DB) is equal to 3208 or any of our sales rep IDs then divide the margin (calculated field name) in half.&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>Thu, 05 Nov 2009 22:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Equation-in-LOAD/m-p/233726#M85254</guid>
      <dc:creator />
      <dc:date>2009-11-05T22:25:39Z</dc:date>
    </item>
    <item>
      <title>Simple Equation in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Equation-in-LOAD/m-p/233727#M85255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;IF(salesrep_id = 3208 OR salesrep_id = 3208, MARGIN/2,0)&lt;/P&gt;&lt;P&gt;nor&lt;/P&gt;&lt;P&gt;IF(salesrep_id = 3208, MARGIN/2, IF (salesrep_id = 3208, MARGIN/2,0),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 22:51:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Equation-in-LOAD/m-p/233727#M85255</guid>
      <dc:creator />
      <dc:date>2009-11-05T22:51:36Z</dc:date>
    </item>
    <item>
      <title>Re:Simple Equation in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Equation-in-LOAD/m-p/233728#M85256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My issue now is the field name Margin and field name salesrep_id are stored in two separate tables. Combining the two tables leads to an in efficient application.&lt;/P&gt;&lt;P&gt;So thus I could use a variable?&lt;/P&gt;&lt;P&gt;Variable name: split&lt;/P&gt;&lt;P&gt;Value: IF(salesrep_id = 3208 OR salesrep_id = 3219, MARGIN/2,0)&lt;/P&gt;&lt;P&gt;Then if I make a text box with a condition: =sum(spilt) it should give me a value. Currently it gives me a value of zero.&lt;/P&gt;&lt;P&gt;Any other ideas on how to do this if I do not want to this in the load.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 00:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Equation-in-LOAD/m-p/233728#M85256</guid>
      <dc:creator />
      <dc:date>2009-11-06T00:45:43Z</dc:date>
    </item>
    <item>
      <title>Re:Simple Equation in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Equation-in-LOAD/m-p/233729#M85257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if you place this just in the text box it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(IF(salesrep_id = 3208 OR salesrep_id = 3219, Margin/2,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What a neat application...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 01:18:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Equation-in-LOAD/m-p/233729#M85257</guid>
      <dc:creator />
      <dc:date>2009-11-06T01:18:53Z</dc:date>
    </item>
    <item>
      <title>Re:Simple Equation in LOAD</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Equation-in-LOAD/m-p/233730#M85258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this way works too&lt;/P&gt;&lt;P&gt;=sum(IF(match(salesrep_id,3208,3219), Margin/2,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 01:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Equation-in-LOAD/m-p/233730#M85258</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2009-11-06T01:29:21Z</dc:date>
    </item>
  </channel>
</rss>

