<?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: Pivot Table- sum consecutive rows in a pivot table and add it as another/new row in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pivot-Table-sum-consecutive-rows-in-a-pivot-table-and-add-it-as/m-p/2445436#M97648</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/259678"&gt;@jchx&lt;/a&gt;&amp;nbsp; thank you appreciate your help.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2024 20:12:44 GMT</pubDate>
    <dc:creator>vrk2024</dc:creator>
    <dc:date>2024-04-26T20:12:44Z</dc:date>
    <item>
      <title>Pivot Table- sum consecutive rows in a pivot table and add it as another/new row</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-sum-consecutive-rows-in-a-pivot-table-and-add-it-as/m-p/2444577#M97584</link>
      <description>&lt;P&gt;All,&lt;BR /&gt;I am new to Qlik and wondering if this is possible to acheive in qlik sense. &lt;BR /&gt;Requirement:&lt;/P&gt;
&lt;P&gt;sum consecutive rows in a pivot table and add it as another/new row.&lt;/P&gt;
&lt;P&gt;Please see the attached for sample data reference.&lt;/P&gt;
&lt;P&gt;For example in the attached qvf .. i want to sum MMR + NAT i.e 10000+670 and add the sum 10670 as a new row below it .&lt;/P&gt;
&lt;P&gt;MMR&lt;/P&gt;
&lt;P&gt;NAT &lt;BR /&gt;MMR+NAT &lt;BR /&gt;PC&lt;BR /&gt;TAR&lt;BR /&gt;ULP&lt;/P&gt;
&lt;P&gt;I want to do this for multiple rows and the data set will be static data set .&lt;/P&gt;
&lt;P&gt;Please let know if the requirement is not clear, appreciate any help or guidance on this.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;BR /&gt;RV&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 02:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-sum-consecutive-rows-in-a-pivot-table-and-add-it-as/m-p/2444577#M97584</guid>
      <dc:creator>vrk2024</dc:creator>
      <dc:date>2024-04-25T02:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table- sum consecutive rows in a pivot table and add it as another/new row</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-sum-consecutive-rows-in-a-pivot-table-and-add-it-as/m-p/2444640#M97588</link>
      <description>&lt;P&gt;You could use pick wildmatch to create a new dimension group (ITEM_GRP) then add it to the pivot table. Gotta switch up the presentation settings too (See screenies)&lt;/P&gt;
&lt;P&gt;=pick(wildmatch(&lt;BR /&gt;ITEM&lt;BR /&gt;,'MMR'&lt;BR /&gt;,'NAT'&lt;BR /&gt;,'PC'&lt;BR /&gt;,'TAR'&lt;BR /&gt;,'ULP'&lt;BR /&gt;)&lt;BR /&gt;,'MMR+NAT'&lt;BR /&gt;,'MMR+NAT'&lt;BR /&gt;,'PC'&lt;BR /&gt;,'TAR'&lt;BR /&gt;,'ULP'&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 07:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-sum-consecutive-rows-in-a-pivot-table-and-add-it-as/m-p/2444640#M97588</guid>
      <dc:creator>jchx</dc:creator>
      <dc:date>2024-04-25T07:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table- sum consecutive rows in a pivot table and add it as another/new row</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-sum-consecutive-rows-in-a-pivot-table-and-add-it-as/m-p/2444755#M97597</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/259678"&gt;@jchx&lt;/a&gt;&amp;nbsp; thank your for the quick response, i will try this and update.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 11:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-sum-consecutive-rows-in-a-pivot-table-and-add-it-as/m-p/2444755#M97597</guid>
      <dc:creator>vrk2024</dc:creator>
      <dc:date>2024-04-25T11:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table- sum consecutive rows in a pivot table and add it as another/new row</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-sum-consecutive-rows-in-a-pivot-table-and-add-it-as/m-p/2445054#M97609</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/259678"&gt;@jchx&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;BR /&gt;Sorry i am new to Qlik Scripting and not sure if i am doing it right. I tried to write the below expression but unofrtunately i am not getting the expected output. Please could you take a look at the attached qvf.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I have created the ITEM_Grp new dimension using the below expression.&lt;/P&gt;
&lt;P&gt;=pick(wildmatch(&lt;BR /&gt;ITEM&lt;BR /&gt;,'CAL'&lt;BR /&gt;, 'DAR'&lt;BR /&gt;, 'DAT'&lt;BR /&gt;, 'KCM'&lt;BR /&gt;, 'KLM'&lt;BR /&gt;, 'LAG'&lt;BR /&gt;, 'LAT'&lt;BR /&gt;, 'LLM'&lt;BR /&gt;, 'MAR' &lt;BR /&gt;, 'MKF'&lt;BR /&gt;,'MMR'&lt;BR /&gt;,'NAT'&lt;BR /&gt;,'PC'&lt;BR /&gt;,'TAR'&lt;BR /&gt;,'ULP'&lt;BR /&gt;)&lt;BR /&gt;,'CAL'&lt;BR /&gt;, 'DAR'&lt;BR /&gt;, 'DAT'&lt;BR /&gt;, 'KCM'&lt;BR /&gt;, 'KLM'&lt;BR /&gt;, 'LAG'&lt;BR /&gt;, 'LAT'&lt;BR /&gt;, 'LLM'&lt;BR /&gt;, 'MAR' &lt;BR /&gt;, 'MKF'&lt;BR /&gt;,' MMR+NAT'&lt;BR /&gt;,'MMR+NAT'&lt;BR /&gt;,'PC'&lt;BR /&gt;,'TAR'&lt;BR /&gt;,'ULP'&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected output&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I want to sum consecutive rows like MMR+NAT and add a new row. I want to perform this on multiple selective rows. eg:&lt;/P&gt;
&lt;P&gt;MAR + MFK (3000+45=3045)&lt;/P&gt;
&lt;P&gt;MMR+NAT (10000+670=10,670)&lt;/P&gt;
&lt;P&gt;Please could you help with the syntax for the same. I really appreciate your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see the attached qvf for reference.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 21:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-sum-consecutive-rows-in-a-pivot-table-and-add-it-as/m-p/2445054#M97609</guid>
      <dc:creator>vrk2024</dc:creator>
      <dc:date>2024-04-25T21:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table- sum consecutive rows in a pivot table and add it as another/new row</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-sum-consecutive-rows-in-a-pivot-table-and-add-it-as/m-p/2445075#M97611</link>
      <description>&lt;P&gt;Just do the same in the pick wildmatch for other rows you want to sum up:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=pick(wildmatch(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ITEM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,'CAL'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;, 'DAR'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;, 'D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;/STRONG&gt;'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,' MMR+NAT'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,'MMR+NAT'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,'PC'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,'TAR'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,'ULP'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The first part of the expression picks up the original variable and the later part buckets it into the respective new categories that you've created.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 02:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-sum-consecutive-rows-in-a-pivot-table-and-add-it-as/m-p/2445075#M97611</guid>
      <dc:creator>jchx</dc:creator>
      <dc:date>2024-04-26T02:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table- sum consecutive rows in a pivot table and add it as another/new row</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-sum-consecutive-rows-in-a-pivot-table-and-add-it-as/m-p/2445436#M97648</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/259678"&gt;@jchx&lt;/a&gt;&amp;nbsp; thank you appreciate your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 20:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-sum-consecutive-rows-in-a-pivot-table-and-add-it-as/m-p/2445436#M97648</guid>
      <dc:creator>vrk2024</dc:creator>
      <dc:date>2024-04-26T20:12:44Z</dc:date>
    </item>
  </channel>
</rss>

