<?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 Uploading Variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Uploading-Variables/m-p/1279463#M623034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to upload a list of variables into my script from an excel file - previously I had a tab on the UI that I manually updated each month but wanted to automate it as much as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a Load statement as below but the variables do not seem to be changing when I reload. I use the variables later in the script to calculate costs e.g Hourly rate x Time on site etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be grateful for some help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Variable, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;[Mapping data\Variables.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let $([Subcontractors]) =[Subcontractors]; &lt;/P&gt;&lt;P&gt;Let $([Materials]) = [Materials];&lt;/P&gt;&lt;P&gt;Let $([Hourly Rate]) = [Hourly Rate];&lt;/P&gt;&lt;P&gt;Let $([Delivery Cost]) = [Delivery Cost];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2017 11:19:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-15T11:19:44Z</dc:date>
    <item>
      <title>Uploading Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Uploading-Variables/m-p/1279463#M623034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to upload a list of variables into my script from an excel file - previously I had a tab on the UI that I manually updated each month but wanted to automate it as much as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a Load statement as below but the variables do not seem to be changing when I reload. I use the variables later in the script to calculate costs e.g Hourly rate x Time on site etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be grateful for some help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Variable, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;[Mapping data\Variables.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let $([Subcontractors]) =[Subcontractors]; &lt;/P&gt;&lt;P&gt;Let $([Materials]) = [Materials];&lt;/P&gt;&lt;P&gt;Let $([Hourly Rate]) = [Hourly Rate];&lt;/P&gt;&lt;P&gt;Let $([Delivery Cost]) = [Delivery Cost];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 11:19:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Uploading-Variables/m-p/1279463#M623034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-15T11:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Uploading-Variables/m-p/1279464#M623037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jenny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD Variable,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Mapping data\Variables.xlsx]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let $([Subcontractors]) = $([Subcontractors]);&lt;/P&gt;&lt;P&gt;Let $([Materials]) = $([Materials]);&lt;/P&gt;&lt;P&gt;Let $([Hourly Rate]) = $([Hourly Rate]);&lt;/P&gt;&lt;P&gt;Let $([Delivery Cost]) = $([Delivery Cost]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 14:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Uploading-Variables/m-p/1279464#M623037</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-02-15T14:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Uploading-Variables/m-p/1279465#M623038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the variables to work last week by using the below script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vVariable1 = fieldvalue('Variable',1);&lt;/P&gt;&lt;P&gt;let [Subcontractors Birmingham] = fieldvalue('VarValue',1);&lt;/P&gt;&lt;P&gt;let $(vVariable1) = $(Subcontractors Birmingham);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vVariable2 = fieldvalue('Variable',2);&lt;/P&gt;&lt;P&gt;let [Materials Birmingham] = fieldvalue('VarValue',2);&lt;/P&gt;&lt;P&gt;let $(vVariable2) = $(Materials Birmingham);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vVariable3 = fieldvalue('Variable',3);&lt;/P&gt;&lt;P&gt;let [Hourly Rate Birmingham] = fieldvalue('VarValue',3);&lt;/P&gt;&lt;P&gt;let $(vVariable3) = $(Hourly Rate Birmingham);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vVariable4 = fieldvalue('Variable',4);&lt;/P&gt;&lt;P&gt;let [Delivery Cost Birmingham] = fieldvalue('VarValue',4);&lt;/P&gt;&lt;P&gt;let $(vVariable4) = $(Delivery Cost Birmingham);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked last week but now comes up with the below error - it looks like it is using the first few variables from my table but then not the rest? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error in expression:&lt;/P&gt;&lt;P&gt;* is not a valid function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ServData:&lt;/P&gt;&lt;P&gt;LOAD [Contract Number] as [Contract Num], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Premises Number], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Service Branch Number], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Service Branch Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Negotiating Branch Number], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Negotiating Branch Name], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Total time], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Total Calls], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Contract Number]&amp;amp;'-'&amp;amp; [Premises Number] as UID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; applymap('KAlocal',[Negotiating Branch Number],'Other') as [KA/Local2],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; applymap('ProductDesc2',[Product Code],'Other') as [ProductDesc],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; applymap('ProductGroup2',[Product Code],'Other') as [ProductGroup],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; applymap('CallCategory', [Negotiating Branch Number],'Other') as CallCategory,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='21' and ([Negotiating Branch Number]&amp;lt;&amp;gt;'98'),20.79*([Total time]/60),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='22' and ([Negotiating Branch Number]&amp;lt;&amp;gt;'98'),19.25*([Total time]/60),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='23' and ([Negotiating Branch Number]&amp;lt;&amp;gt;'98'),*([Total time]/60),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='24' and ([Negotiating Branch Number]&amp;lt;&amp;gt;'98'),*([Total time]/60),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='26' and ([Negotiating Branch Number]&amp;lt;&amp;gt;'98'),*([Total time]/60),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='27' and ([Negotiating Branch Number]&amp;lt;&amp;gt;'98'),*([Total time]/60),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='21' and ([Negotiating Branch Number]='98'),*([Total time]/60),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='22' and ([Negotiating Branch Number]='98'),*([Total time]/60),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='23' and ([Negotiating Branch Number]='98'),*([Total time]/60),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='24' and ([Negotiating Branch Number]='98'),*([Total time]/60),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='26' and ([Negotiating Branch Number]='98'),*([Total time]/60),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='27' and ([Negotiating Branch Number]='98'),*([Total time]/60),0)))))))))))) as [Direct Service Cost],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='21' and ([Negotiating Branch Number]&amp;lt;&amp;gt;'98'),120.72*[Total Calls],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='22' and ([Negotiating Branch Number]&amp;lt;&amp;gt;'98'),130.32*[Total Calls],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='23' and ([Negotiating Branch Number]&amp;lt;&amp;gt;'98'),*[Total Calls],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='24' and ([Negotiating Branch Number]&amp;lt;&amp;gt;'98'),*[Total Calls],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='26' and ([Negotiating Branch Number]&amp;lt;&amp;gt;'98'),*[Total Calls],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='27' and ([Negotiating Branch Number]&amp;lt;&amp;gt;'98'),*[Total Calls],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='21' and ([Negotiating Branch Number]='98'),*[Total Calls],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='22' and ([Negotiating Branch Number]='98'),*[Total Calls],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='23' and ([Negotiating Branch Number]='98'),*[Total Calls],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='24' and ([Negotiating Branch Number]='98'),*[Total Calls],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='26' and ([Negotiating Branch Number]='98'),*[Total Calls],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Service Branch Number]='27' and ([Negotiating Branch Number]='98'),*[Total Calls],0)))))))))))) as [Delivery Cost]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Visits\Visits*.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Data)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE([Service Date] &amp;gt; '31/01/2016' and [Service Date] &amp;lt; '01/02/2017')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 12:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Uploading-Variables/m-p/1279465#M623038</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-22T12:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Uploading-Variables/m-p/1279466#M623039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look on this: &lt;A href="http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/" title="http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/"&gt;http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/&lt;/A&gt; how variables could be externally maintained and loaded within a small loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 15:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Uploading-Variables/m-p/1279466#M623039</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-02-22T15:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Uploading-Variables/m-p/1279467#M623040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is amazing! I have got the previous script to work by changing some of the names (I think it was confused with similar names) but this script simplifies it all even further&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 17:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Uploading-Variables/m-p/1279467#M623040</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-22T17:54:54Z</dc:date>
    </item>
  </channel>
</rss>

