Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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..