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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Rhodes
Frequent Visitor

Is it possible to add columns between tables before expanding?

Greetings. 

 

I have 55 csv files that are combined by a query, each of which contains 7 years of 5 min data values. several additional columns are created based on the summation of two or more of these files. To do this i am pivoting all the data then adding the custom column. Then deleting the original 55 column and unpvioting to flatten the query.

 

The pivoting step is resulting in a long query refresh time and i started wondering if it was possible to pivot the file tables and add columns before expanding the tables representing the data within each file. From the screenshot below, add a column that contains a table with column "MM/dd/yyyy HH:mm:ss" and the summation of column "MGD" from the C-12_36646393.csv and CS11-04_36646393.csv tables. all tables have the same number of timesteps which should sorted the same as well. However, column "MGD" does contain null values.

 

image.png

 

 

This could be a deadend but figured i would ask the crowd. Appericate the help.

Steven

 

 

 

 

 

 

1 REPLY 1
v-frfei-msft
Community Support
Community Support

Hi @Rhodes ,

 

Kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive for Business and share the link here.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors