Forum Discussion

dananjayaprasad's avatar
8 years ago

Joining does not work properly

Hello, 

 

I have 4 tables and I join them by product SKU, but when I try to create a table using Sale_AC and Inv to it does not work the way I want it. I want to see each place quantity, but it gives me total quantity for all location. I could not figure it out. Can anybody please tell me what’s wrong with it.

 

 

 

 

 

 

Thank you so much 

16 Replies

    • parry2k's avatar
      parry2k
      Super User

      what result you are expecting? It is working as expected. it is showing Inv.Quantity for sky, you are showing line items from sales table and it is repeating inv. quantity, either you sum up your sales quantity (one row for each sku) and then it will show you correct result.

       

      I don't see any issue, it is just how you are visualizing your data.

       

      If you remove store name, all is fine. 

      • dananjayaprasad's avatar
        dananjayaprasad
        Helper I

        parry2k

         

        Thank you for quick respond. 

         

        I want to see each store that particular SKU (I have a filter for SKU to see different product and I also have a store filter too.) Performance. I want to see how many quantities sold, sales (From Sales_Ac), any transfers, on order and Inv.Qunatity which means stock on  hand for each store from Int table.

          

        I have an internal tool to validate.  Per this SKU (BPCBDP000176) We have total inventory of 79 (whole company). I am looking get something similar like this. Please see below table

         

         

        Store NameProducts NameSKUSold QuantitySalesOn TransferOn OrderInv.Quantity
        203 TylerAdopted Wrap iPhone 6/6s - OLIVE/GUNMETALBPCBDP000176118.98  2
        301 EvansvilleAdopted Wrap iPhone 6/6s - OLIVE/GUNMETALBPCBDP000176118.98  10
        314 ChattanoogaAdopted Wrap iPhone 6/6s - OLIVE/GUNMETALBPCBDP000176237.96  5
        410 BendAdopted Wrap iPhone 6/6s - OLIVE/GUNMETALBPCBDP000176118.98  3
        702 AthensAdopted Wrap iPhone 6/6s - OLIVE/GUNMETALBPCBDP000176118.98  0
        706 West Cobb - Marietta (WC)Adopted Wrap iPhone 6/6s - OLIVE/GUNMETALBPCBDP000176118.98  1
        708 NorcrossAdopted Wrap iPhone 6/6s - OLIVE/GUNMETALBPCBDP000176237.96  1
        713 St. SimonsAdopted Wrap iPhone 6/6s - OLIVE/GUNMETALBPCBDP000176118.98  8
         --- so and so       
         ---       
              Total 79

         

        I change all my feild to sum, but still no change. Any idea why is that. I thought something wrong with Join. 

         

         

         

        Thank you so much