<?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 Introduce a field calculated with a variable into a LOAD statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Introduce-a-field-calculated-with-a-variable-into-a-LOAD/m-p/391594#M696429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this seems like something pretty straightforward - but it doesn't work, so it cannot be that straightforward...&lt;/P&gt;&lt;P&gt;I define a variable (a numeric value) on the "Main" tab of my script. On another tab, I want to introduce into a LOAD statement (from a qvd) a new field calculated from&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the sum of two fields from the table I am just loading (both of which are numeric values) multiplied with that numeric variable.&lt;/P&gt;&lt;P&gt;When I try that, I keep getting the script error message that a closing bracket is missing - but the bracketing is correct. I've checked it. In the error message, the variable is already neatly resolved, so that's all right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody give me a hint here, there must be something one has to keep in mind when using variables that I missed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Apr 2013 14:57:21 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2013-04-23T14:57:21Z</dc:date>
    <item>
      <title>Introduce a field calculated with a variable into a LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Introduce-a-field-calculated-with-a-variable-into-a-LOAD/m-p/391594#M696429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this seems like something pretty straightforward - but it doesn't work, so it cannot be that straightforward...&lt;/P&gt;&lt;P&gt;I define a variable (a numeric value) on the "Main" tab of my script. On another tab, I want to introduce into a LOAD statement (from a qvd) a new field calculated from&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the sum of two fields from the table I am just loading (both of which are numeric values) multiplied with that numeric variable.&lt;/P&gt;&lt;P&gt;When I try that, I keep getting the script error message that a closing bracket is missing - but the bracketing is correct. I've checked it. In the error message, the variable is already neatly resolved, so that's all right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody give me a hint here, there must be something one has to keep in mind when using variables that I missed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 14:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Introduce-a-field-calculated-with-a-variable-into-a-LOAD/m-p/391594#M696429</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-04-23T14:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Introduce a field calculated with a variable into a LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Introduce-a-field-calculated-with-a-variable-into-a-LOAD/m-p/391595#M696430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Show us your script - there might be something you're missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 15:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Introduce-a-field-calculated-with-a-variable-into-a-LOAD/m-p/391595#M696430</guid>
      <dc:creator />
      <dc:date>2013-04-23T15:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Introduce a field calculated with a variable into a LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Introduce-a-field-calculated-with-a-variable-into-a-LOAD/m-p/391596#M696431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for helping!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I post the code of my script - as much of it as is necessary for the question to become clear anyway.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 15:32:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Introduce-a-field-calculated-with-a-variable-into-a-LOAD/m-p/391596#M696431</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-04-23T15:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Introduce a field calculated with a variable into a LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Introduce-a-field-calculated-with-a-variable-into-a-LOAD/m-p/391597#M696432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this expression just remove outer brackets it should work&lt;/P&gt;&lt;P&gt;(ITEM_PACKTIMES.SALES_PACKTIME + ITEM_PACKTIMES.SALES_PROCTIME) * $(v_Min_Price)&amp;nbsp; as Item_Price &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 15:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Introduce-a-field-calculated-with-a-variable-into-a-LOAD/m-p/391597#M696432</guid>
      <dc:creator />
      <dc:date>2013-04-23T15:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Introduce a field calculated with a variable into a LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Introduce-a-field-calculated-with-a-variable-into-a-LOAD/m-p/391598#M696433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have defined v_Min_Price with a decimal comma. Number literals in script (and the variable contents are being treated as a number literal after expansion) have to be written with a decimal point, I think. Commas in script are syntactic elements, so that's probably why it throws errors, finding a comma where it is not expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 15:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Introduce-a-field-calculated-with-a-variable-into-a-LOAD/m-p/391598#M696433</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2013-04-23T15:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Introduce a field calculated with a variable into a LOAD statement</title>
      <link>https://community.qlik.com/t5/QlikView/Introduce-a-field-calculated-with-a-variable-into-a-LOAD/m-p/391599#M696434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done both - I removed the outer brackets and I replaced the comma with a dot in the variable definition - and it works.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;This is solved - proceed to next problem &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 16:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Introduce-a-field-calculated-with-a-variable-into-a-LOAD/m-p/391599#M696434</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-04-23T16:03:55Z</dc:date>
    </item>
  </channel>
</rss>

