I need chart (table pivot or straight) with 3 dimensions - Date, RefId, Customer and two measures - Ordered and Delta
ordered is just a sum of ordered amount on a date for an order of customer
delta should take current stock minus ordered plus receipt or transfer. delta should be cummulated through all the table, so I'll be able to see when we'll be out of stock.