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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
deaddingo
Regular Visitor

VLOOKUP based off different tables

Hi All

 

Apologies if this type of thing has been asked numerous times, but i am struggling a bit with it.

 

I have numerous tables set up in a data model.   Some are being pulled from SFDC Reports while others (table Summary) is from Excel.   

 

 

 

tables.JPG

As an example I have 3 different tables from SFDC (Rod, Jane and Freddy) which included the columns below.    The Table Summary (from Excel) is where I am consolidating the various reference numbers in one table.  I need this summary sheet to pull the status and comments from the relevant SFDC Table if the Reference number matches, as shown above.

 

If someone could help with how I can do this I would really appreciate it.  I will then try to use this info on the real data.

 

Many thanks

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @deaddingo ,

 

As long as they have the same column names, they can be appended successfully.

7.png

 

If the column names are different, let me give you an example. If I renamed the Status in the ROD table to Status 1, the following effects will appear.

9.png

 

Then right-click the column name to sort, the results are as follows

8.png

 

 

You just select append query as new. If it is not right, just delete the newly appeared table.

Screenshot 2021-05-13 142647.png

 

Best Regards,

Stephen Tao

 

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

9 REPLIES 9
Anonymous
Not applicable

Hi @deaddingo ,

 

As long as they have the same column names, they can be appended successfully.

7.png

 

If the column names are different, let me give you an example. If I renamed the Status in the ROD table to Status 1, the following effects will appear.

9.png

 

Then right-click the column name to sort, the results are as follows

8.png

 

 

You just select append query as new. If it is not right, just delete the newly appeared table.

Screenshot 2021-05-13 142647.png

 

Best Regards,

Stephen Tao

 

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

Thanks Stephen (and everyone for their replies).

 

I will give this a try.

 

Appreicate the help.

 

 

ERD
Community Champion
Community Champion

Hi @deaddingo ,

I would append tables as well. In case you have different columns structure but similar data, you need to prepare these queries for the append operation: select mutial columns, standardize column names, etc. 

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

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

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Hi @ERD 

 

As these have been pulled direct from SFDC, would modifying the column names in Bi have any affect on this?  Also,  what would happen to the columns that are not the same in all the tables?


Thanks

ERD
Community Champion
Community Champion

@deaddingo , I was talking about preparations in Power Query.

1. If you append the tables with the same column names, then you will get your summary table:

ERD_0-1620718832950.png

2. You can get rid of non mutial columns using Home tab - Choose Columns. Otherwise you will get null values for non mutial columns:

ERD_1-1620719091296.png

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

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

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

HotChilli
Super User
Super User

Why don't you 'Append Queries' on the 3 tables (in Power Query) and throw away the Excel summary table?

Unfortunately the 3 tables don't all have the same columns in them.   The examples were just a very simplified version so I cant append unfortunately.

mahoneypat
Microsoft Employee
Microsoft Employee

The three tables on the left should be appended in the query editor in Power BI (or Excel), since they have the same columns.  You can disable load on them so they are not part of your model, but you can then load the new table and the one on the right and relate them, or you can first merge them in the query editor to have just one table to load.

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Unfortunately the 3 tables don't all have the same columns in them.   The examples were just a very simplified version so I cant append.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors