<?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 variables into Qlikview - period hard coded in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-variables-into-Qlikview-period-hard-coded/m-p/1628496#M446268</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Try to avoid the use of the vContent to temporary store the expression code, but instead do the peek() when defining the variable like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;VariableList:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD VName,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; VContent&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; [..\..\06_Sys\Config\Variable List.xlsx]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; (ooxml, embedded labels, table is Sheet1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Where not isnull(VName);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;For vCount = 0 to NoOfRows('VariableList')-1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; Let vName=Peek('VName',vCount,'VariableList');&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; Let $(vName)=Peek('VContent',vCount,'VariableList');&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#808080"&gt;&amp;nbsp; //Let $(vName)='$(vContent)';&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Next vCount&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Let vCount=null();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Let vContent=null();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Let vName=null();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Drop Table VariableList;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2019 09:48:47 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2019-09-26T09:48:47Z</dc:date>
    <item>
      <title>Loading variables into Qlikview - period hard coded</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variables-into-Qlikview-period-hard-coded/m-p/1628486#M446266</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have a spreadsheet full of variables, which I load into Qlikview using&amp;nbsp;&lt;/P&gt;&lt;P&gt;$(Must_Include=..\..\06_sys\config\Template_STD_Variables.txt);&lt;/P&gt;&lt;P&gt;Template_STD_Variables.txt&amp;nbsp; &amp;nbsp; contains the following script&lt;/P&gt;&lt;P&gt;VariableList:&lt;BR /&gt;LOAD VName,&lt;BR /&gt;VContent&lt;BR /&gt;FROM&lt;BR /&gt;[..\..\06_Sys\Config\Variable List.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1)&lt;BR /&gt;Where not isnull(VName);&lt;/P&gt;&lt;P&gt;For vCount = 0 to NoOfRows('VariableList')-1&lt;BR /&gt;Let vName=Peek('VName',vCount,'VariableList');&lt;BR /&gt;Let vContent=Peek('VContent',vCount,'VariableList');&lt;BR /&gt;Let $(vName)='$(vContent)';&lt;BR /&gt;Next vCount&lt;BR /&gt;Let vCount=null();&lt;BR /&gt;Let vContent=null();&lt;BR /&gt;Let vName=null();&lt;BR /&gt;Drop Table VariableList;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is that I am unable to amend the periods in the app after they have loaded.&lt;/P&gt;&lt;P&gt;For example this is the variable that I want to load into the app&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;=sum({$&amp;lt;period ={"&amp;gt;=$(vStartPeriod_IS_CY)&amp;lt;=$(vEndPeriod_CY)"}, pl_line_mgmt = {'Gross investment return'}, bussline_abrev = {'PE'}&amp;gt;} IS_Investment_Adj_GBP) *-1&lt;BR /&gt;+&lt;BR /&gt;sum({$&amp;lt;period ={"&amp;gt;=$(vStartPeriod_IS_CY)&amp;lt;=$(vEndPeriod_CY)"}, pl_line_mgmt = {'Gross investment return'}, bussline_abrev = {'PE'}&amp;gt;} IS_Investment_GBP)&amp;nbsp; *-1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;What actually is in the variable in the app is ie the periods are hardcopded and cant be changed in the app.&lt;/P&gt;&lt;P&gt;How can i just load the variable without the periods in them&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;period ={"&amp;gt;=201801&amp;lt;=201806"}, pl_line_mgmt = {'Gross investment return'}, bussline_abrev = {'PE'}&amp;gt;} IS_Investment_Adj_GBP) *-1&lt;BR /&gt;+&lt;BR /&gt;sum({$&amp;lt;period ={"&amp;gt;=201801&amp;lt;=201806"}, pl_line_mgmt = {'Gross investment return'}, bussline_abrev = {'PE'}&amp;gt;} IS_Investment_GBP) *-1&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variables-into-Qlikview-period-hard-coded/m-p/1628486#M446266</guid>
      <dc:creator>paul_ripley</dc:creator>
      <dc:date>2024-11-16T02:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Loading variables into Qlikview - period hard coded</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variables-into-Qlikview-period-hard-coded/m-p/1628496#M446268</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Try to avoid the use of the vContent to temporary store the expression code, but instead do the peek() when defining the variable like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;VariableList:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD VName,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; VContent&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; [..\..\06_Sys\Config\Variable List.xlsx]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; (ooxml, embedded labels, table is Sheet1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Where not isnull(VName);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;For vCount = 0 to NoOfRows('VariableList')-1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; Let vName=Peek('VName',vCount,'VariableList');&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; Let $(vName)=Peek('VContent',vCount,'VariableList');&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#808080"&gt;&amp;nbsp; //Let $(vName)='$(vContent)';&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Next vCount&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Let vCount=null();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Let vContent=null();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Let vName=null();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Drop Table VariableList;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 09:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variables-into-Qlikview-period-hard-coded/m-p/1628496#M446268</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-09-26T09:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Loading variables into Qlikview - period hard coded</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variables-into-Qlikview-period-hard-coded/m-p/1628540#M446272</link>
      <description>&lt;P&gt;thanks so much that worked and is super helpful!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 11:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variables-into-Qlikview-period-hard-coded/m-p/1628540#M446272</guid>
      <dc:creator>paul_ripley</dc:creator>
      <dc:date>2019-09-26T11:29:48Z</dc:date>
    </item>
  </channel>
</rss>

