Forum Discussion
Date difference between two different tables
- 6 years ago
I tried to create a Data model that can refer to your data model. Please find this pbix, where I created 4 ways how can you get date diff from two different tables.
I created a common dim, Date dim. Common dim for date diff. The date dim just for your ref.
I also populated dates from one table to another to get date diff.
https://www.dropbox.com/s/y47ah38sr157l7t/Oder_delivery.pbix?dl=0
Let me know if this can solve your purpose.
Also, these results are strange. Note that sometimes they show correctly that the shipment was 3 days early. But for the same dates sometimes it says -9. It could be because there are multiple lines attached to one order...and maybe the lines shipped at different times and it is picking up the latest ship date? Checking into that now.
Anonymous
I am assuming, you have created both new columns as calculation. Can you share the formula