Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I want to calculate the date difference between the dates from two different tables.
Table1 Name/Column name: Deal/Deal_closedate
Table2 Name/Column name: Contact/Contact_createdate
I want to calculate the difference between the columns Deal_closedate and Contact_Createdate. I have created a measure which is as below:
Thanks for the response, Amit.
So, in this scenario there are two tabels: Deal and Contact. The column name for Deal table is Deal_closedate and column name for Contact table is Contact_createdate. To calculate the difference between Deal_closedate and Contact_createdate what can the expression be written as?
Hi @Anonymous ,
Could you please provide some sample data in table Deal and Contact? Is there any relationship created between these two tables? If yes, please provide the related relationship info. Thank you.
1. Sample data
table Deal
Col1 | ... | Deal_closedate |
xx | xx | xx |
xx | xx | xx |
table Contact
Col1 | ... | Contact_createdate |
xx | xx | xx |
xx | xx | xx |
2. Relationship
Relation fields
Cardinality: 1:*?
Cross filter direction: Single/ Both
In addition, you can refer the method in the following links to get the differents of two dates from different tables.
Date Difference between 2 different tables
Power bi Date Difference – 8 Different Examples
Best Regards
@Anonymous , You have forced a context of common dimension. say contract
example
refer if needed
User | Count |
---|---|
76 | |
75 | |
41 | |
29 | |
24 |
User | Count |
---|---|
96 | |
91 | |
52 | |
46 | |
45 |