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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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