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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Nikit18
Frequent Visitor

How to call column value from a table with one to many relation

I'm facing a problem while pulling column value from related table. 

 

Table A -Table B are in Many to one relationship.

 

Table A

 

Route ID Col Value

Route1

ABC
Route1ABC
Route1ABC

 

 

Table B

 

Route ID Column value
Route 1ABC
Route 2 
Route 3 

 

Can someone suggest how to call unique value in case on Many to One related table. 

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @Nikit18 ;

Not sure if you understand what you mean correctly, you can create a column by dax.

Column = CALCULATE(MAX('TableA'[Col 1]),FILTER('TableA',[Key_ID]=EARLIER(TableB[Key ID])))

The final show:

vyalanwumsft_0-1664961002380.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-yalanwu-msft
Community Support
Community Support

Hi, @Nikit18 ;

Not sure if you understand what you mean correctly, you can create a column by dax.

Column = CALCULATE(MAX('TableA'[Col 1]),FILTER('TableA',[Key_ID]=EARLIER(TableB[Key ID])))

The final show:

vyalanwumsft_0-1664961002380.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks

Nikit18
Frequent Visitor

@amitchandak : Do you have any suggestions on this ?

croberts21
Continued Contributor
Continued Contributor

Another way to put this is "remove duplicate values for a column." I have not seen a way to do this in PBI but you may try doing a search with those new keywords. 

PhilipTreacy
Super User
Super User

Hi @Nikit18 

 

The problem is not clear to me.  Can you try explaining it again with more detail and providing an example of the result you want.

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Hi Phil, 

 

Let me explain you in this way. 

 

Table A is related to Table B with Many to One , ie, there are multiple rows in Table A vs unique row for Table B. Now I want to pull a column from Table A to Table B and data type is String. 

 

 

Table A

Key_IDCol 1
ABC_123Ex1
ABC_123

Ex1

ABC_123Ex1
ABC_123Ex1
ABC_123Ex1
ABC_124EX2

 

Table B: 

Key ID 
ABC_123Ex1
ABC_124Ex2
ABC_125 
ABC_126 

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.