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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

Related function issues

Hi,

 

I'm trying to use the related function in tableB which looks like this

age = related(tableA'age')

 

Also, both the tables are joined based on a key column.

Still, the related function doesn't show the age column automatically and the above-caclulated column throws an error.

ua.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi Jimmy and Parry,

 

Thanks for your replies.

Here is when the related function started working.

Sorry, I couldn't share the client data model, but when I used related function in the primary fact table it works.

When I was trying to create that in dimension table I was getting the above error.

 

 

View solution in original post

5 REPLIES 5
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

You'd better nest the RELATED() function into a FILTER() statement, then implement the table scanning function. Please refer to doc about RELATED().

https://docs.microsoft.com/en-us/dax/related-function-dax

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi Jimmy and Parry,

 

Thanks for your replies.

Here is when the related function started working.

Sorry, I couldn't share the client data model, but when I used related function in the primary fact table it works.

When I was trying to create that in dimension table I was getting the above error.

 

 

@Anonymous that make sense, fact will be on the many side of the relationship and dim is on one side for the relationship and that's exactly my first reply was, not sure why you think it started working now. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Thanks let me try this today

parry2k
Super User
Super User

@Anonymous related will show column from one side of the relationship. How your these two tables are related? Share relationship diagram.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.