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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
mp390988
Post Patron
Post Patron

RELATED function not working despite a join

Hi,

 

I have this model:

mp390988_0-1755859278163.png

 

 

I am trying to create a calculated column to bring in the DealerID from the Clients Table into my Payments Table.

mp390988_2-1755859598053.png

 


But i get an error saying: The column 'Clients[DealerID]' either doesn't exist or doesn't have a relationship to any table available in the current context.


Why is this happening?

Thank You

1 ACCEPTED SOLUTION

@mp390988  

Glad that helped! 
Yes, LOOKUPVALUE is a good alternative when RELATED doesn’t behave as expected, especially if the relationship setup is tricky. Just make sure the Clients[ClientID] column is unique, so you always get a single match.

Happy reporting, and if this solved your issue, please don’t forget to give a Kudos 👍 and mark it as Accepted Solution so others can benefit too.

Thanks
Shashi Paul 

View solution in original post

7 REPLIES 7
danextian
Super User
Super User

Hi @mp390988 

That is a limited relationship between DQ and import and what you're experiencing is a known limitation.

Model relationships in Power BI Desktop 

danextian_0-1755861930835.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Ah I see, thanks @danextian .
So I will use @shashiPaul1570_ suggestion of LOOKUP instead then.

Have you tried LOOKUPVALUE? Did  it work? The last time I tested it with a limited relationship, it didn't work.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

@mp390988  

Glad that helped! 
Yes, LOOKUPVALUE is a good alternative when RELATED doesn’t behave as expected, especially if the relationship setup is tricky. Just make sure the Clients[ClientID] column is unique, so you always get a single match.

Happy reporting, and if this solved your issue, please don’t forget to give a Kudos 👍 and mark it as Accepted Solution so others can benefit too.

Thanks
Shashi Paul 

mp390988
Post Patron
Post Patron

I can see a relationship betweent the Clients and Payments table but I just noticed some weird thing as marked in red in the snapshot:

mp390988_0-1755861175049.png


The relationship between these 2 tables is active:

mp390988_1-1755861255312.png

 

Hi @mp390988 

Thanks for sharing the update.
For some reason, I am unable to see the screenshot that you might have shared. 
Since the relationship is active, here are a few things you can check

 

  1. Cardinality & Direction

    • Ensure it’s a 1 → * relationship with Clients on the “1” side and Payments on the “*” side.

    • If the arrow direction is set incorrectly (e.g., both sides * or a two-way cross filter causing ambiguity), the Related() function may fail.

  2. Column Reference

    • Double-check that the column name you’re trying to bring in is exactly Clients[DealerID] and not a different name (sometimes spaces, casing, or hidden columns cause confusion).

  3. Multiple Relationships

    • If there are multiple paths between Clients and Payments, Power BI may deactivate one and mark it with a dotted line. In such cases,  Related() won’t work unless the active path is the correct one.

  4. Alternative Approach

    • If the model design makes Related() fail, you can still achieve it with

DealerID =
LOOKUPVALUE(
Clients[DealerID],
Clients[ClientID], Payments[ClientID]
)

This works even if the relationship is not straightforward, as long as Clients[ClientID] is unique.

If you just want to use the Related() function only, just try the same senario in different file with sample tables which fulfills the conditions of Related(). Hopefully it will give you better idea. 

Hope this helps! Please give a Kudos 👍 if useful, and mark as Accepted Solution once it resolves your query.

 

Thanks 
Shashi Paul 

 

shashiPaul1570_
Responsive Resident
Responsive Resident

Hi @mp390988 
RELATED() only works in a calculated column when there is an active 1→ relationship* from Clients (1) to Payments (*) and a single, unambiguous path.

In Model view, please ensure
Clients[ClientID] 1 —— * Payments[ClientID] (Active = Yes).

Then use in Payments

DealerID = RELATED(Clients[DealerID])


If you can’t make that relationship active (or it’s M2M), use:

DealerID = LOOKUPVALUE(Clients[DealerID], Clients[ClientID], Payments[ClientID])


Ensure Clients[ClientID] is unique; otherwise LOOKUPVALUE will error.

Please find this artical for more details.
https://www.datacamp.com/tutorial/power-bi-related-dax-function?utm 

If this solves it, a Kudos 👍 and Accepted Solution would be awesome!

Thanks 
Shashi Paul 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.