Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
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 SLA | Within SLA | Total | |
|---|---|---|---|
| Tasks | 10,000 | 50,000 | 60,000 | 
| Percentage | 16.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!!
 
					
				
		
 jonathandienst
		
			jonathandienst
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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
 
					
				
		
 andrey_krylov
		
			andrey_krylov
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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
		
			jonathandienst
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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
 
					
				
		
 vitaliichupryna
		
			vitaliichupryna
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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 
 
					
				
		
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!!
 Samanehsorourne
		
			SamanehsorourneHi,
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
😞
