<?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: expression to calculate discount in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression-to-calculate-discount/m-p/30792#M784415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Paint1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/196429_Paint1.png" style="height: 140px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Here under discount column I am getting higher value as expected and I am using three different multibox for current year, previous year and before previous year &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2018 06:32:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-15T06:32:34Z</dc:date>
    <item>
      <title>expression to calculate discount</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-calculate-discount/m-p/30790#M784413</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;Following is the expression to calculate discount%. Its giving wrong value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here sales value is without tax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=((sum({stateA&amp;lt; Year = {"$(=Max(Year)-2)"}&amp;gt;} quantity_sold * MRP_INR) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;- sum({stateA&amp;lt; Year = {"$(=Max(Year)-2)"}&amp;gt;} quantity_returns * MRP_INR))&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;/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;( sum({stateA&amp;lt; Year = {"$(=Max(Year)-2)"}&amp;gt;} [sales&amp;nbsp; value])))&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;/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;(sum({stateA&amp;lt; Year = {"$(=Max(Year)-2)"}&amp;gt;} quantity_sold * MRP_INR) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;- sum({stateA&amp;lt; Year = {"$(=Max(Year)-2)"}&amp;gt;} quantity_returns * MRP_INR))&lt;/SPAN&gt;&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/expression-to-calculate-discount/m-p/30790#M784413</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: expression to calculate discount</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-calculate-discount/m-p/30791#M784414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you explain little bit more.&lt;/P&gt;&lt;P&gt;how your data look like?&lt;/P&gt;&lt;P&gt;why are u using alternate state?&lt;/P&gt;&lt;P&gt;what is the expected output?&lt;/P&gt;&lt;P&gt;what challenges are you facing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 06:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-calculate-discount/m-p/30791#M784414</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2018-03-15T06:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: expression to calculate discount</title>
      <link>https://community.qlik.com/t5/QlikView/expression-to-calculate-discount/m-p/30792#M784415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Paint1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/196429_Paint1.png" style="height: 140px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Here under discount column I am getting higher value as expected and I am using three different multibox for current year, previous year and before previous year &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 06:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-to-calculate-discount/m-p/30792#M784415</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-15T06:32:34Z</dc:date>
    </item>
  </channel>
</rss>

