Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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
jonathandienst
Partner - Champion III
Partner - Champion III

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

5 Replies
andrey_krylov
Specialist
Specialist

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

jonathandienst
Partner - Champion III
Partner - Champion III

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
vitaliichupryna
Creator III
Creator III

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


Anonymous
Not applicable
Author

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!!

Samanehsorournejad

Hi,

they only work in Qlik View not in Qlik Sense what should I do for Qlik sense ?

I had used  {< Columnname=  >}

but it does not work too

😞