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
jn123
Frequent Visitor

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

Okay, I am at my wits end... 

 

I am trying to create a table that can be used to sort a column in another table.

 

This is the new table titled LN Sort:

LN Sort.PNG

 

 

 

And this is the column I am trying to sort in Table1:

Local News Sorting.PNG

 

This is the relationship I have set up for the two tables:

relationship.PNG

 

Whenever I try to create a new measure in Table1 to sort the Local News Sorting column using this formula: LN Sort = RELATED('LN Sort'[Order]), I keep getting this error message: 

 

"The column 'LN Sort[Order]' either doesn't exist or doesn't have a relationship to any table available in the current context."

 

I have gone back a million times to make sure I am doing everything right... so what could I possibly be missing??

 

Thanks,

 

 

 

2 ACCEPTED SOLUTIONS
PijushRoy
Super User
Super User

Hi @jn123 

In place of measure, please create Calculated column and LN Sort = RELATED('LN Sort'[Order]). Then, click the "sort by column" button, select LN Sort. 


If you have any question, please let me know.
If solve your requirement, please mark this answer as SOLUTION
If this comment helps you, please LIKE this comment/Kudos




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

VahidDM
Super User
Super User

Hi @jn123 

 

Check this link:

https://docs.microsoft.com/en-us/dax/related-function-dax

 

Note: The RELATED function needs a row context; therefore, it can only be used in calculated column expression

 

Try to use that formula to create a calculated column:

 

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-tutorial-create-calculated-columns

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

View solution in original post

2 REPLIES 2
VahidDM
Super User
Super User

Hi @jn123 

 

Check this link:

https://docs.microsoft.com/en-us/dax/related-function-dax

 

Note: The RELATED function needs a row context; therefore, it can only be used in calculated column expression

 

Try to use that formula to create a calculated column:

 

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-tutorial-create-calculated-columns

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

PijushRoy
Super User
Super User

Hi @jn123 

In place of measure, please create Calculated column and LN Sort = RELATED('LN Sort'[Order]). Then, click the "sort by column" button, select LN Sort. 


If you have any question, please let me know.
If solve your requirement, please mark this answer as SOLUTION
If this comment helps you, please LIKE this comment/Kudos




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





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.

Top Solution Authors
Top Kudoed Authors