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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Filtering the Chart on the basis of selected Year text box

Hi ,

         I am trying to do below mentioned functionality using QlikView:

          1. Text Box 1 (1YR)

          2. TextBox 2(3 YR)

          3. BarChart (Dimension :Calendar, Expression on sales columns(SUM(Sales)

        When some one clicks on 1YR, it should filter the chart to display only 1 YR dates and sales. similiarly for 3 YR button also.. Attached the QVW file.

Thanks

Dasu.G

1 Solution

Accepted Solutions
Not applicable
Author

Change your Dimension to:

=if([DATE(calendar_date)]>=vStartDate and [DATE(calendar_date)]<=vEndDate,[DATE(calendar_date)])

I used your field names, but I would recommend changing your DATE(calendar_date) to another name using 'As DateFieldName'. Hope that helps.

View solution in original post

2 Replies
Not applicable
Author

Change your Dimension to:

=if([DATE(calendar_date)]>=vStartDate and [DATE(calendar_date)]<=vEndDate,[DATE(calendar_date)])

I used your field names, but I would recommend changing your DATE(calendar_date) to another name using 'As DateFieldName'. Hope that helps.

Not applicable
Author

Also, you will need to click 'Suppress when value is null' on the dimension. Forgot to mention that.