<?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 AW:HOW TO CALCULATE DISCOUNT ?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/HOW-TO-CALCULATE-DISCOUNT/m-p/153147#M30300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;best way is this expression:&lt;/P&gt;&lt;P&gt;Sum(quantity * price * (1 - If(match(Group,'80H2','80H3','80H4','80H5','80H6'), 0.3, 0)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Mar 2011 09:07:36 GMT</pubDate>
    <dc:creator>brenner_martina</dc:creator>
    <dc:date>2011-03-10T09:07:36Z</dc:date>
    <item>
      <title>HOW TO CALCULATE DISCOUNT ??</title>
      <link>https://community.qlik.com/t5/QlikView/HOW-TO-CALCULATE-DISCOUNT/m-p/153146#M30299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table called MATERIAL GROUP, which has various Material groups like 80FB, 83RT, 99FD, so on and so forth.&lt;/P&gt;&lt;P&gt;There are some groups, which have discounts in them.&lt;/P&gt;&lt;P&gt;How do i calculate the discount value in the material group table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So example,&lt;/P&gt;&lt;P&gt;There is a group which is MATERIAL GROUP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 97pt; border-collapse: collapse;" width="129"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 97pt; mso-width-source: userset; mso-width-alt: 4717;" width="129" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; width: 97pt; height: 12.75pt; border: #d4d0c8;" width="129"&gt;80H2&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H3&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H3&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H3&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H3&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H4&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H6&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H6&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H6&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H6&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H7&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H7&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H7&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H7&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H8&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H8&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H8&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H8&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H8&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H8&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H9&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H9&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80H9&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80HA&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80HA&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80HA&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80HA&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80HA&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD height="17" style="background-color: transparent; height: 12.75pt; border: #d4d0c8;"&gt;80HB&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;(this is just a little bit of the groups), And of them, let us say, from 80H2 - 80H6 have a 30% discount, how do i calculate that price along with the whole group ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 07:54:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HOW-TO-CALCULATE-DISCOUNT/m-p/153146#M30299</guid>
      <dc:creator />
      <dc:date>2011-03-10T07:54:31Z</dc:date>
    </item>
    <item>
      <title>AW:HOW TO CALCULATE DISCOUNT ??</title>
      <link>https://community.qlik.com/t5/QlikView/HOW-TO-CALCULATE-DISCOUNT/m-p/153147#M30300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;best way is this expression:&lt;/P&gt;&lt;P&gt;Sum(quantity * price * (1 - If(match(Group,'80H2','80H3','80H4','80H5','80H6'), 0.3, 0)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 09:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HOW-TO-CALCULATE-DISCOUNT/m-p/153147#M30300</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-03-10T09:07:36Z</dc:date>
    </item>
    <item>
      <title>AW:HOW TO CALCULATE DISCOUNT ??</title>
      <link>https://community.qlik.com/t5/QlikView/HOW-TO-CALCULATE-DISCOUNT/m-p/153148#M30301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay,but that means, must add in a new variable for quantity ? and how do you add the discount inside?&lt;/P&gt;&lt;P&gt;by the way the discount is 30%&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 09:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HOW-TO-CALCULATE-DISCOUNT/m-p/153148#M30301</guid>
      <dc:creator />
      <dc:date>2011-03-10T09:40:28Z</dc:date>
    </item>
  </channel>
</rss>

