<?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: Total column in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562396#M597682</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;Table1:
LOAD Month, 
     Company, 
     KPI, 
     Data
FROM Sample.xlsx
(ooxml, embedded labels);

Join (Table1)
LOAD Month,
	 KPI,
	 Sum(Data) as Total
Resident Table1
Group By Month, KPI;&lt;/PRE&gt;&lt;P&gt;or try this in the front end as an expression&lt;/P&gt;&lt;PRE&gt;Sum(TOTAL &amp;lt;Month, KPI&amp;gt; Data)&lt;/PRE&gt;</description>
    <pubDate>Thu, 28 Mar 2019 12:00:26 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-03-28T12:00:26Z</dc:date>
    <item>
      <title>Total column in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562325#M597674</link>
      <description>&lt;P&gt;Hello, I'm new to Qlikview so this might be easy.&lt;/P&gt;&lt;P&gt;I have a set of data the includes several KPIs for several companies per month. Below is a simplified example showing 3 KPIs for 2 companies in 2 months.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 307px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/9017iFC08FDBC3BEDD17C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to add a 'Total' column to show the total value of a KPI for all companies in a certain month.&lt;/P&gt;&lt;P&gt;For example: in April both companies had a revenue of 1; so the total column should equal 2 for all rows that have:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Month = April&lt;/LI&gt;&lt;LI&gt;KPI = Revenue&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Similarly, the total column would equal:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;8 for Revenue rows in May&lt;/LI&gt;&lt;LI&gt;4 for Units rows in April&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 380px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/9018iF981A6747A368F6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the method described in this thread&amp;nbsp;&lt;A href="https://community.qlik.com/t5/New-to-QlikView/Load-Script-Add-a-total-column/m-p/503083" target="_blank"&gt;https://community.qlik.com/t5/New-to-QlikView/Load-Script-Add-a-total-column/m-p/503083&lt;/A&gt;&amp;nbsp;but that just gave me a total of all KPI for all companies in all months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:01:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562325#M597674</guid>
      <dc:creator>alif</dc:creator>
      <dc:date>2024-11-16T04:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Total column in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562328#M597677</link>
      <description>can u share this sample small data</description>
      <pubDate>Thu, 28 Mar 2019 09:55:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562328#M597677</guid>
      <dc:creator>Shubham_Deshmukh</dc:creator>
      <dc:date>2019-03-28T09:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Total column in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562333#M597678</link>
      <description />
      <pubDate>Thu, 28 Mar 2019 10:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562333#M597678</guid>
      <dc:creator>alif</dc:creator>
      <dc:date>2019-03-28T10:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Total column in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562337#M597679</link>
      <description>I cannot open qvw here, share sample data of your your snapshot</description>
      <pubDate>Thu, 28 Mar 2019 10:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562337#M597679</guid>
      <dc:creator>Shubham_Deshmukh</dc:creator>
      <dc:date>2019-03-28T10:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Total column in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562339#M597680</link>
      <description>&lt;P&gt;Thank you for replying. I've attached an excel sheet with the sample data and below is a simplification of my script&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;LOAD Month,&lt;BR /&gt;Company,&lt;BR /&gt;KPI,&lt;BR /&gt;Data&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;Sample.xlsx&lt;BR /&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;Join (Table1)&lt;BR /&gt;Load&lt;BR /&gt;sum(Data)&lt;BR /&gt;Resident Table1&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 10:09:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562339#M597680</guid>
      <dc:creator>alif</dc:creator>
      <dc:date>2019-03-28T10:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Total column in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562385#M597681</link>
      <description>&lt;P&gt;Please check the attached&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 11:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562385#M597681</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-03-28T11:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Total column in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562396#M597682</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;Table1:
LOAD Month, 
     Company, 
     KPI, 
     Data
FROM Sample.xlsx
(ooxml, embedded labels);

Join (Table1)
LOAD Month,
	 KPI,
	 Sum(Data) as Total
Resident Table1
Group By Month, KPI;&lt;/PRE&gt;&lt;P&gt;or try this in the front end as an expression&lt;/P&gt;&lt;PRE&gt;Sum(TOTAL &amp;lt;Month, KPI&amp;gt; Data)&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Mar 2019 12:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562396#M597682</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-03-28T12:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Total column in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562397#M597683</link>
      <description>&lt;P&gt;Thank you all.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 12:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-column-in-Script/m-p/1562397#M597683</guid>
      <dc:creator>alif</dc:creator>
      <dc:date>2019-03-28T12:03:07Z</dc:date>
    </item>
  </channel>
</rss>

