Forum Discussion
Merging Two Data Tables (Invoice and Orders)
- Anonymous7 years ago
If the order is invoiced you have invoice number, else you have just order number alone & invoice number is blank. So allrequied details are available in order table itself.
Create the below 2 columns and drag along with customer and value columns from the Order table.
Invoice/order = IF( ISBLANK( Order[InvoiceNo]), Order[OrderNo],Order[InvoiceNo])
TransactionType= IF( ISBLANK( Order[InvoiceNo]), "Order","Invoice")
Hope this helps.
Thanks
Raj
Not yet, will try it!
Thank you so much for the help!
I actually wanted to append the tables together. But your formula help me think it through. I probably didn't do it in the best way. I essentially did a lookup if the invoice exist and filtered out the orders and then i renamed the columns to match together and append them.