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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
BarryM
Helper II
Helper II

Trying to insert data from multiple tables into another existing table based on column names

I have a PBIX file with 9 different tables. 1 of the tables is essentially a history table which contains all the data from the start of this project. The other 8 tables contain data which is updated twice a week.

 

In 4 of the tables the names used in in the relationship column are long disjointed names, I have 1 of the 8 tables that is used to translate the long disjointed names into the more descriptive names used in the other tables. The relationships for the tables are all active.

 

I need to get all the information from all the other tables (except the reference table) into the "history" tables without loosing any of the existing data in the history table essentially append the data into the correct columns. 

 

I have been trying to figure out how to pull the data out of the bi-weekly updated tables and place it into the correct cloumns in the "history" table but I have had no luck with anything I've attempted.

 

Below is a screen shot of the relationship between the tables and the the arrows indicate where the data need to end up for context.

 

BarryM_1-1634933723249.png

 

 

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

Hi @BarryM 

Power BI doesn't support to dynamicly insert values into Existing columns.

I think you can try to add calculated columns into your history table. I see you create relationship between your tables, you can try related function, userelationship functions ,or filter in your code.

Or you can try merge function in Power Query.

For reference: 

Combine queries

Both calcualted column or Combine queries will show the latest value from other tables.

 

Best Regards,
Rico Zhou

 

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

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @BarryM 

Power BI doesn't support to dynamicly insert values into Existing columns.

I think you can try to add calculated columns into your history table. I see you create relationship between your tables, you can try related function, userelationship functions ,or filter in your code.

Or you can try merge function in Power Query.

For reference: 

Combine queries

Both calcualted column or Combine queries will show the latest value from other tables.

 

Best Regards,
Rico Zhou

 

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors