Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
dana
Creator II
Creator II

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

Hi,

Sorry for the late response...

No, I didn't..