<?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 Modify variable in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Modify-variable-in-script/m-p/1374445#M419680</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 a database coming from a ERP with below data :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;Order&lt;/P&gt;&lt;P&gt;Part Number&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Codification of the order (either P for W)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Commercial Code of the part number&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sales&lt;/SPAN&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 basic output of data is as below :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" height="120" src="https://community.qlik.com/legacyfs/online/184586_Capture.JPG" style="height: 119.952px; width: 335px;" width="335" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P or W is linked to the order. So for instance sales of part number A is spit between Sales P and Sales W (30+24 = 54)&lt;/P&gt;&lt;P&gt;Now i would like to set things up so that commercial code X3 is always consider as Sales W, meaning "Codification of the order"&amp;nbsp; is always the data shown in field "codification of the order" except if field "Commercial code of the part number" equal "X3" when then "&lt;SPAN style="font-size: 13.3333px;"&gt;Codification of the order " is always W (could be P or W in the first place).&lt;/SPAN&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;So the final out put should be : &lt;/SPAN&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;&lt;IMG alt="Capture.JPG" class="jive-image image-2" height="127" src="https://community.qlik.com/legacyfs/online/184587_Capture.JPG" style="height: 127.413px; width: 348px;" width="348" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is qvw and xls test database for the ones who want to help&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>Sun, 26 Nov 2017 09:23:37 GMT</pubDate>
    <dc:creator>guillaume_gorli</dc:creator>
    <dc:date>2017-11-26T09:23:37Z</dc:date>
    <item>
      <title>Modify variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Modify-variable-in-script/m-p/1374445#M419680</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 a database coming from a ERP with below data :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;Order&lt;/P&gt;&lt;P&gt;Part Number&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Codification of the order (either P for W)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Commercial Code of the part number&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sales&lt;/SPAN&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 basic output of data is as below :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" height="120" src="https://community.qlik.com/legacyfs/online/184586_Capture.JPG" style="height: 119.952px; width: 335px;" width="335" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P or W is linked to the order. So for instance sales of part number A is spit between Sales P and Sales W (30+24 = 54)&lt;/P&gt;&lt;P&gt;Now i would like to set things up so that commercial code X3 is always consider as Sales W, meaning "Codification of the order"&amp;nbsp; is always the data shown in field "codification of the order" except if field "Commercial code of the part number" equal "X3" when then "&lt;SPAN style="font-size: 13.3333px;"&gt;Codification of the order " is always W (could be P or W in the first place).&lt;/SPAN&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;So the final out put should be : &lt;/SPAN&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;&lt;IMG alt="Capture.JPG" class="jive-image image-2" height="127" src="https://community.qlik.com/legacyfs/online/184587_Capture.JPG" style="height: 127.413px; width: 348px;" width="348" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is qvw and xls test database for the ones who want to help&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>Sun, 26 Nov 2017 09:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modify-variable-in-script/m-p/1374445#M419680</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2017-11-26T09:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Modify variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Modify-variable-in-script/m-p/1374446#M419681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/184589_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Nov 2017 09:34:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modify-variable-in-script/m-p/1374446#M419681</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-11-26T09:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Modify variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Modify-variable-in-script/m-p/1374447#M419682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is correct although i would prefer to go to a set up directly in the script instead of keying a "if conditio"n in each table of the report i have to issue (i have a lot tables to handle).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Nov 2017 09:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modify-variable-in-script/m-p/1374447#M419682</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2017-11-26T09:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Modify variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Modify-variable-in-script/m-p/1374448#M419683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;Order&lt;/SPAN&gt;, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;[Part Number]&lt;/SPAN&gt;, &lt;BR /&gt; If( &lt;SPAN style="color: #800000;"&gt;[Commercial Code of the part number] &lt;/SPAN&gt;='X3','W',&lt;SPAN style="color: #800000;"&gt;[Codification of the order]&lt;/SPAN&gt;) as [&lt;SPAN style="color: #800000;"&gt;Codification of the order],&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #800000;"&gt;[Commercial Code of the part number]&lt;/SPAN&gt;, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;Sales&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;FROM&lt;/SPAN&gt;&lt;BR /&gt; &lt;C&gt;&lt;BR /&gt; (&lt;SPAN style="color: #0000ff;"&gt;ooxml&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;embedded&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;labels&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;table&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;is&lt;/SPAN&gt; Feuil1); &lt;/C&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Nov 2017 09:59:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modify-variable-in-script/m-p/1374448#M419683</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-11-26T09:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Modify variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Modify-variable-in-script/m-p/1374449#M419684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Antonio, it works perfect !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Nov 2017 10:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modify-variable-in-script/m-p/1374449#M419684</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2017-11-26T10:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Modify variable in script</title>
      <link>https://community.qlik.com/t5/QlikView/Modify-variable-in-script/m-p/1374450#M419685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologies, I haven't read headline of your thread. Anyway thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Nov 2017 11:15:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modify-variable-in-script/m-p/1374450#M419685</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-11-26T11:15:25Z</dc:date>
    </item>
  </channel>
</rss>

