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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jzhao
Frequent Visitor

Issues with Filtering Tables in Power BI After Manual Relationship Setup

I'm facing a strange issue. I loaded data using a direct query with an imported relationship, and I can filter the table using the following code:

Filter(Direct Query Imported Relationship Table, related(lookup table[fiscal year]) > 2024).

However, when I set up the relationship manually, I can no longer filter the table with this code:

Filter(Manually Set Up Relationship Table, related(lookup table[fiscal year]) > 2024).

Power BI throws an error saying, "Column doesn't exist or doesn't have a relationship to any table available in the current context." Does anyone know why this is happening?

 

 

 

All Relationship are many to one, cross filter direction is single.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jzhao ,

 

As BeaBF  mentioned, check the model relationships between your tables.

You will get the error for the relationship shown below.

vtangjiemsft_0-1729058653261.pngvtangjiemsft_1-1729058664441.png

You need to change your model relationships to output properly with lookup table as one end table, see 

Using RELATED and RELATEDTABLE in DAX - SQLBI

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

 

vtangjiemsft_2-1729058970015.pngvtangjiemsft_3-1729058984394.png

 

Best Regards,

Neeko 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 @jzhao ,

 

As BeaBF  mentioned, check the model relationships between your tables.

You will get the error for the relationship shown below.

vtangjiemsft_0-1729058653261.pngvtangjiemsft_1-1729058664441.png

You need to change your model relationships to output properly with lookup table as one end table, see 

Using RELATED and RELATEDTABLE in DAX - SQLBI

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

 

vtangjiemsft_2-1729058970015.pngvtangjiemsft_3-1729058984394.png

 

Best Regards,

Neeko Tang

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

BeaBF
Super User
Super User

 

@jzhao Hi, can you paste the screen of the relationship? 

 

BBF

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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