Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Missing data

Hi

If I have a table with the following information

Invoice Date
Invoice No

Stock Code
Sell PriceCost Price
01/01/2012INV01STK110035
01/02/2012INV02STK110035
01/03/2012INV03STK110035
01/04/2012INV04STK110035
01/05/2012INV05STK110035

And I have another table with the following info

DateStock Code
Hidden Cost
01/01/2012STK145
14/03/2012STK150

If I wanted to create a chart with the following columns

Invoice Date, Invoice Number, Stock Code, Margin, Hidden Margin

The margin is the difference between Sell and Cost Prices

The hidden margin is the difference between the Sell and Hidden Costs.

I am guessing I would I need to generate a record in the second table for everyday of the year, and then I can link the invoice date and stock item to this data.

Can someone please explain how to do this, or point me at a resource that explains how to generate the data.

Thanks

Andy

2 Replies
Gysbert_Wassenaar

You're right. See this blog post for how to do that.


talk is cheap, supply exceeds demand
Not applicable
Author

Thank you for the help Gysbert.

I am actually going to be looking at this today as the customer has ordered the work