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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Datediff across two tables from different datasets

Hi there,

 

I need to create a column which shows the difference in months between redemption date and completion date using the inactive relationship between account details & account details 2:

 

jhudson21_0-1637222976410.jpeg

 

 

I don’t seem to be able to use the CALCULATE function to use a USERELATIONSHIP function and when I’m trying to pull through columns using RELATED() I keep getting a message saying the relationship does not exist. I’m trying to create this measure in the account details 2 table.


Any ideas?

 

thanks

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

The problem is not clear. Could you share pbix with these two tables after deleting sensitive data?

amitchandak
Super User
Super User

@Anonymous , if you want to create a column, then you do not need relationship

 

You can bring a column in table 1 from table 2 like 

 

maxx(filter(Table2, Table2[ID] = Table1[ID]), Table2[Date])

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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 Solution Authors