Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Having trouble with Lookup

In trying to use the Lookup funtion, I believe I am doing something incorrectly.  

 

My expected outcome is that from within my Orders table, I want to "lookup" the ship date from my Shipments table, and then create a column for "ship date" on my Orders table.  (no direct relation ship but both are connected to a date table.    

 

Right now, a column is being created  (ship date month), but it seems to be grabbing the "due date" from my Orders table.  

 

If the ship date for a particular order is in the future and has not happened yet, I would like the ship date column to return a ZERO. 

 

(I beleive the same thing is happning with my formula for est close month).    The Order Date and Due Date columns already exist on my orders table.  

 

How can I bring in, and put in a column, the "est close dates" from my Shipments table?  

 

Ship Date Month =
LOOKUPVALUE ( 'Flu_Shipped Orders'[Date Shipped Month], 'Flu_Shipped Orders'[Date Shipped Month], Sales_Orders_for_Charts[Due Date Month])
 

1 Reply