<?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 Calculate Column in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculate-Column/m-p/1578355#M42144</link>
    <description>&lt;P&gt;What I would like to do if possible is to get the sum total minus value and the sum total possitive value from a column in the table&lt;/P&gt;&lt;P&gt;the expression for the field is&lt;/P&gt;&lt;P&gt;=num((aggr(sum(TOTQTY),PART_NUMBER) -aggr(sum({&amp;lt;[HM000_WAREHOUSE]={1}&amp;gt;}[HM000_MOHTQ]),PART_NUMBER,[LOCATIONS-SYNONM],Planner))*[Standard Cost],'£#,##0.00;-£#,##0.00')&lt;/P&gt;&lt;P&gt;any help would be&amp;nbsp; greatly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2019 10:44:56 GMT</pubDate>
    <dc:creator>Eaun</dc:creator>
    <dc:date>2019-05-09T10:44:56Z</dc:date>
    <item>
      <title>Calculate Column</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Column/m-p/1578355#M42144</link>
      <description>&lt;P&gt;What I would like to do if possible is to get the sum total minus value and the sum total possitive value from a column in the table&lt;/P&gt;&lt;P&gt;the expression for the field is&lt;/P&gt;&lt;P&gt;=num((aggr(sum(TOTQTY),PART_NUMBER) -aggr(sum({&amp;lt;[HM000_WAREHOUSE]={1}&amp;gt;}[HM000_MOHTQ]),PART_NUMBER,[LOCATIONS-SYNONM],Planner))*[Standard Cost],'£#,##0.00;-£#,##0.00')&lt;/P&gt;&lt;P&gt;any help would be&amp;nbsp; greatly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 10:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Column/m-p/1578355#M42144</guid>
      <dc:creator>Eaun</dc:creator>
      <dc:date>2019-05-09T10:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Column</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Column/m-p/1578509#M42172</link>
      <description>&lt;P&gt;Hi Eaun,&lt;/P&gt;&lt;P&gt;The reason why this is not working, is because you are creating two arrays and subtracting them from each other. Try to put a sum around the aggrs:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=num(Sum(aggr(sum(TOTQTY),PART_NUMBER)) - Sum(aggr(sum({&amp;lt;[HM000_WAREHOUSE]={1}&amp;gt;}[HM000_MOHTQ]),PART_NUMBER,[LOCATIONS-SYNONM],Planner))*[Standard Cost],'£#,##0.00;-£#,##0.00')&lt;/LI-CODE&gt;&lt;P&gt;Jordy&lt;/P&gt;&lt;P&gt;Climber&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 14:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Column/m-p/1578509#M42172</guid>
      <dc:creator>JordyWegman</dc:creator>
      <dc:date>2019-05-09T14:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Column</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Column/m-p/1578575#M42184</link>
      <description>&lt;P&gt;Thanks that worked&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 15:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Column/m-p/1578575#M42184</guid>
      <dc:creator>Eaun</dc:creator>
      <dc:date>2019-05-09T15:15:04Z</dc:date>
    </item>
  </channel>
</rss>

