<?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 use subtotal in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/use-subtotal-in-an-expression/m-p/225263#M77594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i have a pivot table with 2 dimensions and 3 expressions&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3082_sourceID:3082" /&gt;&lt;/P&gt;&lt;P&gt;example :&lt;/P&gt;&lt;P&gt;tt = subtotal of budget marketing for Code_RAy =10 *(CAHT) / subtotal of CAHT for Code_Ray=10&lt;/P&gt;&lt;P&gt;tt=( 54045,1315 * 1604318,866)/1675839,636&lt;/P&gt;&lt;P&gt;what function returns the subtotal field value ???&lt;/P&gt;&lt;P&gt;how to calculate this expression???&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Dec 2010 12:27:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-16T12:27:19Z</dc:date>
    <item>
      <title>use subtotal in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/use-subtotal-in-an-expression/m-p/225263#M77594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i have a pivot table with 2 dimensions and 3 expressions&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3082_sourceID:3082" /&gt;&lt;/P&gt;&lt;P&gt;example :&lt;/P&gt;&lt;P&gt;tt = subtotal of budget marketing for Code_RAy =10 *(CAHT) / subtotal of CAHT for Code_Ray=10&lt;/P&gt;&lt;P&gt;tt=( 54045,1315 * 1604318,866)/1675839,636&lt;/P&gt;&lt;P&gt;what function returns the subtotal field value ???&lt;/P&gt;&lt;P&gt;how to calculate this expression???&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 12:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-subtotal-in-an-expression/m-p/225263#M77594</guid>
      <dc:creator />
      <dc:date>2010-12-16T12:27:19Z</dc:date>
    </item>
    <item>
      <title>use subtotal in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/use-subtotal-in-an-expression/m-p/225264#M77595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i found the answer to my question: the use of the function dimensionality&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(if(Dimensionality()=2,sum(total &amp;lt;Code_Ray,Code_Etab&amp;gt; Budget marketing),if(Dimensionality()=1,sum(Total &amp;lt;Code_Ray&amp;gt; Budget marketing),sum(Total Budget marketing)))*sum(CAHT)))&lt;/P&gt;&lt;P&gt;/if(Dimensionality()=2,sum(total &amp;lt;Code_Ray,Code_Etab&amp;gt; CAHT),if(Dimensionality()=1,sum(Total &amp;lt;Code_Ray&amp;gt; CAHT)),sum(Total CAHT)))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 14:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/use-subtotal-in-an-expression/m-p/225264#M77595</guid>
      <dc:creator />
      <dc:date>2010-12-16T14:46:18Z</dc:date>
    </item>
  </channel>
</rss>

