Skip to main content
Announcements
Save $600 on Qlik Connect registration! Sign up by Dec. 6 to get an extra $100 off with code CYBERSAVE: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
dana
Creator III
Creator III

Alternate State and variables

Hi,

According to help, it's possible to allocate a state to a variable:

If you have a state named MyState, and a variable named vMyVar:

  • $(vMyVar) expands the variable in the default state.
  • $({MyState} vMyVar) expands the variable in the MyState state.

But when I try to do so, the expression is it doesn't work and null values are shown.

The variable vTest is: Count(DISTINCT DocumentNumber).

The expression I wrote: $({TestState} vTest)

I would like it to expand to: Count({TestState} distinct DocumentNumber)

AS.png

Would appreciate some help...

Thanks!

Labels (2)
2 Replies
DClayton
Contributor
Contributor

Also struggling with this issue. Did you find a solution @dana?

dana
Creator III
Creator III
Author

Hi,

Sorry for the late response...

No, I didn't..