Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

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

  • 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

2 Replies

  • Jimmy801's avatar
    Jimmy801
    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's avatar
      Anonymous
      Not applicable

      Hi Jimmy, 

      Works perfect! Thanks for your help!

      Cheers Sander