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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AOD
Helper II
Helper II

Calculate time difference between 2 date fields from separate source tables.

Hi , 

 

I want help in DAX for calculating  time difference between 2 date fields from separate source tables.

 

AOD_0-1596465297809.png

Fullname is the comman field between both the tables , Refferal sent and Outcome created are  from different tables.

 

Thanks for helping in advance.

AOD

2 REPLIES 2
harshnathani
Community Champion
Community Champion

Hi @AOD ,

 

Try creating a Column in the main table.

 

Column = DATEDIFF( 'Table'[Referal Sent], RELATED('Table' [Outcome Created]), DAY)

 

Regards,

Harsh Nathani

lbendlin
Super User
Super User

Where are you stuck?   Are the tables linked with a relationship on fullname? can you show the data model?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors