<?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 Multiplication Script having Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiplication-Script-having-Issue/m-p/1335700#M845180</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 have Quantity, Contract Margin in my DB. I am taking these field directly. I am doing on calculation in script level, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quantity *&amp;nbsp; Contract Margin as Margin$.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I use this Margin$ field directly in my chart value is not matching. Like:&lt;/P&gt;&lt;P&gt;sum(Margin) -- it is not matching&lt;/P&gt;&lt;P&gt;Instead of that if I use base query in chart like :&lt;/P&gt;&lt;P&gt;sum(Quantity) * sum(Contract Margin) --- it is matching.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest me why this is happening. How to resolve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>mhmmd_srf</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Multiplication Script having Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-Script-having-Issue/m-p/1335700#M845180</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 have Quantity, Contract Margin in my DB. I am taking these field directly. I am doing on calculation in script level, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quantity *&amp;nbsp; Contract Margin as Margin$.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I use this Margin$ field directly in my chart value is not matching. Like:&lt;/P&gt;&lt;P&gt;sum(Margin) -- it is not matching&lt;/P&gt;&lt;P&gt;Instead of that if I use base query in chart like :&lt;/P&gt;&lt;P&gt;sum(Quantity) * sum(Contract Margin) --- it is matching.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest me why this is happening. How to resolve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarif&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/Multiplication-Script-having-Issue/m-p/1335700#M845180</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplication Script having Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Multiplication-Script-having-Issue/m-p/1335701#M845181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's the expected behavior. For example, If you have a month as a dimension, and your field is Margin which is Quantity * Contact Margin,&amp;nbsp; The value of the month should be Quantity of month and Contact Margin of Month. So it should be sum(Quantity) * &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(Contract Margin)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's not the mistake of the QlikView as it gives the values of your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just an opinion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 09:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiplication-Script-having-Issue/m-p/1335701#M845181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-04T09:13:47Z</dc:date>
    </item>
  </channel>
</rss>

