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
markefrody
Post Patron
Post Patron

Cannot Select Columns or Other Tables

Hi,

 

I am trying to compute the days difference between two dates using DAX. These two dates are located in different tables. The problem is when I input the DAX it does not show the other table and its fields.


DAX should be: Ship Date - DateReceiveDateTime = DATEDIFF('TABLE 1'[ShipDate], 'TABLE 2'[DateReceivedDateTime], DAY)

In screenshot below, TABLE 2 is not appearing.

markefrody_2-1718906854209.png

 

I already set-up the relationship between these two tables but still cannot detect the other table when using DAX.

markefrody_3-1718906938549.png

 

Here is the pbix [file] for reference. 

 

Appreciate if you can help me. Thanks in advance.

Best regards,

Mark V

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @markefrody,

It doesn't seem to have anything to do with relationships. Calculated columns are suitable for single-table calculations. As shown in the figure, you created in Table 1, so all the fields in Table 1 are included. So you need to use measure to do that.

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi  @markefrody,

It doesn't seem to have anything to do with relationships. Calculated columns are suitable for single-table calculations. As shown in the figure, you created in Table 1, so all the fields in Table 1 are included. So you need to use measure to do that.

Hope it helps!

Best regards,
Community Support Team_ Tom Shen

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

 

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.