<?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 on record level and add up results in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculate-on-record-level-and-add-up-results/m-p/1782568#M60925</link>
    <description>&lt;P&gt;Hi, I think this can be done in script, just join both tables or use a mapping table to have Cost_Value and quantity in the same table (I don't know the rules to join.. maybe by scenary? or by ID?) and do the calulations on script so yo have a field with the values applied, then on front-end you only need a sum of that field.&lt;/P&gt;</description>
    <pubDate>Sun, 14 Feb 2021 12:10:31 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2021-02-14T12:10:31Z</dc:date>
    <item>
      <title>Calculate on record level and add up results</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-on-record-level-and-add-up-results/m-p/1782053#M60866</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello Community,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have been trying to find someone with this issue on QlikSense, but with no success..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Basically what I need is to have a measure that would multiply data in the field "Quantity" on my Database by one specific "Cost_Value", record by record, from a Master Data connected to my Database by a specific field in common "Scenario_Prod".&lt;/P&gt;&lt;P&gt;This calculation is only needed for certain records based on the info in the [Account] field from the Database, which has to be "12345"&lt;/P&gt;&lt;P&gt;I have already tried to:&lt;/P&gt;&lt;P&gt;1) if([Account]='12345',Cost_Value*Quantity,0) - which does not work, because I need to see this in a Pivot with all the accounts selected&lt;BR /&gt;and also&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;(Sum(Cost_Value)*Sum({&amp;lt;[Account]={'12345'}&amp;gt;}Quantity)) which returns a non-sense high result (Probably is summing all the values and multiplying by all the quantities for which the Account corresponds to '12345') - here when I filter by product it works, but when I deselect the products I guess it is summing all the cost and then multiplying by all the qty..&lt;/P&gt;&lt;P&gt;Does anyone have a similar problem and was able to solve it?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 16:30:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-on-record-level-and-add-up-results/m-p/1782053#M60866</guid>
      <dc:creator>guibsantos</dc:creator>
      <dc:date>2021-02-11T16:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate on record level and add up results</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-on-record-level-and-add-up-results/m-p/1782568#M60925</link>
      <description>&lt;P&gt;Hi, I think this can be done in script, just join both tables or use a mapping table to have Cost_Value and quantity in the same table (I don't know the rules to join.. maybe by scenary? or by ID?) and do the calulations on script so yo have a field with the values applied, then on front-end you only need a sum of that field.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2021 12:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-on-record-level-and-add-up-results/m-p/1782568#M60925</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-02-14T12:10:31Z</dc:date>
    </item>
  </channel>
</rss>

