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: 
Sai_Mohan
Contributor III
Contributor III

Using Pick function without any other functions

Hi All,

 

How can i write pick function without giving any other condition with that ?

Example:

I have 3 toggle buttons, i need to activate that with pick function.

If i click on one button, changes should be applied for the  three charts (barchart, line chart, pie chart).

I have used  pick function 

=pick(var1,[Worldwide],[Region],[Customer])>> it is giving error like bad field name 

 

can someone help me out with this

 

Thanks

Sai

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer
MVP
MVP

var1 might be better declared as $(var1) - also it should contain numeric values. In your example 1 or 2 or 3.

- Marcus

View solution in original post

2 Replies
marcus_sommer
MVP
MVP

var1 might be better declared as $(var1) - also it should contain numeric values. In your example 1 or 2 or 3.

- Marcus

Sai_Mohan
Contributor III
Contributor III
Author

Thank you Marcus.