<?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 Add expression to script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-expression-to-script/m-p/1428970#M612231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not good at editing the script of my Qlikview file. Most of the editing that I've done is with your help (thanks by the way &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;).&lt;/P&gt;&lt;P&gt;Now I want to add some set expressions to my script, so I can use their outcome instead of each time using set expression for all my tables and charts. Can someone provide me with the correct peace of text that I need to add to the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field that is provided by the database that is called "CLIENTORDERS"&lt;/P&gt;&lt;P&gt;so I can use the expression &lt;SPAN style="color: #800080;"&gt;sum(CLIENTORDERS)&lt;/SPAN&gt; for each article and make my charts.&lt;/P&gt;&lt;P&gt;Actually &lt;SPAN style="color: #800080;"&gt;sum(CLIENTORDERS)&lt;/SPAN&gt; gives the same result as a set expression &lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif'; color: #1f497d;"&gt;sum({$&amp;lt;OrderType={CLORDERS},Status={Open}&amp;gt;}BALANCE) &lt;SPAN style="color: #808080;"&gt;but much easier.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now&amp;nbsp; they've made some changes in the database, I need to alter the CLIENTORDERS value:&lt;/P&gt;&lt;P&gt;it should give the same result as &lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif'; color: #1f497d;"&gt;sum({$&amp;lt;OrderType={CLORDERS},Status={Open}&amp;gt;}BALANCE) - sum(&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif'; color: #1f497d;"&gt;{$&amp;lt;OrderType={CLORDERSFORECAST},Status={Open}&amp;gt;}BALANCE)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;so maybe I can get this formula pre-calculated in the script and use a field like CLIENTORDERS_BIS to use as sum(CLIENTORDERS_BIS) in my charts or even more easy just update CLIENTORDERS to this new formula (do I don't have to change any expression in my charts)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Davy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Oct 2017 06:35:39 GMT</pubDate>
    <dc:creator>davymichiels</dc:creator>
    <dc:date>2017-10-25T06:35:39Z</dc:date>
    <item>
      <title>Add expression to script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-to-script/m-p/1428970#M612231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not good at editing the script of my Qlikview file. Most of the editing that I've done is with your help (thanks by the way &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;).&lt;/P&gt;&lt;P&gt;Now I want to add some set expressions to my script, so I can use their outcome instead of each time using set expression for all my tables and charts. Can someone provide me with the correct peace of text that I need to add to the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field that is provided by the database that is called "CLIENTORDERS"&lt;/P&gt;&lt;P&gt;so I can use the expression &lt;SPAN style="color: #800080;"&gt;sum(CLIENTORDERS)&lt;/SPAN&gt; for each article and make my charts.&lt;/P&gt;&lt;P&gt;Actually &lt;SPAN style="color: #800080;"&gt;sum(CLIENTORDERS)&lt;/SPAN&gt; gives the same result as a set expression &lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif'; color: #1f497d;"&gt;sum({$&amp;lt;OrderType={CLORDERS},Status={Open}&amp;gt;}BALANCE) &lt;SPAN style="color: #808080;"&gt;but much easier.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now&amp;nbsp; they've made some changes in the database, I need to alter the CLIENTORDERS value:&lt;/P&gt;&lt;P&gt;it should give the same result as &lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif'; color: #1f497d;"&gt;sum({$&amp;lt;OrderType={CLORDERS},Status={Open}&amp;gt;}BALANCE) - sum(&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif'; color: #1f497d;"&gt;{$&amp;lt;OrderType={CLORDERSFORECAST},Status={Open}&amp;gt;}BALANCE)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;so maybe I can get this formula pre-calculated in the script and use a field like CLIENTORDERS_BIS to use as sum(CLIENTORDERS_BIS) in my charts or even more easy just update CLIENTORDERS to this new formula (do I don't have to change any expression in my charts)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Davy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 06:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-to-script/m-p/1428970#M612231</guid>
      <dc:creator>davymichiels</dc:creator>
      <dc:date>2017-10-25T06:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Add expression to script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-to-script/m-p/1428971#M612232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Davy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you share the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 06:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-to-script/m-p/1428971#M612232</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2017-10-25T06:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add expression to script</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-to-script/m-p/1428972#M612233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohammed&lt;/P&gt;&lt;P&gt;Unfortunately no, my script only copies data from another qlikview file (once developed by an external company) and than adds some very basic lines (drop fields, bundle load images, add some excel data). Also, the once developed qlikview file has a hidden script so I cannot access it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 06:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-to-script/m-p/1428972#M612233</guid>
      <dc:creator>davymichiels</dc:creator>
      <dc:date>2017-10-25T06:56:52Z</dc:date>
    </item>
  </channel>
</rss>

