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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
helen_p
Frequent Visitor

Where and how do I create a calculated column using fields from different tables

Dear Power BI community

 

I have looked through various posts but cannot find an answer which resolves my issue

 

I would like to know where and how I create a calculated column which finds the difference in days using fields from different tables.....My set set up in similar to below

 

Table 1:

ID

Transaction Date

 

Table 2 (is the table which links table 1 and 2 together and has a Many to 1 relationship with both tables)

ID

 

Table 3

ID

Start Date 

 

I do not know whether to create a new metrics table OR create a calculated column in an existing table.....I am unsure of how to get the fields to be available to me choose from when writing the DAX expression

 

Any help would be greatly appreciated

 

Kind Regards

Helen

 

2 REPLIES 2
v-xulin-mstf
Community Support
Community Support

Hi @helen_p,

 

Sample data and expected output would help tremendously.
Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Best Regards,

Link

amitchandak
Super User
Super User

@helen_p , Expected output is not clear

You can create a new column Table 1 and Table 3 like

 

Start Date in Table 1 = max(filter(Table3, Table3[ID] = Table1[ID]), Table3[Start Date])

 

Transaction Date in Table 3 = max(filter(Table1, Table3[ID] = Table1[ID]), Table1[Transaction 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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.