Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
Hi, QlikView community
I have a formula in set analysis:
Sum({$<Region ={‘South’, 'North', 'East'}>} Sales)
In my dataset I have South, North, East and West.
So in my set analysis I do not want have information regarding West.
But here is my problem. I want to select South and look at data regarding South.
But I can't do that if my set analysis is like that.
Do you have any idea how to do that
regards Darri
 Anders_Eriksson
		
			Anders_Eriksson
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Then it is a union you are looking for.
The selected values in Region but only those that intersect with South, North or East.
Sum({$<Region *={‘South’, 'North', 'East'}>} Sales)
 
					
				
		
 gautik92
		
			gautik92
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Sum({$<Region =e({‘West’})>} Sales)
 
					
				
		
ok, Gowtham
But if I have dataset with millions of value and I only want three.
How can I do that.
It will take hours to exclude every value that I do not want
 
					
				
		
 gautik92
		
			gautik92
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		then create a new field in the script match that three with match() function and make it null
 
					
				
		
I can't do anything in the expression?
I have to it in the script?
 
					
				
		
Have you tried Gowtham's expression ?
Set Analysis can be surprisingly quick and efficient.
 Anders_Eriksson
		
			Anders_Eriksson
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Perhaps if you explain a little more what it is you're trying to do?
Your first posting sounded like there were only four distinct values.
With that I would use;
Sum({$<Region -={‘West’}>} Sales)
 
					
				
		
 gautik92
		
			gautik92
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		you can do it in expression
Load
....
...
from tablename where match(region,'West')=0;
 
					
				
		
 nagarjuna_kotha
		
			nagarjuna_kotha
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi Darri,
Can u check the Region Names are Like East,West,North,South Or not.I mean Case sensitive?
Regards,
Nagarjna
 tresesco
		
			tresesco
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Try like:
Sum({$<Region ={‘South’, 'North', 'East'}> * <Region=$::Region>} Sales)
