<?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 Adding value to existing field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-value-to-existing-field/m-p/916324#M981420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 7 values in Category column like Gross,Contractual,Currency,SpecialDisc,Returns,Price,Other.&lt;/P&gt;&lt;P&gt;My req is i have to add one more value NetRevenue (NetRevenue=GrossAmount-Contractual-SpecialDisc-Returns-Price-Other+Currency) into that column. So finally we will have 8 field values.&lt;/P&gt;&lt;P&gt;I tried in script level in category column it's showing 8 values but if i add this column into table and did calculation as sum(amount).&lt;/P&gt;&lt;P&gt;But in the table it's showing 7 values. &lt;/P&gt;&lt;P&gt;Can anybody help me here? I am attaching QVW also here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Aug 2015 18:36:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-08T18:36:17Z</dc:date>
    <item>
      <title>Adding value to existing field</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-value-to-existing-field/m-p/916324#M981420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 7 values in Category column like Gross,Contractual,Currency,SpecialDisc,Returns,Price,Other.&lt;/P&gt;&lt;P&gt;My req is i have to add one more value NetRevenue (NetRevenue=GrossAmount-Contractual-SpecialDisc-Returns-Price-Other+Currency) into that column. So finally we will have 8 field values.&lt;/P&gt;&lt;P&gt;I tried in script level in category column it's showing 8 values but if i add this column into table and did calculation as sum(amount).&lt;/P&gt;&lt;P&gt;But in the table it's showing 7 values. &lt;/P&gt;&lt;P&gt;Can anybody help me here? I am attaching QVW also here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2015 18:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-value-to-existing-field/m-p/916324#M981420</guid>
      <dc:creator />
      <dc:date>2015-08-08T18:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding value to existing field</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-value-to-existing-field/m-p/916325#M981421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working with Personal Edition of QlikView, would you be able to post your script here and screenshot of the front end table???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2015 18:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-value-to-existing-field/m-p/916325#M981421</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-08T18:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding value to existing field</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-value-to-existing-field/m-p/916326#M981422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to add NetRevenue in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Tab1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * Inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Category,Amount&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Gross,10000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Contractual,1400&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Currency,2000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SpecialDisc,1000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Returns,1000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Price,1400&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Other,1200&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 'NetRevenue' as Category,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Amount *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; pick(wildmatch(Category, 'Gross', 'Contractual', 'SpecialDisc', 'Returns', 'Price', 'Other', 'Currency', '*'),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 1, -1, -1, -1, -1, -1, 1, 0) as Amount&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Tab1;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2015 19:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-value-to-existing-field/m-p/916326#M981422</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-08T19:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding value to existing field</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-value-to-existing-field/m-p/916327#M981423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_175857_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/95435_QlikCommunity_Thread_175857_Pic1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14390755621536652" jivemacro_uid="_14390755621536652"&gt;
&lt;P&gt;Tab1:&lt;/P&gt;
&lt;P&gt;LOAD * Inline [&lt;/P&gt;
&lt;P&gt;Category,Amount&lt;/P&gt;
&lt;P&gt;Gross,10000&lt;/P&gt;
&lt;P&gt;Contractual,1400&lt;/P&gt;
&lt;P&gt;Currency,2000&lt;/P&gt;
&lt;P&gt;SpecialDisc,1000&lt;/P&gt;
&lt;P&gt;Returns,1000&lt;/P&gt;
&lt;P&gt;Price,1400&lt;/P&gt;
&lt;P&gt;Other,1200&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD 'NetRevenue' as Category,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(-((Category='Gross')-(Category='Contractual')-(Category='SpecialDisc')-(Category='Returns')-(Category='Price')-(Category='Other')+(Category='Currency'))*Amount) as Amount&lt;/P&gt;
&lt;P&gt;Resident Tab1;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2015 23:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-value-to-existing-field/m-p/916327#M981423</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-08-08T23:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding value to existing field</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-value-to-existing-field/m-p/916328#M981424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although I think Massimo's solution is more elegant than mine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here with an added aggregation to only get one table row in Tab1 for NetRevenue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14390761398919583" jivemacro_uid="_14390761398919583"&gt;
&lt;P&gt;Tab1:&lt;/P&gt;
&lt;P&gt;LOAD * Inline [&lt;/P&gt;
&lt;P&gt;Category,Amount&lt;/P&gt;
&lt;P&gt;Gross,10000&lt;/P&gt;
&lt;P&gt;Contractual,1400&lt;/P&gt;
&lt;P&gt;Currency,2000&lt;/P&gt;
&lt;P&gt;SpecialDisc,1000&lt;/P&gt;
&lt;P&gt;Returns,1000&lt;/P&gt;
&lt;P&gt;Price,1400&lt;/P&gt;
&lt;P&gt;Other,1200&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 'NetRevenue' as Category,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sum(Amount*Pick(WildMatch(Category, 'Gross', 'Contractual', 'SpecialDisc', 'Returns', 'Price', 'Other', 'Currency', '*'),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, -1, -1, -1, -1, -1, 1, 0)) as Amount&lt;/P&gt;
&lt;P&gt;Resident Tab1;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2015 23:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-value-to-existing-field/m-p/916328#M981424</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-08-08T23:22:31Z</dc:date>
    </item>
  </channel>
</rss>

