<?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: Build an accumulated metric in a straight table based on multiple dimensions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Build-an-accumulated-metric-in-a-straight-table-based-on/m-p/2530557#M107829</link>
    <description>&lt;P&gt;Thanks for the response QFabian, but I need to do this on the Front-End since it has to be dynamic... any other option to do it at the object level instead of the script level?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 11 Sep 2025 16:17:23 GMT</pubDate>
    <dc:creator>charliota</dc:creator>
    <dc:date>2025-09-11T16:17:23Z</dc:date>
    <item>
      <title>Build an accumulated metric in a straight table based on multiple dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Build-an-accumulated-metric-in-a-straight-table-based-on/m-p/2530543#M107823</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I’m having trouble building a KPI in a straight table, since I need it to accumulate and reset whenever it encounters a different material code. Below is an example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="charliota_0-1757601550471.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183603i146F4F88211F23BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="charliota_0-1757601550471.png" alt="charliota_0-1757601550471.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to generate the column "Unidades Acum" and I have tried the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rangesum(above(sum(Unidades),0,RangeSum(Above(if(only(CodMaterialSAP)=above(total CodMaterialSAP),1,0), 1, RowNo()))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any idea? Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 14:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Build-an-accumulated-metric-in-a-straight-table-based-on/m-p/2530543#M107823</guid>
      <dc:creator>charliota</dc:creator>
      <dc:date>2025-09-11T14:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Build an accumulated metric in a straight table based on multiple dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Build-an-accumulated-metric-in-a-straight-table-based-on/m-p/2530556#M107828</link>
      <description>&lt;P&gt;Hola&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/114747"&gt;@charliota&lt;/a&gt;&amp;nbsp;, one option is create the accumulation in script, using inter record functions like peek() and previous()&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/es-ES/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/InterRecordFunctions/inter-record-functions-charts.htm" target="_blank"&gt;https://help.qlik.com/es-ES/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/InterRecordFunctions/inter-record-functions-charts.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example script :&lt;/P&gt;&lt;DIV&gt;Data:&lt;/DIV&gt;&lt;DIV&gt;Load * INLINE [&lt;/DIV&gt;&lt;DIV&gt;Cod Material, Almacen, Fecha Caducidad, Unidades&lt;/DIV&gt;&lt;DIV&gt;A, 1, 20/09/2025, 10&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;A, 2, 20/09/2025, 50&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;A, 3, 22/09/2025, 60&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;A, 4, 23/09/2025, 50&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;B, 5, 20/09/2025, 10&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;B, 6, 23/09/2025, 20&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;B, 7, 24/09/2025, 30&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;];&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Output:&lt;/DIV&gt;&lt;DIV&gt;Load&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; [Cod Material],&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Almacen,&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; [Fecha Caducidad],&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Unidades,&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; if([Cod Material] = &lt;FONT color="#339966"&gt;&lt;STRONG&gt;previous&lt;/STRONG&gt;&lt;/FONT&gt;([Cod Material]), Unidades + &lt;FONT color="#339966"&gt;&lt;STRONG&gt;peek&lt;/STRONG&gt;&lt;/FONT&gt;([Unidades Acumuladas]), Unidades) as [Unidades Acumuladas]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Resident Data;&lt;/DIV&gt;&lt;DIV&gt;drop table Data;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the resulting table&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_0-1757606969739.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183605iF76C553C909E579B/image-size/large?v=v2&amp;amp;px=999" role="button" title="QFabian_0-1757606969739.png" alt="QFabian_0-1757606969739.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 16:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Build-an-accumulated-metric-in-a-straight-table-based-on/m-p/2530556#M107828</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2025-09-11T16:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Build an accumulated metric in a straight table based on multiple dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Build-an-accumulated-metric-in-a-straight-table-based-on/m-p/2530557#M107829</link>
      <description>&lt;P&gt;Thanks for the response QFabian, but I need to do this on the Front-End since it has to be dynamic... any other option to do it at the object level instead of the script level?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 16:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Build-an-accumulated-metric-in-a-straight-table-based-on/m-p/2530557#M107829</guid>
      <dc:creator>charliota</dc:creator>
      <dc:date>2025-09-11T16:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Build an accumulated metric in a straight table based on multiple dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Build-an-accumulated-metric-in-a-straight-table-based-on/m-p/2530570#M107831</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/114747"&gt;@charliota&lt;/a&gt;&amp;nbsp; I almost forgot that we have accumulation as expression propertie!!!!!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_0-1757621743060.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183610i202FBDB6442EFEA2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QFabian_0-1757621743060.png" alt="QFabian_0-1757621743060.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Así queda, como la acumulación aguanta hasta 2 dimensiones, pasé la fecha como expresión :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_0-1757622790349.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/183612iE92DD55FE07469C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QFabian_0-1757622790349.png" alt="QFabian_0-1757622790349.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 20:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Build-an-accumulated-metric-in-a-straight-table-based-on/m-p/2530570#M107831</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2025-09-11T20:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Build an accumulated metric in a straight table based on multiple dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Build-an-accumulated-metric-in-a-straight-table-based-on/m-p/2530616#M107837</link>
      <description>&lt;P&gt;Thanks for the response, but it doesn’t work for me when I have 3 dimensions in the table. Any other idea?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 06:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Build-an-accumulated-metric-in-a-straight-table-based-on/m-p/2530616#M107837</guid>
      <dc:creator>charliota</dc:creator>
      <dc:date>2025-09-12T06:20:11Z</dc:date>
    </item>
  </channel>
</rss>

