<?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 Evaluate a stored formula in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Evaluate-a-stored-formula-in-script/m-p/383522#M143143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've 2 tables that are stored in QVD's&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;definition table: the id's, for what I must calculate the formula written in the field "formula"&lt;/LI&gt;&lt;LI&gt;values tables: the values needed to calculate the formula&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a script and get the calculations with help of the values tables directly in script. That means that I must find a way to evaluate the Formula. Does anybody have an idea on how to do that ? Do I think in the false direction ?&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="21231" alt="Unbenannt.PNG" class="jive-image-thumbnail jive-image" height="192" src="https://community.qlik.com/legacyfs/online/21231_Unbenannt.PNG" width="679" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a result, I simply would like that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DepID_1008 --&amp;gt; 40 - 66 = -26&lt;/LI&gt;&lt;LI&gt;DepID_1009 --&amp;gt; 40 - 66 + 55 = 29&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2012 16:59:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-03T16:59:05Z</dc:date>
    <item>
      <title>Evaluate a stored formula in script</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-a-stored-formula-in-script/m-p/383522#M143143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've 2 tables that are stored in QVD's&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;definition table: the id's, for what I must calculate the formula written in the field "formula"&lt;/LI&gt;&lt;LI&gt;values tables: the values needed to calculate the formula&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create a script and get the calculations with help of the values tables directly in script. That means that I must find a way to evaluate the Formula. Does anybody have an idea on how to do that ? Do I think in the false direction ?&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="21231" alt="Unbenannt.PNG" class="jive-image-thumbnail jive-image" height="192" src="https://community.qlik.com/legacyfs/online/21231_Unbenannt.PNG" width="679" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a result, I simply would like that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DepID_1008 --&amp;gt; 40 - 66 = -26&lt;/LI&gt;&lt;LI&gt;DepID_1009 --&amp;gt; 40 - 66 + 55 = 29&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 16:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-a-stored-formula-in-script/m-p/383522#M143143</guid>
      <dc:creator />
      <dc:date>2012-09-03T16:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is that possible with a set analysis ?</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-a-stored-formula-in-script/m-p/383523#M143144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FI4030 - FI4027 = -26, not 5 so how do you get your desired results?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 22:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-a-stored-formula-in-script/m-p/383523#M143144</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-09-03T22:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is that possible with a set analysis ?</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-a-stored-formula-in-script/m-p/383524#M143145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found, I can do that in script with the evaluate() function.&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;&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 16:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-a-stored-formula-in-script/m-p/383524#M143145</guid>
      <dc:creator />
      <dc:date>2012-09-06T16:49:16Z</dc:date>
    </item>
  </channel>
</rss>

