<?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: variable from prj folder having issues in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/variable-from-prj-folder-having-issues/m-p/1759083#M453928</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/124914"&gt;@krishnajamylavarapu16&lt;/a&gt;&amp;nbsp; I think the better way to handle this would be to just put all the variables etc. into a text file and use the Include function to pull that straight in from the text file instead of trying to go at is as you are currently.&amp;nbsp; Here is the Help link on Include function:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/SystemVariables/Include.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/SystemVariables/Include.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2020 20:18:55 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2020-11-05T20:18:55Z</dc:date>
    <item>
      <title>variable from prj folder having issues</title>
      <link>https://community.qlik.com/t5/QlikView/variable-from-prj-folder-having-issues/m-p/1756304#M453789</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I reloaded my report from prj folder and stored variables into a qvd file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For chart dimensions I use =$(vDim.RptPeriod) . When i reloaded the report from prj folder, the expression for a single variable is as below :&amp;nbsp;&lt;/P&gt;&lt;P&gt;vDim.RptPeriod&amp;nbsp; =&amp;nbsp; if(Period_Key&amp;gt;==FieldValue('RptPeriod_Key', FieldIndex('RptPeriod_Key', =Max(RptPeriod_Key)) + 5)&lt;BR /&gt;and Period_Key&amp;lt;==Max(RptPeriod_Key), Period)&lt;/P&gt;&lt;P&gt;In the original report, the variable value should be as below :&lt;/P&gt;&lt;P&gt;vDim.RptPeriod = if(Period_Key&amp;gt;=$(vMinRptPeriod) and Period_Key&amp;lt;=$(vMaxRptPeriod), Period)&lt;/P&gt;&lt;P&gt;vMinRptPeriod = Max(RptPeriod_Key)&lt;/P&gt;&lt;P&gt;vMinRptPeriod = FieldValue('RptPeriod_Key', FieldIndex('RptPeriod_Key', $(vMaxRptPeriod)) + 5)&lt;/P&gt;&lt;P&gt;As I am loading the variables from prj folder, the variable has changed. This is throwing error on the report and the error is - //Error in Calculated Dimension&lt;/P&gt;&lt;P&gt;Request help on this.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 14:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-from-prj-folder-having-issues/m-p/1756304#M453789</guid>
      <dc:creator>krishnajamylavarapu16</dc:creator>
      <dc:date>2020-10-27T14:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: variable from prj folder having issues</title>
      <link>https://community.qlik.com/t5/QlikView/variable-from-prj-folder-having-issues/m-p/1756308#M453790</link>
      <description>&lt;P&gt;Below is the code i have used to store and load variable values :&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Added to store varaibles&lt;BR /&gt;VariableNames:&lt;BR /&gt;LOAD Name AS VariableName&lt;/P&gt;&lt;P&gt;FROM [FileName-prj\AllProperties.xml] (XmlSimple, Table is [AllProperties/VariableProperties/VariableProperties]);&lt;/P&gt;&lt;P&gt;FOR i=0 TO NoOfRows('VariableNames')&lt;BR /&gt;LET varName = Peek('VariableName', $(i), 'VariableNames');&lt;BR /&gt;LET varValue = $(varName);&lt;BR /&gt;&lt;BR /&gt;Variables:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;'$(varName)' AS VariableName,&lt;BR /&gt;'$(varValue)' AS VariableValue&lt;BR /&gt;AutoGenerate 1;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;STORE Variables INTO Variables.qvd (QVD);&lt;BR /&gt;DROP Tables VariableNames, Variables;&lt;/P&gt;&lt;P&gt;// Added to Load variables from QVD File&lt;/P&gt;&lt;P&gt;Variables:&lt;BR /&gt;LOAD VariableName,&lt;BR /&gt;VariableValue&lt;BR /&gt;FROM Variables.qvd (qvd);&lt;/P&gt;&lt;P&gt;FOR i=0 TO NoOfRows('Variables')&lt;BR /&gt;LET vVar = Peek('VariableName', $(i), 'Variables');&lt;BR /&gt;LET vVal = Peek('VariableValue', $(i), 'Variables');&lt;BR /&gt;&lt;BR /&gt;LET '$(vVar)' = '$(vVal)';&lt;BR /&gt;NEXT&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 14:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-from-prj-folder-having-issues/m-p/1756308#M453790</guid>
      <dc:creator>krishnajamylavarapu16</dc:creator>
      <dc:date>2020-10-27T14:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: variable from prj folder having issues</title>
      <link>https://community.qlik.com/t5/QlikView/variable-from-prj-folder-having-issues/m-p/1759083#M453928</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/124914"&gt;@krishnajamylavarapu16&lt;/a&gt;&amp;nbsp; I think the better way to handle this would be to just put all the variables etc. into a text file and use the Include function to pull that straight in from the text file instead of trying to go at is as you are currently.&amp;nbsp; Here is the Help link on Include function:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/SystemVariables/Include.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/SystemVariables/Include.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 20:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-from-prj-folder-having-issues/m-p/1759083#M453928</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-11-05T20:18:55Z</dc:date>
    </item>
  </channel>
</rss>

