Forum Discussion
shaebert
2 years agoHelper III
Merge Queries Help
Hello, I am looking for help in merging two tables. I don't know what join will achieve the following:
- 2 years ago
You need an additional element to differenciate why the values of C are different. Otherwise both C values from table one will join to the C value of table two.
CoreyP
2 years agoSolution Sage
You need an additional element to differenciate why the values of C are different. Otherwise both C values from table one will join to the C value of table two.
- shaebert2 years agoHelper III
In my case, the C's are just different quantities. So I bought 2 C's in table one and sold 1 C in table two. I want to show that I still have one left over.
- CoreyP2 years agoSolution Sage
Hmmm. Maybe create a Product Dim table with all the unique values of your products ( A, B, C, D, etc. ). Create a relationship between table one ( Bought ) and table two ( sold ). Create a measure, Available Qty = SUM( table1[bought]) - SUM( table2[sold])
???