Forum Discussion

jdevalk77's avatar
jdevalk77
Frequent Visitor
3 years ago
Solved

add custom column based on 2 different tables

Hi, I need some help;

 

I have 2 tables with a production date and both are linked with an ordernumber.

Now I would like to add a custom column;
If 'table1'[ordertype] = "open" THEN 'table1'[Productiondate] ELSE 'table2'[Productiondate]

Does anyone know what formula I should use?
Thanks in advance.


BR,

Jurgen

3 Replies

    • jdevalk77's avatar
      jdevalk77
      Frequent Visitor

      Table1:

      OrderOrdertypeProductiondate
      1234Queue26-11-2022
      2345Queue28-11-2022
      3456OpenNULL
      4567Queue30-11-2022
      5678OpenNULL

       

      Table2:

      OrderProductiondate
      345629-11-2022
      567830-11-2022

       

      Both NULL records in 1st table should be filled with the Productiondate from the 2nd table.