<?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: Tricky calculations agregations in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Tricky-calculations-agregations/m-p/1398288#M32433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think so too. Thanks anyway Sunny &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Talk to you. Bye !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stéphane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2017 14:26:54 GMT</pubDate>
    <dc:creator>stephanegrimaud</dc:creator>
    <dc:date>2017-12-12T14:26:54Z</dc:date>
    <item>
      <title>Tricky calculations agregations</title>
      <link>https://community.qlik.com/t5/App-Development/Tricky-calculations-agregations/m-p/1398284#M32429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to implement a complex statistic calculation (trust interval) but I fail on an agregation problem :&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="185116" alt="2017-11-29_17h05_09.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/185116_2017-11-29_17h05_09.png" style="height: 198px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Calculation of the &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;(ns/n2)*((Es(1-Es))+(nsSE2(ES)))&lt;/STRONG&gt;&lt;/SPAN&gt; column should be done at &lt;STRONG&gt;Groupe réadmission&lt;/STRONG&gt; level and should be able to be agregated on all others higher levels, like, here, &lt;STRONG&gt;Service&lt;/STRONG&gt; or &lt;STRONG&gt;Département&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calculation at &lt;STRONG&gt;Groupe réadmission&lt;/STRONG&gt; level is ok (in green) and can be automatically agregated but it's impossible to get the right sum at &lt;STRONG&gt;Service&lt;/STRONG&gt; level. Result is always wrong (in red).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the formula of the &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;(ns/n2)*((Es(1-Es))+(nsSE2(ES)))&lt;/STRONG&gt;&lt;/SPAN&gt; column :&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="185126" alt="2017-11-29_17h11_48.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/185126_2017-11-29_17h11_48.png" style="height: 60px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;If I do what is the most logic for me : &lt;STRONG&gt;sum(aggr( &amp;lt;the_formula&amp;gt; ,[Groupe réadmission]))&lt;/STRONG&gt; then result is different but still wrong :&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="185127" alt="2017-11-29_17h15_42.png" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/185127_2017-11-29_17h15_42.png" style="height: 144px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;It's correct only if a single &lt;STRONG&gt;Service&lt;/STRONG&gt; is selected :&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="185128" alt="2017-11-29_17h16_49.png" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/185128_2017-11-29_17h16_49.png" style="height: 134px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I don't understand. I probably miss something. If someone has an idea, I would be happy to get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stéphane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2017 16:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Tricky-calculations-agregations/m-p/1398284#M32429</guid>
      <dc:creator>stephanegrimaud</dc:creator>
      <dc:date>2017-11-29T16:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky calculations agregations</title>
      <link>https://community.qlik.com/t5/App-Development/Tricky-calculations-agregations/m-p/1398285#M32430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use Sum(Aggr(YourExpression, YourDimensions)) to fix this... also check here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/NestedAggregations/sum-of-rows-pivot-tables.htm" title="http://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/NestedAggregations/sum-of-rows-pivot-tables.htm"&gt;Sum of rows in pivot tables ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3798"&gt;Totals in Charts&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 17:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Tricky-calculations-agregations/m-p/1398285#M32430</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-11T17:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky calculations agregations</title>
      <link>https://community.qlik.com/t5/App-Development/Tricky-calculations-agregations/m-p/1398286#M32431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you're right. Actually, I tried this but difficulty was that a part of the formula has to be summed over all the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, I succeeded by adding the upper dimension on witch the sum has to be done in the context and by adding it also on the TOTAL option :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186587_pastedImage_5.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunatly, this formula can not be agregated on other dimension than the one which is specified so I have to multiply the expressions to have always the one to match where I want to use it. Here is the formula for the &lt;STRONG&gt;Département&lt;/STRONG&gt; graph, if I want to make a graph per &lt;STRONG&gt;Service&lt;/STRONG&gt; then I have to rewrite another expression with Service instead of &lt;STRONG&gt;Département&lt;/STRONG&gt; but ok, that works like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, if anyone has a better idea, I would be happy to know it.&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;&lt;/P&gt;&lt;P&gt;Stéphane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 09:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Tricky-calculations-agregations/m-p/1398286#M32431</guid>
      <dc:creator>stephanegrimaud</dc:creator>
      <dc:date>2017-12-12T09:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky calculations agregations</title>
      <link>https://community.qlik.com/t5/App-Development/Tricky-calculations-agregations/m-p/1398287#M32432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what you have is probably the best you can do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 13:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Tricky-calculations-agregations/m-p/1398287#M32432</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-12T13:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Tricky calculations agregations</title>
      <link>https://community.qlik.com/t5/App-Development/Tricky-calculations-agregations/m-p/1398288#M32433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think so too. Thanks anyway Sunny &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Talk to you. Bye !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stéphane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 14:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Tricky-calculations-agregations/m-p/1398288#M32433</guid>
      <dc:creator>stephanegrimaud</dc:creator>
      <dc:date>2017-12-12T14:26:54Z</dc:date>
    </item>
  </channel>
</rss>

