<?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: Is it possible to create a new field which sums the values of other fields during Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-create-a-new-field-which-sums-the-values-of/m-p/1895060#M1217486</link>
    <description>&lt;P&gt;Hi, Give a try with the below code and you will get your final output:&lt;/P&gt;
&lt;P&gt;Server_Inventory:&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt;*&lt;BR /&gt;,SERVICE1 + SERVICE2 +SERVICE3 as TotalServices&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt;DEVICENAME&lt;BR /&gt;,SERVICE1_Installed&lt;BR /&gt;,SERVICE2_Installed&lt;BR /&gt;,SERVICE3_Installed&lt;BR /&gt;,If(SERVICE1_Installed='yes',1,0) as SERVICE1&lt;BR /&gt;,If(SERVICE2_Installed='yes',1,0) as SERVICE2&lt;BR /&gt;,If(SERVICE3_Installed='yes',1,0) as SERVICE3&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;Load * inline [&lt;BR /&gt;DEVICENAME, SERVICE1_Installed, SERVICE2_Installed, SERVICE3_Installed,TotalServices&lt;BR /&gt;server.xyz.com, yes, no, yes&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Raja2022_0-1645277186774.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72667iF8A8920D86EFD9B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Raja2022_0-1645277186774.png" alt="Raja2022_0-1645277186774.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Sat, 19 Feb 2022 13:26:53 GMT</pubDate>
    <dc:creator>Raja2022</dc:creator>
    <dc:date>2022-02-19T13:26:53Z</dc:date>
    <item>
      <title>Is it possible to create a new field which sums the values of other fields during Load</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-create-a-new-field-which-sums-the-values-of/m-p/1894767#M1217466</link>
      <description>&lt;P&gt;Hi Folks&lt;/P&gt;
&lt;P&gt;As always, I really appreciate your help and support in advance.&lt;/P&gt;
&lt;P&gt;I am loading in a server inventory as follows:&lt;/P&gt;
&lt;P&gt;DEVICENAME, SERVICE1_Installed, SERVICE2_Installed, SERVICE3 Installed&lt;/P&gt;
&lt;P&gt;server.xyz.com, yes, no, yes&lt;/P&gt;
&lt;P&gt;I want to have a column which gives a total where the service installed is Yes in the 3 services listed:&lt;/P&gt;
&lt;P&gt;DEVICENAME, SERVICE1_Installed, SERVICE2_Installed, SERVICE3 Installed,TotalServices&lt;/P&gt;
&lt;P&gt;server.xyz.com, yes, no, yes,2&lt;/P&gt;
&lt;P&gt;Is this possible to do as the script loads?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Nigel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 10:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-create-a-new-field-which-sums-the-values-of/m-p/1894767#M1217466</guid>
      <dc:creator>nigelapt</dc:creator>
      <dc:date>2022-02-18T10:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a new field which sums the values of other fields during Load</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-create-a-new-field-which-sums-the-values-of/m-p/1894804#M1217471</link>
      <description>&lt;P&gt;I'd try&lt;/P&gt;
&lt;P&gt;substringcount(SERVICE1_Installed&amp;amp;SERVICE2_Installed&amp;amp;SERVICE3_Installed) as TotalServices&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 11:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-create-a-new-field-which-sums-the-values-of/m-p/1894804#M1217471</guid>
      <dc:creator>ManuelRühl</dc:creator>
      <dc:date>2022-02-18T11:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a new field which sums the values of other fields during Load</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-create-a-new-field-which-sums-the-values-of/m-p/1894805#M1217472</link>
      <description>&lt;P&gt;Nigel&lt;/P&gt;
&lt;P&gt;you could try adding this to the data load script&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;left join (yourtablename)&lt;BR /&gt;load&amp;nbsp;DEVICENAME,&lt;BR /&gt;sum(service1) + sum(service1) + sum(service1) as TotalServices&lt;BR /&gt;group by&amp;nbsp;DEVICENAME;&lt;BR /&gt;load DEVICENAME,&lt;BR /&gt;if(SERVICE1_Installed='yes',1, 0) as service1,&lt;BR /&gt;if(SERVICE2_Installed='yes',1, 0) as service2,&lt;BR /&gt;if(SERVICE3_Installed='yes',1, 0) as service3,&lt;BR /&gt;resident yourtablename;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 11:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-create-a-new-field-which-sums-the-values-of/m-p/1894805#M1217472</guid>
      <dc:creator>parevrac</dc:creator>
      <dc:date>2022-02-18T11:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a new field which sums the values of other fields during Load</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-create-a-new-field-which-sums-the-values-of/m-p/1895060#M1217486</link>
      <description>&lt;P&gt;Hi, Give a try with the below code and you will get your final output:&lt;/P&gt;
&lt;P&gt;Server_Inventory:&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt;*&lt;BR /&gt;,SERVICE1 + SERVICE2 +SERVICE3 as TotalServices&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt;DEVICENAME&lt;BR /&gt;,SERVICE1_Installed&lt;BR /&gt;,SERVICE2_Installed&lt;BR /&gt;,SERVICE3_Installed&lt;BR /&gt;,If(SERVICE1_Installed='yes',1,0) as SERVICE1&lt;BR /&gt;,If(SERVICE2_Installed='yes',1,0) as SERVICE2&lt;BR /&gt;,If(SERVICE3_Installed='yes',1,0) as SERVICE3&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;Load * inline [&lt;BR /&gt;DEVICENAME, SERVICE1_Installed, SERVICE2_Installed, SERVICE3_Installed,TotalServices&lt;BR /&gt;server.xyz.com, yes, no, yes&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Raja2022_0-1645277186774.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72667iF8A8920D86EFD9B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Raja2022_0-1645277186774.png" alt="Raja2022_0-1645277186774.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 13:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-create-a-new-field-which-sums-the-values-of/m-p/1895060#M1217486</guid>
      <dc:creator>Raja2022</dc:creator>
      <dc:date>2022-02-19T13:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a new field which sums the values of other fields during Load</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-create-a-new-field-which-sums-the-values-of/m-p/1895062#M1217487</link>
      <description>&lt;P&gt;Also you can give a try with this second method as below:&lt;/P&gt;
&lt;P&gt;Server_Inventory:&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt;DEVICENAME&lt;BR /&gt;,SERVICE1_Installed&lt;BR /&gt;,SERVICE2_Installed&lt;BR /&gt;,SERVICE3_Installed&lt;BR /&gt;,substringcount(SERVICE1_Installed&amp;amp;SERVICE2_Installed&amp;amp;SERVICE3_Installed,'yes') as TotalServices&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Load * inline [&lt;BR /&gt;DEVICENAME, SERVICE1_Installed, SERVICE2_Installed, SERVICE3_Installed&lt;BR /&gt;server.xyz.com, yes, no, yes&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Raja2022_1-1645277615430.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72668i12A8FE86A7FDA80F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Raja2022_1-1645277615430.png" alt="Raja2022_1-1645277615430.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 13:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-create-a-new-field-which-sums-the-values-of/m-p/1895062#M1217487</guid>
      <dc:creator>Raja2022</dc:creator>
      <dc:date>2022-02-19T13:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a new field which sums the values of other fields during Load</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-create-a-new-field-which-sums-the-values-of/m-p/1896531#M1217564</link>
      <description>&lt;P&gt;Hi Mruehl&lt;/P&gt;
&lt;P&gt;That set me on the right track.&amp;nbsp; This worked for me:&lt;/P&gt;
&lt;P&gt;substringcount([Disable Service1],'Yes') + substringcount([Downgrade Service2],'Yes') + substringcount([Disable Service3],'Yes') + substringcount([Disable Service4],'Yes') + substringcount([Disable Service5],'Yes')+ substringcount([Disable Service6],'Yes') as [OS MON Deviations],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 12:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-create-a-new-field-which-sums-the-values-of/m-p/1896531#M1217564</guid>
      <dc:creator>nigelapt</dc:creator>
      <dc:date>2022-02-23T12:33:15Z</dc:date>
    </item>
  </channel>
</rss>

