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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

load inline using string variables

Hi,

I'm pretty new to Qlikview.

My primary goal is to store values of variables in something like a map or table. I use the following code in my script. This is a simplified version:

let result = 1;

LOAD * INLINE [

        resultValue

        $(result)              

    ];   

This works fine. The value "1" is visible in the table. But when I change the code to use a string variable, it seems that no value is stored.

let result = "true";

LOAD * INLINE [

        resultValue

        $(result)              

    ];  

I have found many examples where people use integer variables or expressions (like =sum(...)) but no string variables.

Any idea what I do wrong? Is using "Load * Inline ...." the right way at all?

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try using single quotes:

let result = 'true';

LOAD * INLINE [

        resultValue

        $(result)              

    ];  


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try using single quotes:

let result = 'true';

LOAD * INLINE [

        resultValue

        $(result)              

    ];  


talk is cheap, supply exceeds demand
Not applicable
Author

OMG... so simple... this is probably the only thing I did not try.

Thank you for the fast answer!