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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
parnoldip
New Member

Add column from another related table, relationship many to one

Hello, first post here 🙂

 

I have two tables:

1. TABLE A where I have the folllowing columns (among others)

> "PART ID" > Duplicated values

> "SUPPLIER ID" > Duplicated values, no only for same PART ID but also can have same supplier ID for different Part IDs

> "SUPPLIER STATUS" > Where I can have as one of the possible status "Recommended"

RFPCode          SupplierIDNumber       SupplierRFPStatus
3172Recommended
3172Recommended
3172Recommended
3172Recommended
3172Recommended
3172Recommended
3172Recommended
3172Recommended
3172Recommended
49170Recommended
49170Recommended
49170Recommended
49170Recommended
49170Recommended
49170Recommended
49170Recommended
49170Recommended
49170Recommended
49270Recommended
49270Recommended

 

 

2. TABLE B where I have the following columns (among others)

> "PART ID" > Unique values, already related to TABLE B, relationship active, many (Table B) to one (Table A).

>  I want to create a new column that brings only ID from suppliers that have a recommended status.

 

- I already tried with related function but is not working, I understand because relationship is many to one.

- If I do the connection in the graphic directly, it duplicates all the IDs for x times as it appears in Table A

 

- I thought of creating a new table using FILTER to bring only unique values for RFP CODE and SUPPLIER ID when Status is equal to "Recommended"? and then connecting to the table b? However I have only gone this far:

 

TABLE C = filter(TABLEA,

TABLEA[SupplierStatus]="recommended")
 
And I get a new table with only the data containing the ID of the Suppliers that are recommended, But I still get more than one line per PART ID and do not know how to filter per unique values in column "PART ID"

 

Thanks!

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

Just as you have shared data for Table A, share data for Table B as well.  Please also show the expected result. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.