Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
Hi,
I have a table with few fields which is in excel and it is loaded to Qlikview the table looks like this
Portfolio, Plan, PlanID
Mob, Mob1, M1
Mob, Mob2, M2
Fix, Fix1, F1
Fix, Fix2, F2
Bun, Bun1, B1
Bun, Bun2, B2
Something like this. I need to create a variable which has the count of no of Mob plans alone. Meaning i need a variable vMobCount which gives me the count as 2 that is two rows which have Portfolio as Mob.
How do I achieve this I tried If statement but there is no selection made anywhere this data is just at the backend and it is used to calculate some values which will be displayed.
Please help me with this. I am pretty new to Qlikview and not sure how to proceed.
 
					
				
		
 fvelascog72
		
			fvelascog72
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi, try this:
count({1<Portfolio={'Mob'}>}PlanID)
 
					
				
		
That worked Thanks a ton. Can you explain the logic please. I need to use this in several places.
 
					
				
		
 fvelascog72
		
			fvelascog72
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi,
You count PlanID but with Set Analysis just shows the results with Portolio = Mob.
Use 1 and the selections made are not considered.
 
					
				
		
Perfect Thanks a ton. Can I use the same kind of analysis for other aggregate functions like Sum.
 
					
				
		
 fvelascog72
		
			fvelascog72
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Sure. you can use with Sum.
I think you could find more information in help Content. Find Set Analysis.
