<?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: Pivot table sums are incorrect in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pivot-table-sums-are-incorrect/m-p/2490356#M101916</link>
    <description>&lt;P&gt;I solved this issue by wrapping my measure expression in a sum(aggr() function and listing all possible categories for the visual. New formula for measure is below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sum(aggr((if (Index(concat(CorrDimNum),'d')&amp;gt;0,&lt;BR /&gt;if(LocationType = 'S' ,&lt;BR /&gt;sum(CorrSqFeetShipped),&lt;BR /&gt;Sum(CorrGoodSqFeetProduced)),&lt;BR /&gt;Sum({$&amp;lt;[LocationType]-={'S'}&amp;gt;}CorrGoodSqFeetProduced))),SalesRegionName,SalesAreaName,PlantName,CorrWorkWeek))&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2024 14:48:12 GMT</pubDate>
    <dc:creator>khadijaceesay</dc:creator>
    <dc:date>2024-11-01T14:48:12Z</dc:date>
    <item>
      <title>Pivot table sums are incorrect</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-sums-are-incorrect/m-p/2490168#M101902</link>
      <description>&lt;P&gt;I created a measure with the expression below and added it to a pivot table:&lt;/P&gt;
&lt;P&gt;if (Index(concat(CorrDimNum),'d')&amp;gt;0,&lt;BR /&gt;if(LocationType = 'S' ,&lt;BR /&gt;sum(CorrSqFeetShipped),&lt;BR /&gt;Sum(CorrGoodSqFeetProduced)&lt;BR /&gt;),Sum({$&amp;lt;[LocationType]-={'S'}&amp;gt;}CorrGoodSqFeetProduced))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;For some reason the subtotal rows when I collapse the pivot table are not properly summing the rows within the section. Total shows&amp;nbsp;90,340,989 instead of&amp;nbsp;96,900,981. Any idea how I can fix this?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="khadijaceesay_0-1730384136806.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173640iC82E0AFE6464253F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="khadijaceesay_0-1730384136806.png" alt="khadijaceesay_0-1730384136806.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 14:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-sums-are-incorrect/m-p/2490168#M101902</guid>
      <dc:creator>khadijaceesay</dc:creator>
      <dc:date>2024-10-31T14:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sums are incorrect</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-sums-are-incorrect/m-p/2490356#M101916</link>
      <description>&lt;P&gt;I solved this issue by wrapping my measure expression in a sum(aggr() function and listing all possible categories for the visual. New formula for measure is below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sum(aggr((if (Index(concat(CorrDimNum),'d')&amp;gt;0,&lt;BR /&gt;if(LocationType = 'S' ,&lt;BR /&gt;sum(CorrSqFeetShipped),&lt;BR /&gt;Sum(CorrGoodSqFeetProduced)),&lt;BR /&gt;Sum({$&amp;lt;[LocationType]-={'S'}&amp;gt;}CorrGoodSqFeetProduced))),SalesRegionName,SalesAreaName,PlantName,CorrWorkWeek))&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 14:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-sums-are-incorrect/m-p/2490356#M101916</guid>
      <dc:creator>khadijaceesay</dc:creator>
      <dc:date>2024-11-01T14:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table sums are incorrect</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-sums-are-incorrect/m-p/2490364#M101917</link>
      <description>&lt;P&gt;Superb !!! Neat Solution.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 15:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-sums-are-incorrect/m-p/2490364#M101917</guid>
      <dc:creator>seanbruton</dc:creator>
      <dc:date>2024-11-01T15:42:47Z</dc:date>
    </item>
  </channel>
</rss>

