Forum Discussion
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?
Here is the connection. It's definitely ok.
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.
It might be because of the Limited relationships : https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-relationships-understand#limited-relationships
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your Kudos !!
4 Replies
- VahidDMSuper User
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 !!
- olegkazanskyiHelper II
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.
- VahidDMSuper User
It might be because of the Limited relationships : https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-relationships-understand#limited-relationships
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your Kudos !!