<?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: Calculation on Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-on-Script/m-p/1526980#M599725</link>
    <description>&lt;P&gt;Would you mind posting your script that generates the error?&lt;/P&gt;
&lt;P&gt;_________&lt;BR /&gt;Clever dos Anjos&lt;BR /&gt;Have fun, be Qlik &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jan 2019 11:31:57 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2019-01-07T11:31:57Z</dc:date>
    <item>
      <title>Calculation on Script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-on-Script/m-p/1526969#M599724</link>
      <description>&lt;P&gt;Deal All,&lt;/P&gt;&lt;P&gt;I am trying to build a dashboard witch will be a combination of a lot of Excel files.&lt;/P&gt;&lt;P&gt;To avoid creating SK, I am trying to rename the attributes according to one unique nomenclature and doing a join on all other tables.&lt;/P&gt;&lt;P&gt;Basically I am creating attributes to be filters ( Country, Month, Year, Region....) and one unique attribute called Results for being my expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is that not all the tables, my result is located in a unique column. Sometimes I will need to have a calculation for creating this attribute "Results".&lt;/P&gt;&lt;P&gt;The most comum calculatation that I need is something like.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;((CRITERIA1)/(CRITERIA2))*100&lt;/STRONG&gt; as Results&lt;/P&gt;&lt;P&gt;When trying this, I am receiving an error on the script. (Invalid Expression)&lt;/P&gt;&lt;P&gt;I am quite new on script modeling, so please let me know if this is not the best approach.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:50:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-on-Script/m-p/1526969#M599724</guid>
      <dc:creator>icaro_povoa</dc:creator>
      <dc:date>2024-11-16T04:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation on Script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-on-Script/m-p/1526980#M599725</link>
      <description>&lt;P&gt;Would you mind posting your script that generates the error?&lt;/P&gt;
&lt;P&gt;_________&lt;BR /&gt;Clever dos Anjos&lt;BR /&gt;Have fun, be Qlik &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 11:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-on-Script/m-p/1526980#M599725</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2019-01-07T11:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation on Script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-on-Script/m-p/1527064#M599726</link>
      <description>&lt;P&gt;Follow the script:&lt;/P&gt;&lt;P&gt;QUALIFY Comments;&lt;BR /&gt;Directory;&lt;BR /&gt;NAKPIS:&lt;BR /&gt;LOAD KPI,&lt;BR /&gt;BSC,&lt;BR /&gt;Territory,&lt;BR /&gt;Team,&lt;BR /&gt;Crop,&lt;BR /&gt;Brand,&lt;BR /&gt;Month,&lt;BR /&gt;Result,&lt;BR /&gt;Grouping,&lt;BR /&gt;Lower,&lt;BR /&gt;Upper,&lt;BR /&gt;[Traffic Light]&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;Example.xlsm&lt;BR /&gt;(ooxml, embedded labels, table is Database);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;HSE:&lt;BR /&gt;Directory;&lt;BR /&gt;Join(NAKPIS)&lt;BR /&gt;LOAD 'IIR' as KPI,&lt;BR /&gt;'Safety' as BSC,&lt;BR /&gt;'Strategic' as Grouping,&lt;/P&gt;&lt;P&gt;Month ,&lt;BR /&gt;[Hours Worked],&lt;BR /&gt;Recordables,&lt;BR /&gt;&lt;STRONG&gt;(sum(Recordables)/sum([Hours Worked])*200000)&lt;/STRONG&gt; as Result&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;.....&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 12:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-on-Script/m-p/1527064#M599726</guid>
      <dc:creator>icaro_povoa</dc:creator>
      <dc:date>2019-01-07T12:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation on Script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-on-Script/m-p/1527069#M599727</link>
      <description>&lt;P&gt;LOAD 'IIR' as KPI,&lt;BR /&gt;'Safety' as BSC,&lt;BR /&gt;'Strategic' as Grouping,&lt;/P&gt;
&lt;P&gt;Month ,&lt;BR /&gt;[Hours Worked],&lt;BR /&gt;Recordables,&lt;BR /&gt;&lt;STRONG&gt;(sum(Recordables)/sum([Hours Worked])*200000)&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as Result&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a sum() you´re supposed to have a GROUP BY clause, do you have one?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 13:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-on-Script/m-p/1527069#M599727</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2019-01-07T13:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation on Script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-on-Script/m-p/1527075#M599728</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No I don´t.&amp;nbsp; Can you help me&amp;nbsp;with&amp;nbsp;this?&lt;/P&gt;&lt;P&gt;I have no idea how to do it. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 13:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-on-Script/m-p/1527075#M599728</guid>
      <dc:creator>icaro_povoa</dc:creator>
      <dc:date>2019-01-07T13:15:27Z</dc:date>
    </item>
  </channel>
</rss>

