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
olegkazanskyi
Helper II
Helper II

RELATED doesn't works in SELECTEDCOLUMNS

Helllo Community,

 

I try to create a new table with SELECTEDCOLUMN formula.

I need to pull data from a related table with one to many relation.

I use RELATED() and the formula should work, but it doesn't.

 

Anyone have a suggestion what's a hidden block here?

 

olegkazanskyi_1-1629980551729.png

 

Here is the connection. It's definitely ok.

olegkazanskyi_3-1629980700067.png

 

P.S. What I've found is that a reason might be in a connection between 2 tables from different datasets. (I'm testing functionality)

When it inside the same dataset, there are no flaws.

1 ACCEPTED SOLUTION

@olegkazanskyi 

 

It might be because of the Limited relationships : https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-relationships-understand#limited-r...

 

VahidDM_0-1630021759588.png

 

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

Appreciate your Kudos VahidDM_1-1630021846859.png !!

View solution in original post

4 REPLIES 4
VahidDM
Super User
Super User

Hi @olegkazanskyi 

 

Try the below rather than RELATED in your code:

LOOKUPVALUE(Company[Name],Company[company],sales[Company])
 

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

Appreciate your Kudos VahidDM_0-1629982877444.png !!

Yes, It works.

Thank you!

 

Any ideas why RELATED failed? Is it because of DirectQuery connection?

It shouldn't be as connection between tables are available and work.

@olegkazanskyi 

 

It might be because of the Limited relationships : https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-relationships-understand#limited-r...

 

VahidDM_0-1630021759588.png

 

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

Appreciate your Kudos VahidDM_1-1630021846859.png !!

You,re right!

Thank you!

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.