Forum Discussion
Samcooke
3 years agoFrequent Visitor
Date Diff between two tables
Hi I am a longtime Tableau user that is moving our customer base over to Power Bi. In Tableau one of the key calculations I used was Date Diff using two different tables. Essentially comparing counti...
v-yalanwu-msft
3 years agoCommunity Support
Hi, Samcooke ;
First of all, if the date is in two tables, is there a relationship between the two tables?
You can try this measure:
measure =
DATEDIFF ( MAX ( 'table1'[date] ), MAX ( 'table2'[date] ), DAY )
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.