Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
vinafidalgo
Partner - Creator
Partner - Creator

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?

1 Solution

Accepted Solutions
vinafidalgo
Partner - Creator
Partner - Creator
Author

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.

View solution in original post

9 Replies
ogster1974
Partner - Master II
Partner - Master II

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

brunobertels
Master
Master

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
Partner - Creator
Partner - Creator
Author

Hello,

I don't have any extensions.

The QVF is attached in this post.

vinafidalgo
Partner - Creator
Partner - Creator
Author

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
Master
Master

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
Partner - Creator
Partner - Creator
Author

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
Partner - Creator
Partner - Creator
Author

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
Master
Master

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

vinafidalgo
Partner - Creator
Partner - Creator
Author

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