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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Analitika
Post Prodigy
Post Prodigy

Can't create a new column using related in table in Power Bi

Hello,

 

I have question, how I could create a new column using related expression. I used like this: 

Analitika_0-1641806696792.png

I checked - both tables has a relationship but I still can't create that column. I am getting this error:

Analitika_1-1641806775687.png

How I could resolve this issue?

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @Analitika ,

 

The RELATED function cannot be used to fetch a column across a limited relationship.

 

You can try some DAX like the following:

columns =
CALCULATE(
    MAX( 'result_table'[values] ),
    FILTER(
        'result_table',
        [related_ID] = EARLIER( 'current_table'[related_ID] )
    )
)

OR LOOKUPVALUE().

 

Best Regards

Community Support Team _ chenwu zhu

 

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

amitchandak
Super User
Super User

@Analitika , related work from on Many side from one side

 

A new column in table 1

You can try maxx(relatedtable(Table2), Table2[Column])

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.