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

Join is made on two table but related function is throwing error

Hello Guys,

I have established the joined between two tables based on commin field. but while taking related funtion ,it is showing error.

Can anyone please help me on this.

 

Error snapshot.

shankarshiva70_0-1620293856851.png

 

Connection.

shankarshiva70_1-1620293921965.png

 

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

As the error message mentioned, the context in your expression is ambiguous so that you cannot use it directly.

Note:

  • The RELATED function requires that a relationship exists between the current table and the table with related information. You specify the column that contains the data that you want, and the function follows an existing many-to-one relationship to fetch the value from the specified column in the related table. 

  • The RELATED function needs a row context; therefore, it can only be used in calculated column expression, where the current row context is unambiguous, or as a nested function in an expression that uses a table scanning function.A table scanning function, such as SUMX, gets the value of the current row value and then scans another table for instances of that value.

 

In this case, the relationship between two tables is many-to-many so you can create a bridge table to change it to many-to-one relationship. Please refer: Many-to-many to many-to-one 

 

Best Regards,
Community Support Team _ Yingjie Li
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
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

As the error message mentioned, the context in your expression is ambiguous so that you cannot use it directly.

Note:

  • The RELATED function requires that a relationship exists between the current table and the table with related information. You specify the column that contains the data that you want, and the function follows an existing many-to-one relationship to fetch the value from the specified column in the related table. 

  • The RELATED function needs a row context; therefore, it can only be used in calculated column expression, where the current row context is unambiguous, or as a nested function in an expression that uses a table scanning function.A table scanning function, such as SUMX, gets the value of the current row value and then scans another table for instances of that value.

 

In this case, the relationship between two tables is many-to-many so you can create a bridge table to change it to many-to-one relationship. Please refer: Many-to-many to many-to-one 

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.