<?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: Add new record in column in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Add-new-record-in-column/m-p/2505416#M103945</link>
    <description>&lt;P&gt;Try this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FinalTable:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; If(Separation_Status = 'Opening Headcount', CT, 0) AS Opening_Headcount,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; If(Separation_Status = 'New Joinee', CT, 0) AS New_Joiners,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; If(Separation_Status = 'Voluntary' OR Separation_Status = 'Involuntary' OR Separation_Status = 'Retirement', CT, 0) AS Total_Exits,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; If(Separation_Status = 'Transfer In/Out', CT, 0) AS Transfers&lt;/P&gt;
&lt;P&gt;RESIDENT SeparationData;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DROP TABLE SeparationData;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ClosingHeadcount:&lt;/P&gt;
&lt;P&gt;LOAD&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; 'closing_headcount' AS Separation_Status,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; (Sum(Opening_Headcount) + Sum(New_Joiners) - Sum(Total_Exits) + Sum(Transfers)) AS CT&lt;/P&gt;
&lt;P&gt;RESIDENT FinalTable;&lt;/P&gt;
&lt;P&gt;Concatenate(FinalTable)&lt;/P&gt;
&lt;P&gt;LOAD * RESIDENT ClosingHeadcount;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DROP TABL&lt;SPAN&gt;E ClosingHeadcount;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 16:30:23 GMT</pubDate>
    <dc:creator>Chanty4u</dc:creator>
    <dc:date>2025-02-11T16:30:23Z</dc:date>
    <item>
      <title>Add new record in column</title>
      <link>https://community.qlik.com/t5/App-Development/Add-new-record-in-column/m-p/2505154#M103899</link>
      <description>&lt;P&gt;Hello Qlik Community,&lt;/P&gt;
&lt;P&gt;I have a QlikView pivot table with a column named &lt;STRONG&gt;Seperation_Status&lt;/STRONG&gt; that contains various records. These records are generated within the script. I need to add &lt;STRONG&gt;Closing Headcount&lt;/STRONG&gt; based on the following formula:&lt;/P&gt;
&lt;P&gt;Closing Headcount = Opening Headcount + New Joiners – Total Exits + Transfer In/Out&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="inam6713_0-1739184189452.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177375i587704EF587B9807/image-size/medium?v=v2&amp;amp;px=400" role="button" title="inam6713_0-1739184189452.png" alt="inam6713_0-1739184189452.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Could you please help me implement this at the &lt;STRONG&gt;script level&lt;/STRONG&gt; or provide a solution at the &lt;STRONG&gt;frontend level&lt;/STRONG&gt;?&lt;/P&gt;
&lt;P&gt;Thank you! &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;expected output:-&lt;/P&gt;
&lt;TABLE width="333"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="108"&gt;Seperation_Status&lt;/TD&gt;
&lt;TD width="131"&gt;Mapping Name for Tool&lt;/TD&gt;
&lt;TD width="94"&gt;CT&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;New Joinee&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Voluntary&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Involuntary&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Retirement&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;-&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Total number of Exits&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Opening Headcount&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;337&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Transfer In/Out&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG&gt;closing_headcount&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;334&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Mon, 10 Feb 2025 11:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-new-record-in-column/m-p/2505154#M103899</guid>
      <dc:creator>inam6713</dc:creator>
      <dc:date>2025-02-10T11:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add new record in column</title>
      <link>https://community.qlik.com/t5/App-Development/Add-new-record-in-column/m-p/2505173#M103905</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/294234"&gt;@inam6713&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you provide a sample data set? The "trick" here would be to build a Multiplier to change the actual value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like a Exit would be -1 and joiner would be 1. This way you can just do a sum to get the closing headcount. I also assume that Transfer In/Out would already be a negative / positive based on the "end result" - Hence the reason requesting a sample dataset.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 12:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-new-record-in-column/m-p/2505173#M103905</guid>
      <dc:creator>JandreKillianRIC</dc:creator>
      <dc:date>2025-02-10T12:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Add new record in column</title>
      <link>https://community.qlik.com/t5/App-Development/Add-new-record-in-column/m-p/2505416#M103945</link>
      <description>&lt;P&gt;Try this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FinalTable:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; If(Separation_Status = 'Opening Headcount', CT, 0) AS Opening_Headcount,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; If(Separation_Status = 'New Joinee', CT, 0) AS New_Joiners,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; If(Separation_Status = 'Voluntary' OR Separation_Status = 'Involuntary' OR Separation_Status = 'Retirement', CT, 0) AS Total_Exits,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; If(Separation_Status = 'Transfer In/Out', CT, 0) AS Transfers&lt;/P&gt;
&lt;P&gt;RESIDENT SeparationData;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DROP TABLE SeparationData;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ClosingHeadcount:&lt;/P&gt;
&lt;P&gt;LOAD&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; 'closing_headcount' AS Separation_Status,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; (Sum(Opening_Headcount) + Sum(New_Joiners) - Sum(Total_Exits) + Sum(Transfers)) AS CT&lt;/P&gt;
&lt;P&gt;RESIDENT FinalTable;&lt;/P&gt;
&lt;P&gt;Concatenate(FinalTable)&lt;/P&gt;
&lt;P&gt;LOAD * RESIDENT ClosingHeadcount;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DROP TABL&lt;SPAN&gt;E ClosingHeadcount;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 16:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-new-record-in-column/m-p/2505416#M103945</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2025-02-11T16:30:23Z</dc:date>
    </item>
  </channel>
</rss>

