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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
cbaqir
Specialist II
Specialist II

Chart dimensions not filtering

If you select FY16 and a PROG_PORT selection (first column in both tables), the charts are not reflecting only the rows in that selection. Not sure what is wrong but it didn't used to do this.

9-14-2016 10-47-36 AM.jpg

1 Solution

Accepted Solutions
sunny_talwar

Or do this:

=if(GetSelectedCount(FISCAL_YEAR)=0,0,If(Max({<IS_CUR_FCST = {'y'}>}APP_DATE) < Max({1<IS_CUR_FCST = {'y'}>}FCST_DATE)+1, 0,

Round(Sum({1<FCST_DATE = {"$(=Date(Max({<IS_CUR_FCST = {'y'}>}FCST_DATE), 'MM-DD-YYYY'))"}, IS_CUR_FCST = {'y'}, REQUEST_ID = $::REQUEST_ID,  REQ_ID_NAME = $::REQ_ID_NAME, PROG_PORT = $:: PROG_PORT>} FCST_AMT), 1000)/1000))

View solution in original post

13 Replies
swuehl
MVP
MVP

I currently can't open your QVW.

Are you maybe using set analysis in your expressions that are preventing the dimension to filter?

sunny_talwar

Check now

cbaqir
Specialist II
Specialist II
Author

What did you do?

sunny_talwar

Multiplied your 2nd and 3rd expression by Avg(1)

cbaqir
Specialist II
Specialist II
Author

Why?

sunny_talwar

There might be set analysis to ignore selections, I did not look very closely, but I know that Avg(1) will equal to 1 for your selection and will equal to 0 outside the selection making those values go away which you are seeing right now. Is this not what you want or are you looking to do this in a better way?

sunny_talwar

Or do this:

=if(GetSelectedCount(FISCAL_YEAR)=0,0,If(Max({<IS_CUR_FCST = {'y'}>}APP_DATE) < Max({1<IS_CUR_FCST = {'y'}>}FCST_DATE)+1, 0,

Round(Sum({1<FCST_DATE = {"$(=Date(Max({<IS_CUR_FCST = {'y'}>}FCST_DATE), 'MM-DD-YYYY'))"}, IS_CUR_FCST = {'y'}, REQUEST_ID = $::REQUEST_ID,  REQ_ID_NAME = $::REQ_ID_NAME, PROG_PORT = $:: PROG_PORT>} FCST_AMT), 1000)/1000))

sunny_talwar

I think the use of 1 here is restricting your selections and that's why we saw all the rows even when you selected a single PROG_PORT

cbaqir
Specialist II
Specialist II
Author

I just have to make sure that doesn't affect the expression result.