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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Kudoed Authors