Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Modernize Your QlikView Deployment webinar, Nov. 3rd. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted
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
Highlighted
MVP
MVP

Hi,

you could use as expression:

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

Regards,

Stefan

Highlighted
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

Highlighted
Not applicable

Excellent, thanks!