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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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