<?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: Where to perform calculations ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-to-perform-calculations/m-p/681955#M1053074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any suggestion? I'm not looking for the code , just a way of knowing how to go about. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Oct 2014 14:24:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-23T14:24:36Z</dc:date>
    <item>
      <title>Where to perform calculations ?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-to-perform-calculations/m-p/681954#M1053073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to explore Qlikview's capability as a BI tool and trying to go beyond the data visualization that I've been exposed to so far. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables as shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table A:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Store ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Guarantee&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Rate 1&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Rate 2&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Rate 3&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Sales 1&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Sales 2&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table B:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Store ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;150&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to calculate the commission for each stores based on it's sales. For example, if store 1 has sales below 100, it gets 5% of sales , if its between 100 to 200 , it gets 10% and if it exceeds 200 , it gets 15%. There's also a guarantee amount for each store. In case of store 2, If it exceeds 100, it gets 12% else 6%.&amp;nbsp; This is just an example and the source is from an Excel workbook. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: How do I go about this? I have loaded both the tables but not sure how to get data out of both the tables and then calculate the commission.Should I create a new table or create variables or any other way? Can someone help me out here ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 20:31:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-to-perform-calculations/m-p/681954#M1053073</guid>
      <dc:creator />
      <dc:date>2014-10-22T20:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Where to perform calculations ?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-to-perform-calculations/m-p/681955#M1053074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any suggestion? I'm not looking for the code , just a way of knowing how to go about. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 14:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-to-perform-calculations/m-p/681955#M1053074</guid>
      <dc:creator />
      <dc:date>2014-10-23T14:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Where to perform calculations ?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-to-perform-calculations/m-p/681956#M1053075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can&amp;nbsp; try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(ID='1',if(Sales=100,'5%',if(Sales&amp;gt;100 and Sales&amp;lt;=200,'10%',if(Sales&amp;gt;200,'15%'))),&lt;/P&gt;&lt;P&gt;if(ID=2 and Sales(1)&amp;gt;100,'12%','6%'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sales.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69579_Sales.PNG.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 19:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-to-perform-calculations/m-p/681956#M1053075</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-23T19:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Where to perform calculations ?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-to-perform-calculations/m-p/681957#M1053076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where column % is a&amp;nbsp; expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 19:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-to-perform-calculations/m-p/681957#M1053076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-23T19:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Where to perform calculations ?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-to-perform-calculations/m-p/681958#M1053077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thank you for your reply. The example provided here is just a sample and there will be loads of other checks I need to do. My primary quesiton is where do I perform these calculations? I would ideally prefer to do it while loading the script not as an expression inside the charts. Second, How do I get bring data from two different tables and calculate the commission ? Where would I store this variable? Is it in a new table or a global variable? Since I'm new to Qlikview , I'm not sure of its scripting design.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 19:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-to-perform-calculations/m-p/681958#M1053077</guid>
      <dc:creator />
      <dc:date>2014-10-23T19:55:11Z</dc:date>
    </item>
  </channel>
</rss>

