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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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