<?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: Calculate Incentives based on Sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52409#M780296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The upper limit and lower limit data is not limited to the two sample provided, and hence it is infeasible to include hard coded limits in the expression. attaching the qvf file and sample data load script !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2018 07:19:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-05T07:19:33Z</dc:date>
    <item>
      <title>Calculate Incentives based on Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52404#M780291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Qlik and just trying to develop on an existing app. Would like to request help to resolve an issue I am facing now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirement is to calculate the incentives for each merchant, based on the sales amount per product. Sales data existing in transaction table:&lt;/P&gt;&lt;P&gt;[KEY_VX_TRXN]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trxn_no,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TerminalID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MerchantID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Branch,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Service,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProductCode,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Datetime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCENTIVES:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Category AS CATEGORY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Service AS INCENTIVE_SERVICE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUBFIELD(LIMIT,'_', 2) as UPPERLIMIT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUBFIELD(LIMIT,'_', 1) as LOWERLIMIT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PERCENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; RESIDENT INCENTIVES_TEMP;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="198410" alt="d3f4e33db657425a9544b5f2b919c763.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/198410_d3f4e33db657425a9544b5f2b919c763.png" style="height: 263px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;ex: For a particular merchant , we calculate the sum(amount) for a month where Service=Entertainment and product=Amazon,&lt;/P&gt;&lt;P&gt;Incentive = 0.04* Sales Amount, if Sales 1000&amp;lt;=Amount&amp;lt;3000&lt;/P&gt;&lt;P&gt;Incentive = 0.05* Sales Amount, if Sales 3000&amp;lt;=Amount&amp;lt;5000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to combine the set analysis and interval match, to make this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward for expert advices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52404#M780291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Incentives based on Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52405#M780292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share your app? or sample data to work upon.&lt;/P&gt;&lt;P&gt;Your requirement is feasible.&lt;/P&gt;&lt;P&gt;if(Amount&amp;gt;'3000' and Amount &amp;lt;='1000',0.04*Sales_Amount,if(&lt;SPAN style="font-size: 13.3333px;"&gt;Amount&amp;gt;'5000' and Amount &amp;lt;='3000',0.05*Sales_Amount)) as Incentive.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;You can use this logic to build expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 17:30:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52405#M780292</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-04-04T17:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Incentives based on Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52406#M780293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pl provide a sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 17:42:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52406#M780293</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-04-04T17:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Incentives based on Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52407#M780294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the load an Interval match, and join would give the corresponding incentive percentage for each record.&lt;/P&gt;&lt;P&gt;you wouldn't need any conditional statements on the UI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 17:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52407#M780294</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2018-04-04T17:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Incentives based on Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52408#M780295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a similar problem and the best solution for me was as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, with the interval match, I find which range correspond for each sales &lt;SPAN style="font-size: 13.3333px;"&gt;amount.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Merchant_ID, RangeUp, SalesAm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Then, creating a Mapping&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RangeUp, Percentaje&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I apply this Mapping in order to find the percentaje&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 23:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52408#M780295</guid>
      <dc:creator>jolivares</dc:creator>
      <dc:date>2018-04-04T23:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Incentives based on Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52409#M780296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The upper limit and lower limit data is not limited to the two sample provided, and hence it is infeasible to include hard coded limits in the expression. attaching the qvf file and sample data load script !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 07:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52409#M780296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-05T07:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Incentives based on Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52410#M780297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ragesh,&lt;/P&gt;&lt;P&gt;The sales data is per transaction, not monthly, aggregated per merchant. Attached the sample script above, Is it possible to load interval match and join with this data model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 07:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52410#M780297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-05T07:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Incentives based on Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52411#M780298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You for the response. But the Sales amount is at transaction level, not monthly. So interval match is not possible, unless there is another load with monthly sales calculated. Or is is possible in any other way, which I am not aware of?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 07:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52411#M780298</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-05T07:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Incentives based on Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52412#M780299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasidhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 10:30:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Incentives-based-on-Sales/m-p/52412#M780299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-05T10:30:33Z</dc:date>
    </item>
  </channel>
</rss>

