Skip to main content
Announcements
Do More with Qlik - Qlik Cloud Analytics Recap and Getting Started, June 19: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
maleksafa
Specialist
Specialist

Variables alternate state

Hello,

is it possible to assign alternate state to a variable without having to create another one? in other words suppose i have the variable $(vPeopleIn) which is

sum({<H_Flag={'PeopleCount'},JobType=>}[Count In])

now instead of creating a new variable with the alternate state like that

sum({Group2<H_Flag={'PeopleCount'},JobType=>}[Count In])

i want to add the alternate state directly to the variable as if i am saying {Group2}$(vPeopleIn)

thx

1 Solution

Accepted Solutions
Not applicable

Hi Malek,

Did you try to assign the alternate state to the chart/object itself (under General tab) ?

The same variables would work but this time depending on the alternate state.

This helped me in some cases, hope it helps you too.

View solution in original post

6 Replies
Gysbert_Wassenaar

No, variables cannot be assigned to an alternate state. Use separate variables instead.


talk is cheap, supply exceeds demand
Not applicable

variables can not work in alternate state

Not applicable

Hi,

It won't work in alternate states.

Alternate State in Set Analysis

maleksafa
Specialist
Specialist
Author

thx for the info everyone, i will just have to create other variables then.

Not applicable

Hi Malek,

Did you try to assign the alternate state to the chart/object itself (under General tab) ?

The same variables would work but this time depending on the alternate state.

This helped me in some cases, hope it helps you too.

maleksafa
Specialist
Specialist
Author

thx JP, this was what i am looking for.