<?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 a value in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152989#M376528</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you guys for your support. i am realizing i am facing other issus in my app and then the questions raised were not properly asked. I will close this thread and open a new one trying to be more accurate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guillaume &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jul 2016 10:38:51 GMT</pubDate>
    <dc:creator>guillaume_gorli</dc:creator>
    <dc:date>2016-07-04T10:38:51Z</dc:date>
    <item>
      <title>Add a value in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152982#M376521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue regarding a specific value i would like to link to a variable directly in the script of my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me explain : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My test database is&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;Part Number&lt;/P&gt;&lt;P&gt;Cost&lt;/P&gt;&lt;P&gt;Qty&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/129734_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The issue is that the cost for part number A is set up as zero in the database (it is set up like this directly in my ERP) although i need this specific part number to be linked with a different cost than the one initially coming from the ERP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please note the cost of this part number A is changing every year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, we could imagine that part number A should be "manually" costed 5 in 2015 and 7 in 2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As of now the output i got in the qvw is as follow : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/129732_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although what i a looking for is the following : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/129733_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to set this up directly in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the ones who want to help, i join the qvw as well as the test xls database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 18:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152982#M376521</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2016-06-30T18:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Add a value in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152983#M376522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guillaumne&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to read from your database the information and after read an Excel file with the cost for part A for every month. After this, create a new table with the information from part A without cost value, and join the cost value from the sheet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 18:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152983#M376522</guid>
      <dc:creator>Marcio_Campestrini</dc:creator>
      <dc:date>2016-06-30T18:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add a value in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152984#M376523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/129729_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script additions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join(Feuil1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Part Number],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthName(MonthYear) as MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Cost1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Part Number, MonthYear, Cost1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 01/12/2015, 5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A, 01/01/2016, 7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression2: &lt;STRONG&gt;=Num(Alt(Cost1,Cost))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression3: &lt;STRONG&gt;=Sum (Qty * Alt(Cost1, Cost))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 18:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152984#M376523</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-30T18:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add a value in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152985#M376524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;/// TEST DATABASE ///&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Date, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Part Number], &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Year(Date)=2015 and [Part Number]='A', 5,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Year(Date)=2016 and [Part Number]='A', 7, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cost)) as Cost,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Cost, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&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;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" height="157" src="https://community.qlik.com/legacyfs/online/129730_1.png" style="height: 156.889px; width: 461px;" width="461" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 18:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152985#M376524</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-06-30T18:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add a value in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152986#M376525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am wrong somewhere but i can't figure out where.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got below message error when i try to load part of your script in my complete app :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/129995_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;i spent some time trying to understand where i am wrong in my script without no luck.&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 08:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152986#M376525</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2016-07-04T08:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add a value in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152987#M376526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the expression used to determined&amp;nbsp; "Value" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you upload the qvw you built so that i could check ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 08:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152987#M376526</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2016-07-04T08:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add a value in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152988#M376527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think an ApplyMap() trick will offer more flexibility. Although it's not a ready to use script for you, this explains the idea:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;MapCostExceptions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD [Product Number] &amp;amp; '-' &amp;amp; Année AS Index,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cost&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM MyCostExcel.xlsx (ooxml, ...);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Facts: // ApplyMap will 'update' the cost if P &amp;amp; Y found in mapping table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD Date,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Product Number],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MapCostExceptions', [Product Number] &amp;amp; '-' &amp;amp; Year(Date), Cost) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS Cost,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM YourOtherSource (...);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 10:32:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152988#M376527</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-07-04T10:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Add a value in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152989#M376528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you guys for your support. i am realizing i am facing other issus in my app and then the questions raised were not properly asked. I will close this thread and open a new one trying to be more accurate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guillaume &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 10:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152989#M376528</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2016-07-04T10:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add a value in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152990#M376529</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;1. Need to mention the Table Name&lt;/P&gt;&lt;P&gt;2. Date column is not available in "InLine Table". You need to change "Date -&amp;gt; MonthYear".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 10:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-value-in-the-script/m-p/1152990#M376529</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2016-07-04T10:40:24Z</dc:date>
    </item>
  </channel>
</rss>

