<?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: Different partial sum in Pivot table based on dimensionality in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Different-partial-sum-in-Pivot-table-based-on-dimensionality/m-p/1105664#M912375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Dimensionality() = 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Aggr( YourExpression2, Dim1, Dim2)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Sum(Aggr( If( YourExpression1 &amp;lt;&amp;gt;0, YourExpression2), Dim1, Dim2))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jun 2016 14:07:58 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-06-01T14:07:58Z</dc:date>
    <item>
      <title>Different partial sum in Pivot table based on dimensionality</title>
      <link>https://community.qlik.com/t5/QlikView/Different-partial-sum-in-Pivot-table-based-on-dimensionality/m-p/1105663#M912374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;I have a pivot table with rows zero suppressed based on below condition for second expression:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(exp1&amp;lt;&amp;gt;0, exp2)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;there are 2 dimensions and i have a requirement to write different partial sum expression based on dimensionality.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1) for partial sum on dim1, i.e dimensionality=0, it should sum up all the values that exp2 evaluates to, even when exp1=0.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2) for partial sum on dim2, i.e dimensionality=1,. it should sum up only those values that exp2 evaluates to , when exp1 &amp;lt;&amp;gt;0&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please refer to sample table image attached. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Total at level 2 should only add those exp2 values where exp1&amp;lt;&amp;gt;0 , hence 40. Total at level 1 should add up all values for exp2, even when value for exp1 =0, hence it should be 80.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please let me know how i can achieve this&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/Different-partial-sum-in-Pivot-table-based-on-dimensionality/m-p/1105663#M912374</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Different partial sum in Pivot table based on dimensionality</title>
      <link>https://community.qlik.com/t5/QlikView/Different-partial-sum-in-Pivot-table-based-on-dimensionality/m-p/1105664#M912375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Dimensionality() = 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Aggr( YourExpression2, Dim1, Dim2)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Sum(Aggr( If( YourExpression1 &amp;lt;&amp;gt;0, YourExpression2), Dim1, Dim2))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 14:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-partial-sum-in-Pivot-table-based-on-dimensionality/m-p/1105664#M912375</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-01T14:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Different partial sum in Pivot table based on dimensionality</title>
      <link>https://community.qlik.com/t5/QlikView/Different-partial-sum-in-Pivot-table-based-on-dimensionality/m-p/1105665#M912376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!that worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 01:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-partial-sum-in-Pivot-table-based-on-dimensionality/m-p/1105665#M912376</guid>
      <dc:creator />
      <dc:date>2016-06-02T01:59:34Z</dc:date>
    </item>
  </channel>
</rss>

