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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
nancy_sbeity
Partner - Contributor III
Partner - Contributor III

Variables between alternate states

Hello,

I need a help.

In an inherited Alternate state:

  • I have "Projects" List box.
  • A button with set variable action that puts the value of the selected project in a variable vProject.

In alternate state AS1:

  • A list box that has to display all the tasks related to the selected project (The value of the variable).

I tried lots of expressions such as :

  • =if([Project Name]=$(vProject),[Task Name],'-')
  • =only({$<[Project Name]=$(vProject),>}[Task Name])

And I am not getting the answer. Any suggestions?

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

May be like:

=Aggr(only({$<[Project Name]=$::[Project Name]>}[Task Name]), [Task Name] )

View solution in original post

3 Replies
tresB
Champion III
Champion III

May be like:

=Aggr(only({$<[Project Name]=$::[Project Name]>}[Task Name]), [Task Name] )

nancy_sbeity
Partner - Contributor III
Partner - Contributor III
Author

Thank youu,

It works.

tresB
Champion III
Champion III

If you close this thread by marking the reply 'Correct' , other people searching for similar problem resolution would find it easily and be helped. Not only that, your marking would put some points in my bag - a deserved appreciation from you.