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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
dwhittaker1
Helper II
Helper II

use relatedtable to pull dates from another table

I am in direct query mode utilizing two tables that have a many to many relationship. The tables are related based on a salesorder key.

I am trying to create a relatedtable measure/calculated column that returns the SOcreateddate from the dimorderinvoicemapping table and places those dates on the factsalesinvoice table

 

 

dwhittaker1_2-1710940568652.png

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @dwhittaker1 ,

@amitchandak is right , so I can give you other solutions

Below is my table1:

vxiandatmsft_0-1711433042373.png

Below is my table2:

vxiandatmsft_2-1711433093824.png

The following DAX might work for you:

Column = RELATED('Table'[Socreatedate])

The final output is shown in the following figure:

vxiandatmsft_3-1711433137409.png

Best Regards,

Xianda Tang

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

2 REPLIES 2
Anonymous
Not applicable

Hi @dwhittaker1 ,

@amitchandak is right , so I can give you other solutions

Below is my table1:

vxiandatmsft_0-1711433042373.png

Below is my table2:

vxiandatmsft_2-1711433093824.png

The following DAX might work for you:

Column = RELATED('Table'[Socreatedate])

The final output is shown in the following figure:

vxiandatmsft_3-1711433137409.png

Best Regards,

Xianda Tang

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

 

amitchandak
Super User
Super User

@dwhittaker1 , You can use related in case of direct query to bring data from one side to many side . Because you want data from dim, you should be able to use related

 

I do not think you need a relatedtable a simple measure will aggregate data against many side to one side

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors