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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

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