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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
edithees
New Member

Related Dax not working

Hi, need some help with RELATED.

 

1. Related isn't coming up as a formula to me.

2. But it lets me put in something like this Column=related(#"Years taught index")) and when I click ok, I get Expression.Error: The name 'Related' wasn't recognized. Make sure it's spelled correctly. What I see in the formula became = Table.AddColumn(#"Removed Columns1", "Custom", each Related(#"Years taught index")). The Years taught index is the new table and within it I have a column called Years taught index.

3. The relationship between the 2 tables is many to one and it's active, the name of the columns are identical.

 

I'm not sure what is the problem...please help:)

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @edithees ,

It seems you are adding a custom column in Power Query Editor, but the RELATED function is used for DAX. You can create a measure as below using related function:

yingyinr_0-1645175094878.png

Sales[Sales at List Price] =
        SUMX ( Sales, Sales[Quantity] * RELATED ( 'Product'[List Price] ) )

By the way, what do you want to do with the RELATED function? Perhaps you can provide us with some sample data and calculation logic, and we will provide you with a suitable solution later. The following blog describes related usage scenarios, please check it out. We hope it will be useful to you.

Get a field value from a related table in Power BI: DAX RELATED Function Explained

yingyinr_1-1645175381553.png

Best Regards

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @edithees ,

It seems you are adding a custom column in Power Query Editor, but the RELATED function is used for DAX. You can create a measure as below using related function:

yingyinr_0-1645175094878.png

Sales[Sales at List Price] =
        SUMX ( Sales, Sales[Quantity] * RELATED ( 'Product'[List Price] ) )

By the way, what do you want to do with the RELATED function? Perhaps you can provide us with some sample data and calculation logic, and we will provide you with a suitable solution later. The following blog describes related usage scenarios, please check it out. We hope it will be useful to you.

Get a field value from a related table in Power BI: DAX RELATED Function Explained

yingyinr_1-1645175381553.png

Best Regards

amitchandak
Super User
Super User

@edithees , You can use related using 1 from M to side

related([#Years taught index])

 

otherwise you can use relatedtable and Minx etc

 

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

Thank you!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.