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

View all the Fabric Data Days sessions on demand. View schedule

Reply
elflakoconk
Helper II
Helper II

Error using RELATED, many to one / one to one

Hi everyone, I've been looking for many posts without success.

 

I'm using DirectQuery with 2 tables:

 

 

The field key I'm using is "Telefono", the relation between both tables is many to one (many because 0 values repetead). So I need a new table in table A indicating the record where the value is the same in table B.

 

objetivo.jpg

 

I've used RELATED getting this message: "The column 'B[Telefono]' either doesn't exist or doesn't have a relationship to any table available in the current context.

I also tried changing the relation to one to one getting the same error.

 

Thank you.

1 ACCEPTED SOLUTION

Hi @elflakoconk 

 

It works in DQ connection mode, I tested it in DQ mode as well.

007.PNG008.PNG009.PNG

 

 

Community Support Team _ Dina Ye
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

6 REPLIES 6
v-diye-msft
Community Support
Community Support

Hi @elflakoconk 

 

Kindly check the attachment.

003.PNG

 

 

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

Thanks for your time, but it didn't work, as I menttioned before, I need to use DirectQuery and using all the formulas described in others help answers it didn't work. It throws the same error message.

Hi @elflakoconk 

 

It works in DQ connection mode, I tested it in DQ mode as well.

007.PNG008.PNG009.PNG

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
amitchandak
Super User
Super User

@elflakoconk , One of the Two should work

FLAG = ISBLANK(maxx(FILTER(B,A[Telefono]=B[Telefono]),B[Telefono]), "No", "Si")

FLAG = IF(ISBLANK(RELATED(B[Telefono])), "No", "Si")
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thans a lot for your help.

using this: 

FLAG = ISBLANK(maxx(FILTER(B,A[Telefono]=B[Telefono]),B[Telefono]), "No", "Si")

Get this:

Too many arguments were passed to the ISBLANK function. The maximum argument count for the function is 1.

Also the autosense doesn't recognice the function FILTER and the B table.

 

for the second formula is the same first result.

😞

mahoneypat
Microsoft Employee
Microsoft Employee

So you tried an expression like this in your column?

 

NewColumn = IF(ISBLANK(RELATED(B[Telefono])), "No", "Si")

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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