Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Relative path

hi,

can any body please let me know what is relative path with example.

regards

Mahesh T

1 Solution

Accepted Solutions
ThornOfCrowns
Specialist II
Specialist II

The part of Bill's post to remember is the '..\..\' part which means look down the releative path from where you are at that point.

A relative path is a way to specify the location of a directory relative to another directory.  For example, suppose your data is in C:\Sample\Data and your dashboard is in C:\Sample\Dashboards.  The absolute path for the data would be C:\Sample\Data.  The relative path from C:\Sample\Dashboards to C:\Sample\Data would be ..\Data.

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Mahesh

This script line sets a variable to relative folder path.

let vFolderConfig = '..\..\Config\' ;

Later in the script I load a spreadsheet using a dollar expansion of the variable.

LOAD

  USAGE,

  APPLICATION,

  VALUE,

  VARIABLE

FROM $(vFolderConfig)Variables.xlsx  (ooxml, embedded labels, table is Variables)

WHERE APPLICATION = 'DASH' ;

;

Best Regards,    Bill

maxgro
MVP
MVP

path relative to what?

path is relative to the .qvw file.

ThornOfCrowns
Specialist II
Specialist II

The part of Bill's post to remember is the '..\..\' part which means look down the releative path from where you are at that point.

A relative path is a way to specify the location of a directory relative to another directory.  For example, suppose your data is in C:\Sample\Data and your dashboard is in C:\Sample\Dashboards.  The absolute path for the data would be C:\Sample\Data.  The relative path from C:\Sample\Dashboards to C:\Sample\Data would be ..\Data.