Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Highlighted
stjernvd
Contributor

Variable in script loading empty

Hi,

I have a set a variable name for my table in the script and for some reason it is loading blank, why?

Set $(table) = Product_Regions_$(vM);

TRACE 'tbl : $(table)';

(vM = peek('Months',-1, 'Months))

What I get in my loader is:

'tbl: '

I don't see what I am doing wrong.

1 Solution

Accepted Solutions
MVP
MVP

Re: Variable in script loading empty

Set table = Product_Regions_$(vM);


What is vM?

3 Replies
MVP
MVP

Re: Variable in script loading empty

Set table = Product_Regions_$(vM);


What is vM?

stjernvd
Contributor

Re: Variable in script loading empty

I see my error, silly me, thank you!!

Re: Variable in script loading empty

Looks like you have a stray single quote :

    (vM = peek('Months',-1, 'Months))


Hard to see even when I made it bold red.  It is before the second Months.