Hello
Attach an excel file Name ?Factory?
3 Different departments will input data separately.
( Input Data = Mark in Yellow)
Sheet: Merchandising = Table Name: Merchant
Sheet: Com_Imp = Table Name: Com_BBLC
Sheet: Com_Imp = Table Name: Com_Imp
Sheet: Com_Exp = Table Name: Com_Exp
Sheet Name ?Result?,
I try to collect all data from all tables into a Master Table.
Try to get different kinds of results from the Master Table using Pivot table
But my result comes WRONG only the reason Primary key ?Order Number? is duplicate
Result I try to find in Main sheet Cell no :AM2
Result comes :
JMS Order No: 001
Qty is OK: 50000+60000+7000=180000
The amount is OK: 589,000
BBLC Value is wrong: 418,190 should be 429,970
IMP Value is wrong: 388,560 should be 429,790
Exp Value is wrong: 259,000 should be 587,350
The only reason of this wrong calculation is ?Order Number? is duplicate
I marked in RED all the Tables.
I tried query with Merge.
Bookmarks