Skip to main content

 1)when i am using Relationship (many to many) for merging ,it is giving inventory only for corresponding sale . but it is not showing the inventory which is not sold.

 

Target :- here after merging i want to show inventory for all whether it is sold or not .

if item is in my inventory and it is not sold then in net sale qty list it should show zero in front of inventory list(Net Qty).

same if some items are fully sold but not in my inventory then in my Net Qty(inventory) list it should show zero in front of sold items.

 

2) when i am using full outer join for merging , it is giving so much null and duplicate values and also totally wrong results ( large values than actual due to duplicates) for inventory and sales . how to avoid these duplicates ?

 

in both method i cross validate from actual excel sheet.

 

sales data :- 18 columns (fields)

inventory data :- 12 columns

in which 8 fields are common

 

here is my .twbx file and csv file for sale and inventory

8 respostas
  1. 3 de jun. de 2022, 13:09

    @sumeet synfeb​ The previous posts were using relationships with all shared fields used to define the relationship. You can also use an outer join. (For the outer join, I also used every shared field)

    Unlike relationships, which adjust the relationship needed based on the need of the worksheet, an outer join will be the same for all worksheets even if doing so creates duplications. There is only one count field in table below because there is only one table in the data source (Tablea can distinguish between the two source tables in the data pane for grouping). There were two count columns when using Relationships because Relationships keeps the two sources distinct. @sumeet synfeb​ The previous posts were using relationships with all shared fields used to define the relationship. You can also use an outer join.