Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

vinafidalgo
Contributor

Variables not working on browser

Hello,

I've developed an P&L application (Profits and Losses), I've used 3 variables on Qlik Sense Desktop and they worked fine.

But when I uploaded the document to the server, the variables aren't working anymore.

Anyone can help me?

Tags (1)
1 Solution

Accepted Solutions
vinafidalgo
Contributor

Re: Variables not working on browser

Hi,

I've figured out a way to make it work.

I had to declare the variables through script again, the variables created by the wizard on Qlik Sense Desktop do not work when accessing through the browser.

9 Replies
ogster1974
Honored Contributor II

Re: Variables not working on browser

Are you referencing any file locations in your variables that might have changed during the move to a server environment?

brunobertels
Valued Contributor

Re: Variables not working on browser

Hi Vinicius

Do you use an extension in QSense Desktop such as Qsvariable ?

If yes , this extension must also be installed on server to work properly

Regards

Bruno

vinafidalgo
Contributor

Re: Variables not working on browser

Hello,

I don't have any extensions.

The QVF is attached in this post.

vinafidalgo
Contributor

Re: Variables not working on browser

Hi,

I'm not referencing to file locations, these are the definition of the three variables:

v_Ano = Ano-1

-------------------

v_Mes =

if(Mês = 1, 12,

Mês-1)

-------------------

v_MesAtual = GetFieldSelections(Mês)

brunobertels
Valued Contributor

Re: Variables not working on browser

Hi

Not sure but could you test your mesure by changing doublequote with single quote :

this  with single quote '

(sum(Percentual))

-

(

if(Mês = 1,

sum({<Mês={'$(=$(v_Mes))' },Ano = {'$(=$(v_Ano))'}  >} Percentual),

    sum({<Mês={'$(=$(v_Mes))'} >} Percentual)

    )

)

(sum(Percentual))

-

(

if(Mês = 1,

rather than double quote "

sum({<Mês={"$(=$(v_Mes))" },Ano = {"$(=$(v_Ano))" }  >} Percentual),

    sum({<Mês={"$(=$(v_Mes))" } >} Percentual)

    )

)

vinafidalgo
Contributor

Re: Variables not working on browser

Still no success Bruno.

I also tried to create a variable with a single text and the text doesn't appear when accessing through the browser.

vinafidalgo
Contributor

Re: Variables not working on browser

Hi,

I've figured out a way to make it work.

I had to declare the variables through script again, the variables created by the wizard on Qlik Sense Desktop do not work when accessing through the browser.

brunobertels
Valued Contributor

Re: Variables not working on browser

Yes i saw in late in your script the // in front of your variable déclaration

vinafidalgo
Contributor

Re: Variables not working on browser

Yes, I've added the comments because the variables were created by the Variable Wizard.