Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello There!
I'm a newbie in Qlik Sense, and I need help to create a variable that's the result of an expression (1+1) in my app.
How can I create this?
Thanks!
Hello Higor!
You have 2 ways to do this:
Hope it helps! 😁
Best Regards
Data Load Editor:
Let vSum = 1 + 1; (in the data load editor)
Now we can use $(vSum) expansion to pass the value of variable.
Front end:
On left - bottom corner, you can create variables. For reference
Once you create them, they appear like below.
vSum is created in Data load editor and cannot be edited/deleted from Front-end.
vSumm is created in Front-end. Can be edited or deleted.
One more way to create a variable which stores as string.
Set vString = 1+1;
It doesn't give result as 2. It gives result as '1+1'.
Hi!
I posted a similar solution yesterday https://community.qlik.com/t5/New-to-Qlik-Sense/Assigning-a-list-to-a-variable/m-p/2016082#M220092
You'd need to create sum(1+1) as the variale and then use $() around the variable name to execute it
Hello Higor!
You have 2 ways to do this:
Hope it helps! 😁
Best Regards
Data Load Editor:
Let vSum = 1 + 1; (in the data load editor)
Now we can use $(vSum) expansion to pass the value of variable.
Front end:
On left - bottom corner, you can create variables. For reference
Once you create them, they appear like below.
vSum is created in Data load editor and cannot be edited/deleted from Front-end.
vSumm is created in Front-end. Can be edited or deleted.
One more way to create a variable which stores as string.
Set vString = 1+1;
It doesn't give result as 2. It gives result as '1+1'.