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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Add Variable to Load Script

Hi,

I am trying to load data using a variable. Basically I want to change my Where statement into a variable on load. The value for the variable will be manually input into an input box on the qlikview report.

Currently my where statement reads as follows



where

[Customer_Number] = '7527301'

;

I have created the variable 'vCustomer' but am now lost on how i make the connection between the where statement and the variable name





1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hello,

It should look like

SET vCustomer = '7527301'; Table:LOAD *FROM File.qvd (qvd) // or whatever sourceWHERE [Customer_Number] = $(vCustomer);


Hope that helps

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hello,

It should look like

SET vCustomer = '7527301'; Table:LOAD *FROM File.qvd (qvd) // or whatever sourceWHERE [Customer_Number] = $(vCustomer);


Hope that helps

Not applicable
Author

Perfect.

Thanks you very much