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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Centaur
Helper V
Helper V

Update Vendor Name based on Vendor Code

Hello,

 

I have a query with [Vendor Name] and [Vendor Code].

I need to add another column for when the Vendor Name is null but I need to match on Vendor Code.

So essentially, when the Vendor Name is null then look at all the Vendor Codes and populate the Vendor Name when there is a match on the Vendor Code.  

 

I am importing an excel file and sometimes the owner doesnt update the vendor name so I want to automate this when the user forgets to update the vendor name. 

 

If you need to see the code in Advanced Editor I can paste it but its a little long.  

I am thinking there is a simple solution for this by way of adding a custom column or conditional column with special code that I dont know. 

 

thank you.

I hope this makes sense. 

I am a novice user in Power Query. 

Let me know of any questions.  

 

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @Centaur ,

 

It just looks like you need to relate your Vendor dimension table (your master list that you're planning to fill in the gaps with) to the table provided by the owner.

In the data model, you would relate dimensionTable[VendorCode] ONE : MANY ownerTable[VandorCode].

You can then use the [VendorName] field from your dimension table in any visuals/calculations that you want.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

2 REPLIES 2
BA_Pete
Super User
Super User

Hi @Centaur ,

 

It just looks like you need to relate your Vendor dimension table (your master list that you're planning to fill in the gaps with) to the table provided by the owner.

In the data model, you would relate dimensionTable[VendorCode] ONE : MANY ownerTable[VandorCode].

You can then use the [VendorName] field from your dimension table in any visuals/calculations that you want.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Hi Pete, thanks for the info.  

 

I however do not have a separate vendor table.  Its an import of an excel file with all the details (table is called FBL1N Pmts.  

is there a way to adjust what I already have in this table FBL1N Pmts to populate Vendor Name based on the vendor code in this single table I have? 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.