Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Not applicable

SET Variable Qlik Sense Script

Hi All,

I would like to be able to use an old Qlikview variable in Qlik Sense but I understand this now needs to be done via a SET or LET (my knowledge is such I am unsure which is best).

The variable is an expression based on a few parameters as below

sum({<title={'*Articulated Vehicles Using White Diesel*','*Rigid Vehicles Using White Diesel*'}>}value)

I tried

SET vLitres =  sum({<title={'*Articulated Vehicles Using White Diesel*','*Rigid Vehicles Using White Diesel*'}>}value)

But this brought back errors. Please help as my head is firmly stationed in front of a wall!!

Toby

1 Solution

Accepted Solutions
Employee
Employee

Re: SET Variable Qlik Sense Script

Try

SET vLitres =  =sum({<title={"*Articulated Vehicles Using White Diesel*","*Rigid Vehicles Using White Diesel*"}>}value);

See The Little Equals Sign

HIC

2 Replies
Employee
Employee

Re: SET Variable Qlik Sense Script

Try

SET vLitres =  =sum({<title={"*Articulated Vehicles Using White Diesel*","*Rigid Vehicles Using White Diesel*"}>}value);

See The Little Equals Sign

HIC

Not applicable

Re: SET Variable Qlik Sense Script

Fantastic!! Thank you very much Henric !!!!