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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.