<?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: Conditional sum in a pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-sum-in-a-pivot-table/m-p/511823#M191229</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;Arrive a flag in script like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD Dim1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Level, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Sun_Max.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, header is 1 lines, table is Hoja3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Dim1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month1,&lt;/P&gt;&lt;P&gt;Max(Level) AS Level,&lt;/P&gt;&lt;P&gt;1 AS Flag&lt;/P&gt;&lt;P&gt;RESIDENT Data&lt;/P&gt;&lt;P&gt;GROUP BY Dim1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this expression to get only max Level values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Flag={1}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Dec 2013 03:22:03 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2013-12-20T03:22:03Z</dc:date>
    <item>
      <title>Conditional sum in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-sum-in-a-pivot-table/m-p/511822#M191228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to sum the highest level values (in grey) in the pivot table table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="coditional_sum.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/50700_coditional_sum.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I have tried several strategies with set analysis,, aggr event with if.... none has worked.. (see qvw attached)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance....!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Juan C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 00:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-sum-in-a-pivot-table/m-p/511822#M191228</guid>
      <dc:creator>juan_c_martinez</dc:creator>
      <dc:date>2013-12-20T00:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional sum in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-sum-in-a-pivot-table/m-p/511823#M191229</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;Arrive a flag in script like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD Dim1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Level, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Sun_Max.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, header is 1 lines, table is Hoja3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Dim1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month1,&lt;/P&gt;&lt;P&gt;Max(Level) AS Level,&lt;/P&gt;&lt;P&gt;1 AS Flag&lt;/P&gt;&lt;P&gt;RESIDENT Data&lt;/P&gt;&lt;P&gt;GROUP BY Dim1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this expression to get only max Level values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Flag={1}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 03:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-sum-in-a-pivot-table/m-p/511823#M191229</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-12-20T03:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional sum in a pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-sum-in-a-pivot-table/m-p/511824#M191230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution works fine in case of the Dim1 and DIm2 were fixed. But the solution I look for should work for any combination of dimensions (in the real scenery are 5 dimensions and the user always wants to see by any combination of dimension the sum of the cases with highest level of priority ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution should came using set analysis in combination with the dolar-sign expansion but unfortunately the function inside the dolar-sign is evaluated outside the pivot table and then it doesn't take in account the level according to the combination of dimensions existing in the cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="50735" alt="dolar.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/50735_dolar.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thanks,&lt;/P&gt;&lt;P&gt;Juan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 13:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-sum-in-a-pivot-table/m-p/511824#M191230</guid>
      <dc:creator>juan_c_martinez</dc:creator>
      <dc:date>2013-12-20T13:05:14Z</dc:date>
    </item>
  </channel>
</rss>

