Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
I need to sort by data difference. The objective in this chart is to maintain an equal balance of inventory by item type between my two warehouses.
The first item in the chart should therefore be the item that is the least balanced across my warehouses.
 
					
				
		
 johnw
		
			johnw
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Probably sort by expression, maybe something along these lines sorted descending?
fabs(sum({<Warehouse={'one'}>} Inventory)
    -sum({<Warehouse={'two'}>} Inventory))
 
					
				
		
I would prefer to do it within the control and not inthe script. This would enable the data to be resorted depending on the user’sfiltering.
 
					
				
		
 johnw
		
			johnw
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Probably sort by expression, maybe something along these lines sorted descending?
fabs(sum({<Warehouse={'one'}>} Inventory)
    -sum({<Warehouse={'two'}>} Inventory))
 
					
				
		
Thanks allot for your info. its working fine
