I was analysing Zero VAT transactions (calcs here will exclude VAT/Tax):
So
I can see from the "Order" table : "Total Cost" / "Shipping Total Cost" / "Order Total Cost"
"Order Total Cost" = "Total Cost" + "Shipping Total Cost" + "Adjustments" (if any)
"Adjustments" is not in the "Order" table (strange... why? I expected it to be in the "Order" table, with all the other amounts)
The only way I can find an adjustment amount to an order is to cross reference with "OrderDetail" table on the "OrderSequenceNumber" field and look for "ProductReference" = ":::::"
- sometimes we have more than 1 adjustment to an order... so a simple lookup is not sufficient... have to do a kind of LOOKUP order + SUMIF with MATCH
(or can always do in Power Query add a column with calculation : "Order Total Cost" less "Total Cost" less "Shipping Total Cost" : so if =0 = no adjustment, if >0 = adjustment)
Or is there another way?
(is it in another table? etc...)
So
I can see from the "Order" table : "Total Cost" / "Shipping Total Cost" / "Order Total Cost"
"Order Total Cost" = "Total Cost" + "Shipping Total Cost" + "Adjustments" (if any)
"Adjustments" is not in the "Order" table (strange... why? I expected it to be in the "Order" table, with all the other amounts)
The only way I can find an adjustment amount to an order is to cross reference with "OrderDetail" table on the "OrderSequenceNumber" field and look for "ProductReference" = ":::::"
- sometimes we have more than 1 adjustment to an order... so a simple lookup is not sufficient... have to do a kind of LOOKUP order + SUMIF with MATCH
(or can always do in Power Query add a column with calculation : "Order Total Cost" less "Total Cost" less "Shipping Total Cost" : so if =0 = no adjustment, if >0 = adjustment)
Or is there another way?
(is it in another table? etc...)
Comment