Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
Hi Gurus,
Probably a simple answer to this, but I am a QlikView freshman.
I need to sum all rows (sum of CostCompFrom) to get the right Amount, but I can not sum the Quantity rows (the right value should be 204, not 6121).
1) How can I achieve this and get the result in one row if I remove the CostCompFrom dimension in a chart?
2) How would I achieve the same result by using a load statement?
Thanks in advance,
Freddy
Data (simplified):
| 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 john_duffy
		
			john_duffy
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hello.
I'm not sure if I'm understanding your data structure correctly. You should be able to create a chart with Week, Day, OrderNumber and Quantity as dimensions and an expression Sum([Amount To]).
To achieve this in a load script something like:
Load Week, Day, OrderNumber, Quantity, Sum([Amount To])
From xxxx.qvd
Group by Week, Day, OrderNumber, Quantity
Let me know if this helps.
 john_duffy
		
			john_duffy
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hello.
I'm not sure if I'm understanding your data structure correctly. You should be able to create a chart with Week, Day, OrderNumber and Quantity as dimensions and an expression Sum([Amount To]).
To achieve this in a load script something like:
Load Week, Day, OrderNumber, Quantity, Sum([Amount To])
From xxxx.qvd
Group by Week, Day, OrderNumber, Quantity
Let me know if this helps.
 
					
				
		
Hi,
Of course! 🙂
This works. Thanks!
