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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.