<?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: Dynamice Total &amp;lt;&amp;gt; in a pivot table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamic-Total-lt-gt-in-a-pivot-table/m-p/2439278#M97154</link>
    <description>&lt;P&gt;You may query the dimensionality and then branching into the wanted expression, maybe like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum(measure) / pick(match(dimensionality(), 0,1,2),&lt;BR /&gt;&amp;nbsp; &amp;nbsp;sum(total&amp;lt;quarter&amp;gt; measure),&lt;BR /&gt;&amp;nbsp; &amp;nbsp;sum(total&amp;lt;quarter, X&amp;gt; measure),&lt;BR /&gt;&amp;nbsp; &amp;nbsp;sum(total&amp;lt;quarter, X, Y&amp;gt; measure))&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2024 10:47:02 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2024-04-09T10:47:02Z</dc:date>
    <item>
      <title>Dynamic Total &lt;&gt; in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Total-lt-gt-in-a-pivot-table/m-p/2439227#M97153</link>
      <description>&lt;P&gt;Hello I got a pivot table in which I want to calculate the investment sum and a ratio&lt;BR /&gt;suppose my expression for Investment is sum(measure)&lt;BR /&gt;and the expression of the ratio is sum(measure) / sum(total&amp;lt;Quarter, Investment Type,...&amp;gt; measure)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ali_hijazi_0-1712653773865.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163723iB774B8A2E8777ECB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ali_hijazi_0-1712653773865.jpeg" alt="ali_hijazi_0-1712653773865.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have a problem in the calculation of the Ratio&lt;BR /&gt;when the dimensionality is 2 (Investment type) then the denominator in the expression of the Ratio should be&lt;BR /&gt;sum(measure) / sum(total&amp;lt;quarter&amp;gt; measure)&lt;BR /&gt;when the dimensionality is 3 like at the level of ISBM or NFR the ratio should be:&lt;BR /&gt;sum(measure / sum(total &amp;lt;quarter, InvestmentType&amp;gt;measure)&lt;BR /&gt;and&amp;nbsp; when the dimensionality is 4 like where there is MX3 ISBM1.... the expression should be&lt;BR /&gt;sum(measure / sum(total &amp;lt;quarter, InvetmentType, InvestmentName&amp;gt; measure)&lt;BR /&gt;and so on...&lt;BR /&gt;&lt;BR /&gt;kindly advise on how to accomplish this&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 11:13:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Total-lt-gt-in-a-pivot-table/m-p/2439227#M97153</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2024-04-09T11:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamice Total &lt;&gt; in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Total-lt-gt-in-a-pivot-table/m-p/2439278#M97154</link>
      <description>&lt;P&gt;You may query the dimensionality and then branching into the wanted expression, maybe like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sum(measure) / pick(match(dimensionality(), 0,1,2),&lt;BR /&gt;&amp;nbsp; &amp;nbsp;sum(total&amp;lt;quarter&amp;gt; measure),&lt;BR /&gt;&amp;nbsp; &amp;nbsp;sum(total&amp;lt;quarter, X&amp;gt; measure),&lt;BR /&gt;&amp;nbsp; &amp;nbsp;sum(total&amp;lt;quarter, X, Y&amp;gt; measure))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 10:47:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Total-lt-gt-in-a-pivot-table/m-p/2439278#M97154</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-04-09T10:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamice Total &lt;&gt; in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Total-lt-gt-in-a-pivot-table/m-p/2439286#M97155</link>
      <description>&lt;P&gt;I tried this but the thing is that the order of dimension can be changed by the user&lt;BR /&gt;i also tried the GetObjectDimension function&lt;BR /&gt;it works without actually specifying the actual name of the dimension&lt;BR /&gt;However now I want to generate $(=GetObjectDimension($1)) dpending on the dimensionality&lt;BR /&gt;something I'm unable to accomplish&lt;BR /&gt;using the GetObjectDimension will make it easier when user changes the order of dimension,&lt;BR /&gt;but I need something to generate $(=GetObjectDimension(0)), $(=GetObjectDimension(1)) when Dimensionality() = 2 and so on&lt;/P&gt;
&lt;DIV&gt;sum&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; total&amp;lt;$(=GetObjectDimension(0)),$(=GetObjectDimension(1))&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SOURCE={MANDAYS_TIMES_DW}&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,[Sub-Category]-={"*"}-{"is train","mx train"}&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,[Consultant Division ID]={PRDCTDIV}&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,DISPLAY_RECORD={1}&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,[Epic/CBR Type]-={"Other","Program**Production Staging"}&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MAN_DAYS&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; )&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Apr 2024 11:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Total-lt-gt-in-a-pivot-table/m-p/2439286#M97155</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2024-04-09T11:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamice Total &lt;&gt; in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Total-lt-gt-in-a-pivot-table/m-p/2439298#M97158</link>
      <description>&lt;P&gt;The following didn't return the used dimensions in regard to the dimensionality() ?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;pick(match(dimensionality(), 0,1,2),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; GetObjectDimension(0),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; GetObjectDimension(0) &amp;amp; ', ' &amp;amp; GetObjectDimension(1),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; GetObjectDimension(0) &amp;amp; ', ' &amp;amp; GetObjectDimension(1)&amp;amp; ', ' &amp;amp; GetObjectDimension(2))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 11:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Total-lt-gt-in-a-pivot-table/m-p/2439298#M97158</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-04-09T11:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamice Total &lt;&gt; in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamic-Total-lt-gt-in-a-pivot-table/m-p/2439315#M97159</link>
      <description>&lt;P&gt;well yes I was almost there&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 11:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamic-Total-lt-gt-in-a-pivot-table/m-p/2439315#M97159</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2024-04-09T11:53:48Z</dc:date>
    </item>
  </channel>
</rss>

