<?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: Need help in computing Discounts based on Min and Max limits (by Customer) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762545#M1034052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Massimo,&lt;/P&gt;&lt;P&gt;I updated my Excel and desired output. Now the concept is more clear. Can you help us please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 Jan 2015 20:00:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-25T20:00:28Z</dc:date>
    <item>
      <title>Need help in computing Discounts based on Min and Max limits (by Customer)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762541#M1034048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have two data sets. 1. Transactions Data 2. Discount Tiers with Min and Max values&lt;/P&gt;&lt;P&gt;Common fields between two data sets are…&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;C_Year/C_Qtr/Product/Member Type&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on Customer Number,member type and purchased Quantity (from Transaction Data), we need to comare “Total Purchased Quantity” between MIN and MAX limits in 'Discount Tiers' and extract ‘Tier’ and ‘Discount %’ (from Discount table- 2nd sheet in excel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excel with ‘Transaction Data’ and ‘Discount Tiers’ has enclosed (two separate sheets)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desired output is below….(Yellow form Tran Data and Green from Discount Tiers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 546pt;" width="727"&gt;&lt;TBODY&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD class="xl63" height="19" style="height: 14.4pt; width: 48pt;" width="64"&gt;C_Year&lt;/TD&gt;&lt;TD class="xl63" style="width: 48pt;" width="64"&gt;C_Qtr&lt;/TD&gt;&lt;TD class="xl63" style="width: 48pt;" width="64"&gt;Product&lt;/TD&gt;&lt;TD class="xl63" style="width: 48pt;" width="64"&gt;Customer Number&lt;/TD&gt;&lt;TD class="xl63" style="width: 66pt;" width="88"&gt;Member Type&lt;/TD&gt;&lt;TD class="xl64" style="width: 121pt;" width="161"&gt;Quantity (Sum of Quarter)&lt;/TD&gt;&lt;TD class="xl64" style="width: 71pt;" width="94"&gt;Discount_Type&lt;/TD&gt;&lt;TD class="xl64" style="width: 48pt;" width="64"&gt;Tier&lt;/TD&gt;&lt;TD class="xl64" style="width: 48pt;" width="64"&gt;Discount%&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD align="right" height="19" style="height: 14.4pt;"&gt;2014&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD align="right"&gt;10001&lt;/TD&gt;&lt;TD&gt;AAA&lt;/TD&gt;&lt;TD align="right"&gt;80&lt;/TD&gt;&lt;TD&gt;G&lt;/TD&gt;&lt;TD&gt;G_Tier_3&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD align="right" height="19" style="height: 14.4pt;"&gt;2014&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD&gt;Orange&lt;/TD&gt;&lt;TD align="right"&gt;10001&lt;/TD&gt;&lt;TD&gt;AAA&lt;/TD&gt;&lt;TD align="right"&gt;150&lt;/TD&gt;&lt;TD&gt;G&lt;/TD&gt;&lt;TD&gt;G_Tier_3&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD align="right" height="19" style="height: 14.4pt;"&gt;2014&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD&gt;Banana&lt;/TD&gt;&lt;TD align="right"&gt;10001&lt;/TD&gt;&lt;TD&gt;AAA&lt;/TD&gt;&lt;TD align="right"&gt;110&lt;/TD&gt;&lt;TD&gt;G&lt;/TD&gt;&lt;TD&gt;G_Tier_3&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD align="right" height="19" style="height: 14.4pt;"&gt;2014&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD align="right"&gt;10002&lt;/TD&gt;&lt;TD&gt;BBB&lt;/TD&gt;&lt;TD align="right"&gt;120&lt;/TD&gt;&lt;TD&gt;G&lt;/TD&gt;&lt;TD&gt;G_Tier_3&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD align="right" height="19" style="height: 14.4pt;"&gt;2014&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD&gt;Orange&lt;/TD&gt;&lt;TD align="right"&gt;10002&lt;/TD&gt;&lt;TD&gt;BBB&lt;/TD&gt;&lt;TD align="right"&gt;88&lt;/TD&gt;&lt;TD&gt;G&lt;/TD&gt;&lt;TD&gt;G_Tier_3&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD align="right" height="19" style="height: 14.4pt;"&gt;2014&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD&gt;Banana&lt;/TD&gt;&lt;TD align="right"&gt;10002&lt;/TD&gt;&lt;TD&gt;BBB&lt;/TD&gt;&lt;TD align="right"&gt;126&lt;/TD&gt;&lt;TD&gt;G&lt;/TD&gt;&lt;TD&gt;G_Tier_3&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 14.4pt;"&gt;&lt;TD align="right" height="19" style="height: 14.4pt;"&gt;2014&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD align="right"&gt;10003&lt;/TD&gt;&lt;TD&gt;CCC&lt;/TD&gt;&lt;TD align="right"&gt;98&lt;/TD&gt;&lt;TD&gt;G&lt;/TD&gt;&lt;TD&gt;G_Tier_3&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76212_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I updated previous thread with more clear data and with clear desired output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(We have 100 Products and 1000+ customers sales data in our complete data set)&lt;/P&gt;&lt;P&gt;Really appreciate for all your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2015 08:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762541#M1034048</guid>
      <dc:creator />
      <dc:date>2015-01-25T08:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in computing Discounts based on Min and Max limits (by Customer)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762542#M1034049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give desired result for&amp;nbsp; green columns?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2015 12:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762542#M1034049</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-01-25T12:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in computing Discounts based on Min and Max limits (by Customer)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762543#M1034050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe with IntervalMatch, here for detail&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3037"&gt;IntervalMatch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Discount:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;LOAD C_Year, C_Qtr, Product, Discount, Member_Type, Tier, Low_Limit, High_Limit, Discount%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;FROM [For Qlik.xlsx] (ooxml, embedded labels, table is [Discount Tiers]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Transaction:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;LOAD C_Year, C_Qtr, Product, [Customer Number], Quantity, [Member Type] as Member_Type&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;FROM [For Qlik.xlsx] (ooxml, embedded labels, table is [Transaction Data]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;left join IntervalMatch(Quantity, C_Year, C_Qtr, Product, Member_Type)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;LOAD&amp;nbsp; Low_Limit, High_Limit, C_Year, C_Qtr, Product, Member_Type //, Tier, Discount%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Resident Discount;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2015 13:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762543#M1034050</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-01-25T13:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in computing Discounts based on Min and Max limits (by Customer)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762544#M1034051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert and Group,&lt;/P&gt;&lt;P&gt;I added real life data (as a sample). My Excel has 4 tabs...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Transaction Data &lt;/LI&gt;&lt;LI&gt;Discount Tiers (Master Data)&lt;/LI&gt;&lt;LI&gt;Summary (I made summary to under stand more clear)&lt;/LI&gt;&lt;LI&gt;Desired Result (The output our business would like to see)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2015 19:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762544#M1034051</guid>
      <dc:creator />
      <dc:date>2015-01-25T19:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in computing Discounts based on Min and Max limits (by Customer)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762545#M1034052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Massimo,&lt;/P&gt;&lt;P&gt;I updated my Excel and desired output. Now the concept is more clear. Can you help us please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2015 20:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762545#M1034052</guid>
      <dc:creator />
      <dc:date>2015-01-25T20:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in computing Discounts based on Min and Max limits (by Customer)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762546#M1034053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be good if your Excel file has &lt;STRONG&gt;exactly&lt;/STRONG&gt; the same data that your online table&lt;/P&gt;&lt;P&gt;We got names of Product here and just Product1,2,3... in your Excel file...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 06:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762546#M1034053</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-01-26T06:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in computing Discounts based on Min and Max limits (by Customer)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762547#M1034054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you not join the tables in the script based on the conditions you describe?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Equijoins on the fields that need to be an exact match and then &amp;lt; &amp;gt; below values as appropriate joining the sales to the discount group?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that the data is available in SQL which I appreciate isn't necessarily the case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 09:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762547#M1034054</guid>
      <dc:creator />
      <dc:date>2015-01-26T09:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in computing Discounts based on Min and Max limits (by Customer)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762548#M1034055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mika,&lt;/P&gt;&lt;P&gt;The latest table I have (in Excel) updated data. Please take a look.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 15:25:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762548#M1034055</guid>
      <dc:creator />
      <dc:date>2015-01-26T15:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in computing Discounts based on Min and Max limits (by Customer)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762549#M1034056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. The data is SQL server. But Data is coming from two different severs. (Discount Data from one server and Transaction data from other server). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 15:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762549#M1034056</guid>
      <dc:creator />
      <dc:date>2015-01-26T15:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in computing Discounts based on Min and Max limits (by Customer)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762550#M1034057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd be all over that with Integration Services, but I'm sure someone will come along with a purely Qlik based solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 15:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762550#M1034057</guid>
      <dc:creator />
      <dc:date>2015-01-26T15:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in computing Discounts based on Min and Max limits (by Customer)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762551#M1034058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem I have with your data is for every (Transaction Data)&amp;nbsp; C_Year, C_Qtr, Product, Member_Type&lt;/P&gt;&lt;P&gt;there are 2 matching (range) discount type (G V) in Discount Tires&lt;/P&gt;&lt;P&gt;So when i filter 1 discount type the result seems ok but without filter no (see attachment)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 17:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762551#M1034058</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-01-26T17:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in computing Discounts based on Min and Max limits (by Customer)</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762552#M1034059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are awesome!!! Thank you so much for your help. One quick question...can I left join multiple Discount tables to my Transaction table via Intervalmatch? please clarify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 04:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-computing-Discounts-based-on-Min-and-Max-limits-by/m-p/762552#M1034059</guid>
      <dc:creator />
      <dc:date>2015-01-27T04:50:07Z</dc:date>
    </item>
  </channel>
</rss>

