<?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: Performing simple calculations in script... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Performing-simple-calculations-in-script/m-p/719626#M1078652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do all kind of calculations in script unless you dont have anything based off selections i.e. listboxes etc.&lt;/P&gt;&lt;P&gt;Its always a best practise to do calculations in ETL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2014 13:51:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-21T13:51:16Z</dc:date>
    <item>
      <title>Performing simple calculations in script...</title>
      <link>https://community.qlik.com/t5/QlikView/Performing-simple-calculations-in-script/m-p/719625#M1078651</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 have a population of data imported from a server that shows up on the dimensions tabs when I make a table or chart, I would like to perform some basic math operations on this data to calculate different heuristics that are used to baseline operations, however the only way I know to do this is to write an expression or calculated dimension. Since the expression and calculated dimensions are recalculated every time a new selection is made I regard this data as dynamic.&amp;nbsp; I would like this data to be static and exist with the data that is imported from the server.&amp;nbsp; Can anyone provide me a sample of a script that I could use as an example? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Efficiency- efficiency is calculated by dividing the run time by the total time.&amp;nbsp; I have this as an expression where one column is divided by another.&amp;nbsp; Can I write a script that would perform this calculation for all the data that is loaded from the server and have it appear as an available field/group in the dimensions tab when I try and create a new table or chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:47:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performing-simple-calculations-in-script/m-p/719625#M1078651</guid>
      <dc:creator />
      <dc:date>2014-07-21T13:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Performing simple calculations in script...</title>
      <link>https://community.qlik.com/t5/QlikView/Performing-simple-calculations-in-script/m-p/719626#M1078652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do all kind of calculations in script unless you dont have anything based off selections i.e. listboxes etc.&lt;/P&gt;&lt;P&gt;Its always a best practise to do calculations in ETL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:51:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performing-simple-calculations-in-script/m-p/719626#M1078652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-21T13:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Performing simple calculations in script...</title>
      <link>https://community.qlik.com/t5/QlikView/Performing-simple-calculations-in-script/m-p/719627#M1078653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;run time] ,&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [total time] ,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;run time] / [total time]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [efficiency]&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc ...................&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performing-simple-calculations-in-script/m-p/719627#M1078653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-21T13:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Performing simple calculations in script...</title>
      <link>https://community.qlik.com/t5/QlikView/Performing-simple-calculations-in-script/m-p/719628#M1078654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post a sample of your script? We could suggest some calculations&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 13:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performing-simple-calculations-in-script/m-p/719628#M1078654</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-07-21T13:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Performing simple calculations in script...</title>
      <link>https://community.qlik.com/t5/QlikView/Performing-simple-calculations-in-script/m-p/719629#M1078655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, attached is a very simple example of what I am trying to do, but the efficiency isn't being calculated.&amp;nbsp; What's wrong with my syntax?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 15:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performing-simple-calculations-in-script/m-p/719629#M1078655</guid>
      <dc:creator />
      <dc:date>2014-07-21T15:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Performing simple calculations in script...</title>
      <link>https://community.qlik.com/t5/QlikView/Performing-simple-calculations-in-script/m-p/719630#M1078656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;RunTime, &lt;/P&gt;&lt;P&gt;TotalTime,&lt;/P&gt;&lt;P&gt;RunTime / TotalTime as Eficiency INLINE [&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RunTime, TotalTime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 54,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 66,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 110,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 74,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 95,&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 15:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performing-simple-calculations-in-script/m-p/719630#M1078656</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-07-21T15:53:43Z</dc:date>
    </item>
  </channel>
</rss>

