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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Assign search object result to a variable

Is it possible to take a result from a search object -- i.e. Employee_ID, and assign that value to a variable. I'm wanting to populate a chart with data based on a value from a search.

1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

You may use a calculation condition in the General tab of the object Properties window, such as

GetSelectedCount(yourfieldname) <> 0

View solution in original post

5 Replies
Not applicable
Author

a search will generally apply a filter an input box would be a variable by default?

Not applicable
Author

What if I want to restrict a chart's values to only those corresponding to the selected object, and show it with no values until one is entered?

Anonymous
Not applicable
Author

i think you are looking for an input box. assign the value of input box to a variable and use that variable in a set analysis in your expression in the chart something like below:

input box is set to variable vUseProfile. when a user enters a string, it is compared to Use Profile and provides the result accordingly. of course, you will have to modify this to your specific requirement or provide a sample qvw and i can help you.

expression in chart:

count({<[Use Profile]={'$(vUseProfile)'}>}[Customer ID])

nagaiank
Specialist III
Specialist III

You may use a calculation condition in the General tab of the object Properties window, such as

GetSelectedCount(yourfieldname) <> 0

Not applicable
Author

that is EXACTLY what I needed, thank you.