Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

andrewstaines
New Contributor

Set Analysis to Ignore Specific Filters/Dimensions

Hi All,

I'm trying to build a table (thought it was easiest with a Pivot) to show tasks that are inside/outside SLA and allow the user to filter out mitigating factors.

Filters:

Delay Applied (Y/N)

Recent Activity (Y/N)

Stage

Owner

Suppose the initial table looks something like this:

Exceeded SLAWithin SLATotal
Tasks10,00050,00060,000
Percentage16.7%83.3%


As people filter out the mitigating factors (Delays and Recent Activity), then I'd like to see the amount exceeded SLA go down. That bit's easy.

But I need the total to be fixed and for that data to effectively be switched into the "Within SLA" Column. I tried doing this with a couple of approaches including ignoring filters and using if statements. Nothing quite seems to be working for me.

Iportantly, I can't ignore ALL filters using {1} because I need the user to be able to search by stage/owner if they want to.

Has anybody had to do something similar before? Thanks in advance!!

1 Solution

Accepted Solutions
MVP
MVP

Re: Set Analysis to Ignore Specific Filters/Dimensions

Or ignore all selection except those specified

Sum({1<Field1 = P(Field1), Field2 = P(Field2)>} Amount)

or

Sum({1<Field1 = $::Field1, Field2 = $::Field2>} Amount)


All field selections ignored except for Field1 or Field2

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

4 Replies
andrey_krylov
Valued Contributor

Re: Set Analysis to Ignore Specific Filters/Dimensions

Hi, Andrew, you are right and set analysis is for this. Just add field names (dimensions) you want to be ignored or freezed

Sum({< FIeld1, Field2, Field3 = {'SomeValueList'} >} Amount)

or share a sample

MVP
MVP

Re: Set Analysis to Ignore Specific Filters/Dimensions

Or ignore all selection except those specified

Sum({1<Field1 = P(Field1), Field2 = P(Field2)>} Amount)

or

Sum({1<Field1 = $::Field1, Field2 = $::Field2>} Amount)


All field selections ignored except for Field1 or Field2

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

vitaliichupryna
Contributor II

Re: Set Analysis to Ignore Specific Filters/Dimensions

Hi Andrew,

You can use following thing:


Sum({$<[$(=Concat({1<$Field-={'Client'}>}distinct $Field,']=,[')&']=')>} Amount)

QlikView and Qliksense contains hidden system field $Field, this field contains all fields in the application. The set expression above will ignore selections in all columns except of Client.
If you want add more than one column you can simply do this:


Sum({$<[$(=Concat({1<$Field-={'Client', 'Division'}>}distinct $Field,']=,[')&']=')>} Amount)


This will ignore selections in all columns except of Client and Division.

Thanks,
Vitalii


andrewstaines
New Contributor

Re: Set Analysis to Ignore Specific Filters/Dimensions

I was able to adapt this to work as I wanted it to. It prompted me to learn about p(field) and e(field), so it was well worth me asking

Many thanks for your help!!