<?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: Loading Formulas from excel removes doller sign in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Loading-Formulas-from-excel-removes-doller-sign/m-p/1659840#M49481</link>
    <description>&lt;P&gt;Thanks rob for the quick reply ,&lt;/P&gt;&lt;P&gt;my loading script is below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; 
%Formulas:
LOAD
 [zFormula Name%],
 zFormula%,
 zFormulaTextbox%,
 [zFormula Description%]
FROM
[lib://$(vLocalData_Common)/Formulas.xls]
 (biff, embedded labels, table is Formulas$)
;

// Setup variable with number of formulas
Let vNoRows = noofrows('%Formulas');
// Loop over all rows and setup a variable per formula
For I = 0 to $(vNoRows) - 1
 Let vVarName = peek('zFormula Name%', $(I), '%Formulas');
 Let vVarValu = peek('zFormula%', $(I), '%Formulas');
 Let vVarValuTextbox = peek('zFormulaTextbox%', $(I), '%Formulas');
 Set $(vVarName) = "$(vVarValu)";
 Set $(vVarName)_Textbox = "$(vVarValuTextbox)";
Next
// Set all unnecessary variable to null()
Let vVarName = null();
Let vVarValu = null();
Let vNoRows  = null();
Let I = null();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2019 15:29:15 GMT</pubDate>
    <dc:creator>anwarbham</dc:creator>
    <dc:date>2019-12-20T15:29:15Z</dc:date>
    <item>
      <title>Loading Formulas from excel removes doller sign</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Formulas-from-excel-removes-doller-sign/m-p/1659823#M49474</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;im loading formulas as variables in qlik sense from an excel file&amp;nbsp;&lt;/P&gt;&lt;P&gt;example&amp;nbsp; i have the below in an excel cell&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;version_code={10},currency_conversion_type_id={1,2},time_calculation_code = {'YTD'}, currency_code = {'EUR'},profit_center_code =- {1000}, adjust_code =- {'non-operating items'}, MonthNumber = {$(=num(Month(Today())))}&amp;gt;}[value_qty])/1000&lt;/P&gt;&lt;P&gt;but for some reason after the import when i go to use the variable ie $(myvar)&lt;/P&gt;&lt;P&gt;Qlik removes the trailing Doller sign&amp;nbsp;&lt;/P&gt;&lt;P&gt;so&amp;nbsp;MonthNumber = {$(=num(Month(Today())))}&lt;/P&gt;&lt;P&gt;becomes&amp;nbsp;MonthNumber = {}&lt;/P&gt;&lt;P&gt;how can i resolve this . ive tried replace function to substitute $ with&amp;nbsp;&lt;BR /&gt;! then at runtime replace ! with $ but still no success.&lt;/P&gt;&lt;P&gt;any help will be appreaciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Formulas-from-excel-removes-doller-sign/m-p/1659823#M49474</guid>
      <dc:creator>anwarbham</dc:creator>
      <dc:date>2024-11-16T03:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Formulas from excel removes doller sign</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Formulas-from-excel-removes-doller-sign/m-p/1659828#M49476</link>
      <description>&lt;P&gt;Your loading script is incorrect.&amp;nbsp; You are probably using LET/SET to create the variable whereas you should be using Peek(). Something like this:&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;// First load the variables from an external source, in this example, an xls file.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Variables:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;LOAD&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;Varname&lt;/SPAN&gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;Varvalue&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;FROM&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Variables_Input.xls&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(&lt;SPAN class="s2"&gt;biff&lt;/SPAN&gt;, &lt;SPAN class="s2"&gt;embedded&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;labels&lt;/SPAN&gt;, &lt;SPAN class="s2"&gt;table&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;is&lt;/SPAN&gt; MyVars1$)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;// Process each row of the Variables table&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;FOR&lt;/SPAN&gt; i = 0 &lt;SPAN class="s2"&gt;to&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;NoOfRows&lt;/SPAN&gt;('Variables')-1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;LET&lt;/SPAN&gt; vVarname = &lt;SPAN class="s2"&gt;peek&lt;/SPAN&gt;('Varname',&lt;SPAN class="s4"&gt;&lt;I&gt;$(i)&lt;/I&gt;&lt;/SPAN&gt;,'Variables');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;LET&lt;/SPAN&gt; &lt;SPAN class="s4"&gt;&lt;I&gt;$(vVarname)&lt;/I&gt;&lt;/SPAN&gt;=&lt;SPAN class="s2"&gt;peek&lt;/SPAN&gt;('Varvalue',&lt;SPAN class="s4"&gt;&lt;I&gt;$(i)&lt;/I&gt;&lt;/SPAN&gt;,'Variables');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;NEXT&lt;/SPAN&gt; i&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;// Clean up temp script vars&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;SET&lt;/SPAN&gt; i=;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;SET&lt;/SPAN&gt; vVarname=;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;DROP&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;TABLE&lt;/SPAN&gt; Variables; &lt;SPAN class="s1"&gt;// No longer need table&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN class="s1"&gt;Please post your script if you have further questions. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 15:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Formulas-from-excel-removes-doller-sign/m-p/1659828#M49476</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-12-20T15:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Formulas from excel removes doller sign</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Formulas-from-excel-removes-doller-sign/m-p/1659840#M49481</link>
      <description>&lt;P&gt;Thanks rob for the quick reply ,&lt;/P&gt;&lt;P&gt;my loading script is below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; 
%Formulas:
LOAD
 [zFormula Name%],
 zFormula%,
 zFormulaTextbox%,
 [zFormula Description%]
FROM
[lib://$(vLocalData_Common)/Formulas.xls]
 (biff, embedded labels, table is Formulas$)
;

// Setup variable with number of formulas
Let vNoRows = noofrows('%Formulas');
// Loop over all rows and setup a variable per formula
For I = 0 to $(vNoRows) - 1
 Let vVarName = peek('zFormula Name%', $(I), '%Formulas');
 Let vVarValu = peek('zFormula%', $(I), '%Formulas');
 Let vVarValuTextbox = peek('zFormulaTextbox%', $(I), '%Formulas');
 Set $(vVarName) = "$(vVarValu)";
 Set $(vVarName)_Textbox = "$(vVarValuTextbox)";
Next
// Set all unnecessary variable to null()
Let vVarName = null();
Let vVarValu = null();
Let vNoRows  = null();
Let I = null();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 15:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Formulas-from-excel-removes-doller-sign/m-p/1659840#M49481</guid>
      <dc:creator>anwarbham</dc:creator>
      <dc:date>2019-12-20T15:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Formulas from excel removes doller sign</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Formulas-from-excel-removes-doller-sign/m-p/1659888#M49484</link>
      <description>&lt;P&gt;This is where things are going wrong:&lt;/P&gt;&lt;PRE&gt;Set $(vVarName) = "$(vVarValu)";
 Set $(vVarName)_Textbox = "$(vVarValuTextbox)";&lt;/PRE&gt;&lt;P&gt;You should only use Peek() to LET the variables.&amp;nbsp; There seems to be some redundant work going on in your code as well. Can you post a few lines of the variables file to help us understand what the intent is?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 18:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Formulas-from-excel-removes-doller-sign/m-p/1659888#M49484</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-12-20T18:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Formulas from excel removes doller sign</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Formulas-from-excel-removes-doller-sign/m-p/1660663#M49556</link>
      <description>&lt;P&gt;hope you had a good xmas below is the formula file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;zFormula Name%&lt;/TD&gt;&lt;TD&gt;zFormula%&lt;/TD&gt;&lt;TD&gt;zFormulaTextbox%&lt;/TD&gt;&lt;TD&gt;zFormula Description%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;vActual&lt;/TD&gt;&lt;TD&gt;Num(sum({$&amp;lt;currency_conversion_type_id={1}&amp;gt;}[value_qty])&lt;BR /&gt;+&lt;BR /&gt;sum({$&amp;lt;currency_conversion_type_id={2}&amp;gt;}[value_qty])&lt;BR /&gt;/1000,'#,##0')&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Actual&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;vActual_FY&lt;/TD&gt;&lt;TD&gt;sum({$&amp;lt;version_code={10},currency_conversion_type_id={1,2},time_calculation_code = {'YTD'},currency_code = {'EUR'},profit_center_code =- {1000}, adjust_code =- {'non-operating items'}, MonthNumber ={$(=max(MonthNumber))} &amp;gt;}[value_qty])/1000&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;vActual_FY_PY&lt;/TD&gt;&lt;TD&gt;sum({$&amp;lt;version_code={10},currency_conversion_type_id={1,2},time_calculation_code = {'YTD'}, currency_code = {'EUR'},profit_center_code =- {1000}, adjust_code =- {'non-operating items'},Year = {$(=Year-1)}, MonthNumber ={$(=max(MonthNumber))} &amp;gt;}[value_qty])/1000&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;vActual_Periodic&lt;/TD&gt;&lt;TD&gt;sum({$&amp;lt;version_code={10},currency_conversion_type_id={1,2},time_calculation_code = {'MONTH'}, currency_code = {'EUR'},profit_center_code =- {1000}, adjust_code =- {'non-operating items'}&amp;gt;}[value_qty])/1000&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 26 Dec 2019 08:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Formulas-from-excel-removes-doller-sign/m-p/1660663#M49556</guid>
      <dc:creator>anwarbham</dc:creator>
      <dc:date>2019-12-26T08:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Formulas from excel removes doller sign</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Formulas-from-excel-removes-doller-sign/m-p/1661064#M49624</link>
      <description>&lt;P&gt;Use the script as I showed above and modify the LET statements to use your column names:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;LET&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;vVarname =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;peek&lt;/SPAN&gt;('zFormulaName%',&lt;SPAN class="s4"&gt;&lt;I&gt;$(i)&lt;/I&gt;&lt;/SPAN&gt;,'%Formulas');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;LET&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;&lt;I&gt;$(vVarname)&lt;/I&gt;&lt;/SPAN&gt;=&lt;SPAN class="s2"&gt;peek&lt;/SPAN&gt;('zFormula%',&lt;SPAN class="s4"&gt;&lt;I&gt;$(i)&lt;/I&gt;&lt;/SPAN&gt;,'%Formulas');&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;LET&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;&lt;I&gt;$(vVarname)_Textbox&amp;nbsp;&lt;/I&gt;&lt;/SPAN&gt;=&lt;SPAN class="s2"&gt;peek&lt;/SPAN&gt;('zFormulaTextbox%',&lt;SPAN class="s4"&gt;&lt;I&gt;$(i)&lt;/I&gt;&lt;/SPAN&gt;,'%Formulas');&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 16:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Formulas-from-excel-removes-doller-sign/m-p/1661064#M49624</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-12-27T16:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Formulas from excel removes doller sign</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Formulas-from-excel-removes-doller-sign/m-p/1661071#M49625</link>
      <description>&lt;P&gt;Thanks that has worked now the formulas work from excel with multiple $ signs&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 16:47:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Formulas-from-excel-removes-doller-sign/m-p/1661071#M49625</guid>
      <dc:creator>anwarbham</dc:creator>
      <dc:date>2019-12-27T16:47:16Z</dc:date>
    </item>
  </channel>
</rss>

