<?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: path into variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517398#M437112</link>
    <description>&lt;P&gt;Because the .QVW is saved on the D-drive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;..\&amp;nbsp;is a relative path. the relative path is based on the location of the .QVW.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Dec 2018 13:24:47 GMT</pubDate>
    <dc:creator>avkeep01</dc:creator>
    <dc:date>2018-12-06T13:24:47Z</dc:date>
    <item>
      <title>path into variable</title>
      <link>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517330#M437100</link>
      <description>&lt;P&gt;Hi Everyone!&lt;/P&gt;&lt;P&gt;All my project related files/qvd's/qvs/etc are stored in D:\Data1\&amp;lt;file names&amp;gt;&lt;/P&gt;&lt;P&gt;So, I am using an variable as&lt;/P&gt;&lt;P&gt;SET v1= '.\'&lt;/P&gt;&lt;P&gt;But, what if the file is located in the C:\&amp;lt;file name&amp;gt; how write the path to store into an variable.&lt;/P&gt;&lt;P&gt;If I am using SET v2='\' it is searching in the 'D:\' and&amp;nbsp;throwing an error as 'File not found D:\Data1\&amp;lt;File Name&amp;gt;'&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any one help in understanding the same and what is the difference between&lt;/P&gt;&lt;P&gt;SET v1='..\' and SET v1='.\'&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 12:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517330#M437100</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2018-12-06T12:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: path into variable</title>
      <link>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517340#M437101</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;if you want to add drive as well you can keep a separate file contains all the variable with full path.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;include the file and use it. if you want to change the drive just change the filename&amp;nbsp; which is contains correct paths&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Hope it might useful&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 12:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517340#M437101</guid>
      <dc:creator>Somasundaram</dc:creator>
      <dc:date>2018-12-06T12:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: path into variable</title>
      <link>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517347#M437103</link>
      <description>Hey Somasundaram,&lt;BR /&gt;&lt;BR /&gt;Thank you for your response! I understand your process of storing the variables into a file and including the same.&lt;BR /&gt;&lt;BR /&gt;But, I want to know if there are 2 file file1 from D drive and file2 from E drive. How can I store them in a variable by using the SET.&lt;BR /&gt;&lt;BR /&gt;Yes! I am aware we can do this by the include file. But can you help be how to define in the SET.&lt;BR /&gt;&lt;BR /&gt;Set v1='D:\Data1\&amp;lt;&amp;gt;' to ????&lt;BR /&gt;&lt;BR /&gt;SET v2='E:\&amp;lt;&amp;gt;' or 'E:\Data\&amp;lt;&amp;gt;' to ????&lt;BR /&gt;&lt;BR /&gt;Is this even possible or else I have to include the variables from the include file!!!</description>
      <pubDate>Thu, 06 Dec 2018 12:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517347#M437103</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2018-12-06T12:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: path into variable</title>
      <link>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517359#M437105</link>
      <description>SET v1 ='D:\Data1\&lt;BR /&gt;SET v2 ='E:\Data1\'&lt;BR /&gt;&lt;BR /&gt;you can create the variables and include the file. while changing the drive just change the variable.&lt;BR /&gt;ex. if you want to point to D:.use $(V1)\&lt;BR /&gt;for E: $(V2)\&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Dec 2018 12:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517359#M437105</guid>
      <dc:creator>Somasundaram</dc:creator>
      <dc:date>2018-12-06T12:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: path into variable</title>
      <link>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517363#M437106</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/9436"&gt;@parvez933&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use SET and LET to define a variable. With SET you just basically enter the text, while with the help op LET you can make it dynamic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I understood I think there are two solutions&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. use an IF statement in the script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table: LOAD * FROM Datasource;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;IF $(v1) &amp;lt;&amp;gt; TO '????' THEN&amp;nbsp;&lt;/P&gt;&lt;P&gt;STORE Table into $(v2) ;&lt;/P&gt;&lt;P&gt;ELSE&amp;nbsp;&lt;/P&gt;&lt;P&gt;STORE Table into $(v1);&amp;nbsp;&lt;/P&gt;&lt;P&gt;END IF&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Make the variable dynamic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;LET v3 = IF('D:\Data\'&amp;lt;&amp;gt; '????','E:\Data\','D:\Data\';&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;STORE Table into $(v3);&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 12:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517363#M437106</guid>
      <dc:creator>avkeep01</dc:creator>
      <dc:date>2018-12-06T12:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: path into variable</title>
      <link>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517383#M437108</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/9436"&gt;@parvez933&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could check the error message, en when it exists then you pull the data from v2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SET ErrorMode = 0;&lt;/P&gt;&lt;P&gt;LOAD * FROM $(v1);&lt;/P&gt;&lt;P&gt;// Check the error message&lt;BR /&gt;Errors:&lt;BR /&gt;LOAD&lt;BR /&gt;'$(ScriptError)' AS Error&lt;BR /&gt;AutoGenerate (1);&lt;/P&gt;&lt;P&gt;IF LEN(PEEK('Error',-1,'Errors'))&amp;gt;0 THEN&lt;/P&gt;&lt;P&gt;// In case of error:&lt;BR /&gt;LOAD * FROM $(v2);&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 13:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517383#M437108</guid>
      <dc:creator>avkeep01</dc:creator>
      <dc:date>2018-12-06T13:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: path into variable</title>
      <link>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517390#M437110</link>
      <description>&lt;P&gt;Hey Thank You for the response!&lt;/P&gt;&lt;P&gt;But I am looking for something else.&lt;/P&gt;&lt;P&gt;Can I know! How can we read the data from 2 different files which are stored in different Drives , and how to store the path into an variable.&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;File1---&amp;gt; D:\Data\Datasource\File1&lt;/P&gt;&lt;P&gt;Since, my project is store in the same folder of D drive. I will store the path into a variable as&lt;/P&gt;&lt;P&gt;SET v1='..\' or SET v1='.\'&lt;/P&gt;&lt;P&gt;and I will use load * from $(v1)File1&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is working good as the project and file is located in the same folder of Data source.&lt;/P&gt;&lt;P&gt;The File2---&amp;gt;&amp;nbsp; D:\Else\Doing\File2&lt;/P&gt;&lt;P&gt;For which I used SET v2= '..\'&lt;/P&gt;&lt;P&gt;It is also working. Here the main thing is I want the Drive Names [D:\ or E:\] should be removed&lt;/P&gt;&lt;P&gt;In the same way! how can I store the file path which is stored in E drive without using the Drive name&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;File3----&amp;gt; E:\Dumb\nosense\File3&lt;/P&gt;&lt;P&gt;How to write it to avoid using the DRIVE name&lt;/P&gt;&lt;P&gt;Set v3='.\' or '..\' or '\Dumb\Nonsense\'&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 13:10:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517390#M437110</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2018-12-06T13:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: path into variable</title>
      <link>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517394#M437111</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 698px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1720iEB78A426503340A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 13:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517394#M437111</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2018-12-06T13:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: path into variable</title>
      <link>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517398#M437112</link>
      <description>&lt;P&gt;Because the .QVW is saved on the D-drive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;..\&amp;nbsp;is a relative path. the relative path is based on the location of the .QVW.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 13:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517398#M437112</guid>
      <dc:creator>avkeep01</dc:creator>
      <dc:date>2018-12-06T13:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: path into variable</title>
      <link>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517493#M437114</link>
      <description>Hey AV,&lt;BR /&gt;Thank you! For your response! I was not sure that path will depend on .qvw file.&lt;BR /&gt;It helps!&lt;BR /&gt;So can I make a statement that since qvw is in D drive, I can use ..\ in the variable and for E drive I have to create a new variable with absolute path.&lt;BR /&gt;Ex:&lt;BR /&gt;Qvw is in D drive. I can write as&lt;BR /&gt;Set v1= '..\';&lt;BR /&gt;To use E drive files I have to use complete path by storing in an excel r notepad.&lt;BR /&gt;Set v2= 'E:\file'; and no shortcuts to use E drive files as (..\ or \)</description>
      <pubDate>Thu, 06 Dec 2018 15:05:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517493#M437114</guid>
      <dc:creator>parvez933</dc:creator>
      <dc:date>2018-12-06T15:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: path into variable</title>
      <link>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517495#M437115</link>
      <description>&lt;P&gt;That's correct.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 15:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/path-into-variable/m-p/1517495#M437115</guid>
      <dc:creator>avkeep01</dc:creator>
      <dc:date>2018-12-06T15:07:51Z</dc:date>
    </item>
  </channel>
</rss>

