<?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: RangeSum in Pivot Table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/RangeSum-in-Pivot-Table/m-p/2024416#M84508</link>
    <description>&lt;P&gt;ok I have found&lt;/P&gt;
&lt;P&gt;if(dimensionality() = 1, &lt;BR /&gt;min( total &amp;lt;Denominazione,DATA_CALENDARIO&amp;gt; Aggr(&lt;BR /&gt;(SOGLIA_TEMP_KPI_A - SUM(CABINA_INATTIVA)*PERC_A) - rangesum(above(total sum(ANOMALIE_KPI_A_SNAM), 0, rowNo()))&lt;BR /&gt;, Denominazione, (DATA_CALENDARIO, (Ascending))))&lt;BR /&gt;,if( dimensionality()= 2,&lt;BR /&gt;(SOGLIA_TEMP_KPI_A - SUM(CABINA_INATTIVA)*PERC_A) - rangesum(above(total sum(ANOMALIE_KPI_A_SNAM), 0, rowNo())))&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2023 14:28:30 GMT</pubDate>
    <dc:creator>Roberto03</dc:creator>
    <dc:date>2023-01-11T14:28:30Z</dc:date>
    <item>
      <title>RangeSum in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-in-Pivot-Table/m-p/2024254#M84502</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have created a pivot table with 2 dimensions 'Denominazione' and 'Month(Data_Calendario)'&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The measure&amp;nbsp; (GG_ Franchigia_KPI_A) is calulated as follow:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SOGLIA_TEMP_KPI_A - SUM(CABINA_INATTIVA)*PERC_A) - rangesum(above(total sum(ANOMALIE_KPI_A_SNAM), 0, rowNo()))&lt;/P&gt;
&lt;P&gt;where the value "SOGLIA_TEMP_KPI_A - SUM(CABINA_INATTIVA)*PERC_A) "&lt;/P&gt;
&lt;P&gt;is progressively reduced on the basis of "rangesum(above(total sum(KPI_A_SNAM) ANOMALIES), 0, rowNo()) " values.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Roberto03_1-1673433515380.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97762i5F7DC06406433F93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Roberto03_1-1673433515380.png" alt="Roberto03_1-1673433515380.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;however I can't get the maximum value (-26.25) to appear in the pivot totals row at the top&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Roberto03_2-1673433813244.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97764i8BAFF914AEB53128/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Roberto03_2-1673433813244.png" alt="Roberto03_2-1673433813244.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Max(TOTAL Aggr(&lt;/P&gt;
&lt;P&gt;(SOGLIA_TEMP_KPI_A - SUM(CABINA_INATTIVA)*PERC_A) - rangesum(above(total sum(ANOMALIE_KPI_A_SNAM), 0, rowNo()))&lt;/P&gt;
&lt;P&gt;, Denominazione))&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;min( total &amp;lt;Denominazione,DATA_CALENDARIO&amp;gt; Aggr(&lt;/P&gt;
&lt;P&gt;(SOGLIA_TEMP_KPI_A - SUM(CABINA_INATTIVA)*PERC_A) - rangesum(above(total sum(ANOMALIE_KPI_A_SNAM), 0, rowNo()))&lt;/P&gt;
&lt;P&gt;, Denominazione, (DATA_CALENDARIO, (Ascending))))&lt;/P&gt;
&lt;P&gt;but i only have the max value in all cells&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Roberto03_3-1673434006497.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97766iB751A960B87A8E2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Roberto03_3-1673434006497.png" alt="Roberto03_3-1673434006497.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thx in advance&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 11:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-in-Pivot-Table/m-p/2024254#M84502</guid>
      <dc:creator>Roberto03</dc:creator>
      <dc:date>2023-01-11T11:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-in-Pivot-Table/m-p/2024399#M84506</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/187030"&gt;@Roberto03&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can use the dimensionality() function, to choose from two different expressions?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ElinR_0-1673446073640.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97801i7FEADB45EE9257DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ElinR_0-1673446073640.png" alt="ElinR_0-1673446073640.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 14:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-in-Pivot-Table/m-p/2024399#M84506</guid>
      <dc:creator>E_Røse</dc:creator>
      <dc:date>2023-01-11T14:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-in-Pivot-Table/m-p/2024405#M84507</link>
      <description>&lt;P&gt;THANKS&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/132840"&gt;@E_Røse&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how it work, from the pics I can not see the formula.&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 14:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-in-Pivot-Table/m-p/2024405#M84507</guid>
      <dc:creator>Roberto03</dc:creator>
      <dc:date>2023-01-11T14:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: RangeSum in Pivot Table</title>
      <link>https://community.qlik.com/t5/App-Development/RangeSum-in-Pivot-Table/m-p/2024416#M84508</link>
      <description>&lt;P&gt;ok I have found&lt;/P&gt;
&lt;P&gt;if(dimensionality() = 1, &lt;BR /&gt;min( total &amp;lt;Denominazione,DATA_CALENDARIO&amp;gt; Aggr(&lt;BR /&gt;(SOGLIA_TEMP_KPI_A - SUM(CABINA_INATTIVA)*PERC_A) - rangesum(above(total sum(ANOMALIE_KPI_A_SNAM), 0, rowNo()))&lt;BR /&gt;, Denominazione, (DATA_CALENDARIO, (Ascending))))&lt;BR /&gt;,if( dimensionality()= 2,&lt;BR /&gt;(SOGLIA_TEMP_KPI_A - SUM(CABINA_INATTIVA)*PERC_A) - rangesum(above(total sum(ANOMALIE_KPI_A_SNAM), 0, rowNo())))&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 14:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RangeSum-in-Pivot-Table/m-p/2024416#M84508</guid>
      <dc:creator>Roberto03</dc:creator>
      <dc:date>2023-01-11T14:28:30Z</dc:date>
    </item>
  </channel>
</rss>

