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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Kudoed Authors