Forum Discussion

MartinZ85's avatar
MartinZ85
New Member
2 years ago

Compare two dates in different tables

Hi PowerBI Brains,

 

I hope someone can help me. I've got a procurement table with a due date (pmlDueDate) and a Sales Order table with Shipping Date (ompRequestedShipDate). The two tables are indirectly linked via projectID each table has a many to one connection to a project table. 

 

I want to flag the due date in the procurement table if it is later than the shipping date and has the same projectID. I tried a simple if statement but it won't let me do a comparison between the two tables. I hope anyone has an idea why that might be.

 

Thank you