Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Measure difference between 2 dates in 2 tables

Hello community members,

 

I have a question and I can't find the solution myself...

I have 2 tables:

 

Table A

 

ID_numberProposed_end_date
131-5-2021
231-1-2021
331-3-2021
430-4-2021
531-1-2021

 

Table B

 

ID_numberActual_end_date
15-6-2021
231-1-2021
314-2-2021
45-5-2021
528-1-2021

 

I would like to know how many days difference there is between the proposed end date and the actual end date. 
Does anyone know how to make the correct measure? 

 

Hope to hear soon from you. 

 

Best regards, Sander

1 ACCEPTED SOLUTION
Jimmy801
Community Champion
Community Champion

Hello @Anonymous 

 

try this measure here. It should do the work

Measure = DATEDIFF(Max(B[Actual_end_date]),Max(A[Proposed_end_date]),DAY)

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

View solution in original post

2 REPLIES 2
Jimmy801
Community Champion
Community Champion

Hello @Anonymous 

 

try this measure here. It should do the work

Measure = DATEDIFF(Max(B[Actual_end_date]),Max(A[Proposed_end_date]),DAY)

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Anonymous
Not applicable

Hi Jimmy, 

Works perfect! Thanks for your help!

Cheers Sander

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.