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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Sreerams26
Frequent Visitor

The column either doesn't exist or doesn't have a relationship to a table available

This is a frequent issue that is raised in the forum but the solution is not applicable in my case.

 

I have two tables 1. Directquery from SQL database and 2. sharepoint. There is one to many relation as shown in the image below.  I need to pull the "To unit value" column to calculate the qty in KG in my prod table.

 

I created a calculated column and the result is as below.

Sreerams26_0-1718665606945.png

 

I also tried to create a measure using the DAX 

Measure = SUMX(Productioncalctrans,Productioncalctrans[REALQTY]*RELATED('Unit Conversion'[to unit value])) and I get the same error.
 
I have not been successful with related function while I am using direct query.  When I convert the table to import table, then the related function is working.
 
pllzzzz help.  this function is bothering me and forcing me to jump to import mode making my database size huge.

 

 

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @Sreerams26 ,

 

You can check the following link about the limitations related to the RELATED() function to check whether your table-to-table relationship is a limited relationship.

RELATED function (DAX) - DAX | Microsoft Learn

The RELATED function cannot be used to fetch a column across a limited relationship.

 

In direct query mode, modeling has some limitations:

Solved: The column x either doesn't exist or doesn't have ... - Microsoft Fabric Community

 

This is the related document, you can view this content:

Solved: Related function not working with Mixed Mode - Microsoft Fabric Community

Solved: Direct Query - related function - Microsoft Fabric Community

Using RELATED and RELATEDTABLE in DAX - SQLBI

 

Best Regards,

Liu Yang

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

Thanks for the references.  but none of that helps.

 

"RELATED function (DAX) - DAX | Microsoft Learn

The RELATED function cannot be used to fetch a column across a limited relationship."  Mine is not a limited relation.  

 

"In direct query mode, modeling has some limitations:

Solved: The column x either doesn't exist or doesn't have ... - Microsoft Fabric Community"

If I merge queries, it is suggesting me to convert it to import mode to finish the merge function

 

 

I also went throuth the other solutions before posting mine here.  None of the solutions is working for me.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.