Linking two tables with key when values are missing
Need help with an issue that's driving me crazy.
I have two tables where scrap data and used quantity is stored:
As you can see, I do not have scrap occurencies every month, 201904 and 201907 there were no scrapping done. The link between the tables is Location&YearMonth (Key) - The two tables cannot be joined, this is just a simplied example of my issue.
The resulting table looks like this:
As you can see, the data for 201904 and 201907 is not linked between the tables as there where no scrap in those months.
Why dont you left join scrapped quantity table to Used quantity table? (Assuming Used quantity will always have data) fact: load yearmonth ,location ,usedquantity from xyz; left join(fact) load yearmonth ,location ,scrappedquantity from abc;
It's quite simple if you don't joined or associate the tables else just concatenate (respectively union in sql) them. This could be done directly which creates an asynchron table or you could put both quantities in a single field and adding another field which contained the value of 'Scrapped' respectively 'Used' to be able to differ your quantities.
To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question. I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.