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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Newbie question, restricting loaded data

How should I use the input box in the attached file to restrict the bar chart to those records matching either the owner or user?  For example, if the value of the input box is 1, the chart should show letters a-e AND p-t, if the value is 2 the letters shown should be f-o.  If the value is 0, ALL the letters should be shown.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Or, as an alternative and probably easier to read:

=if($(userid)=0,value,if(owner=$(userid) or user=$(userid),value))

View solution in original post

3 Replies
swuehl
MVP
MVP

Hi,

you could use as expression:

=if($(userid)=0,value,only({<letter={"=(owner=$(userid) or user=$(userid))"}>}value))

Regards,

Stefan

swuehl
MVP
MVP

Or, as an alternative and probably easier to read:

=if($(userid)=0,value,if(owner=$(userid) or user=$(userid),value))

Not applicable
Author

Excellent, thanks!