<?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: Problem with aggr() in pivot table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Problem-with-aggr-in-pivot-table/m-p/1582310#M42571</link>
    <description>&lt;P&gt;You can also try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(TOTAL &amp;lt;DPT_NUM_DEP_ARR&amp;gt; {&amp;lt;OTSTYPE = {'OT'}&amp;gt;} 1)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 20 May 2019 15:24:05 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-05-20T15:24:05Z</dc:date>
    <item>
      <title>Problem with aggr() in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-aggr-in-pivot-table/m-p/1582265#M42566</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I have a problem to calculate 'TOT_OT'&lt;/P&gt;&lt;P&gt;TOT_OT = NB_OT for dimension 'ALLER/RETOUR' = ALLER + RETOUR&lt;/P&gt;&lt;P&gt;It works for 'ALLER' but there is nothing for 'RETOUR'. Is it a bug ??&lt;/P&gt;&lt;P&gt;The formula is :&amp;nbsp;aggr(Sum(if(OTSTYPE = 'OT',1,0)),DPT_NUM_DEP_ARR)&lt;/P&gt;&lt;P&gt;I aggregate the sum on DPT_NUM_DEP_ARR. Here is '14-59'&lt;/P&gt;&lt;P&gt;Why does it work perfectly for the first value 'ALLER' of the dimension 'ALLER/RETOUR' and not for the second one ??&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prob_qlik_aggr_pivot_table.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12360i13FD0D32DA418265/image-size/large?v=v2&amp;amp;px=999" role="button" title="prob_qlik_aggr_pivot_table.jpg" alt="prob_qlik_aggr_pivot_table.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-aggr-in-pivot-table/m-p/1582265#M42566</guid>
      <dc:creator>olivier_vincon</dc:creator>
      <dc:date>2024-11-16T05:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggr() in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-aggr-in-pivot-table/m-p/1582306#M42570</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;when using an aggr function , it disregards the dimensions in the table and only uses the dimensions in your function&amp;nbsp;&lt;/P&gt;&lt;P&gt;so it will put the result only once in the other dimensions&amp;nbsp;&lt;/P&gt;&lt;P&gt;you need to change the function to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;aggr(nodistinct&amp;nbsp; Sum(if(OTSTYPE = 'OT',1,0)),DPT_NUM_DEP_ARR)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;this will put the same value in all fields&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 15:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-aggr-in-pivot-table/m-p/1582306#M42570</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2019-05-20T15:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggr() in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-aggr-in-pivot-table/m-p/1582310#M42571</link>
      <description>&lt;P&gt;You can also try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum(TOTAL &amp;lt;DPT_NUM_DEP_ARR&amp;gt; {&amp;lt;OTSTYPE = {'OT'}&amp;gt;} 1)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 May 2019 15:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-aggr-in-pivot-table/m-p/1582310#M42571</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-20T15:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggr() in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-aggr-in-pivot-table/m-p/1582508#M42588</link>
      <description>&lt;P&gt;Yes, it was the problem !! I have forced with &lt;STRONG&gt;nodistinct&lt;/STRONG&gt; in the formula and it works perfectly !&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 06:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-aggr-in-pivot-table/m-p/1582508#M42588</guid>
      <dc:creator>olivier_vincon</dc:creator>
      <dc:date>2019-05-21T06:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggr() in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-aggr-in-pivot-table/m-p/1582509#M42589</link>
      <description>Hi Sunny, i had already tried it but DPT_NUM_DEP_ARR and ALLER/RETOUR are together calculated dimension depended on the same dimension behind. So it added not by row but for all the chart.&lt;BR /&gt;I see you on all the post. It was my first post and you answered to me !! Good performance !!&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 21 May 2019 06:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-aggr-in-pivot-table/m-p/1582509#M42589</guid>
      <dc:creator>olivier_vincon</dc:creator>
      <dc:date>2019-05-21T06:31:14Z</dc:date>
    </item>
  </channel>
</rss>

