Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi!
I am looking to solve a problem I am having in query editor. I have multiple files which I am looking to combine that have the same structure but different column names. The column names are changed everyday when a new file is uploaded with the past day's information. I will try to summarize below.
Table 1:
| Item | 1/1/2020 | 1/2/2020 | 1/3/2020 | 1/4/2020 |
| 1 | 500 | 400 | 300 | 400 |
| 2 | 600 | 500 | 400 | 500 |
Table 2:
| Item | 1/2/2020 | 1/3/2020 | 1/4/2020 | 1/5/2020 |
| 1 | 400 | 300 | 400 | 300 |
| 2 | 500 | 400 | 500 | 350 |
As you can see in the example tables, each table reaches back a specific amount of days and displays total sold for each item. Each day a new file is added and the date range is pushed forward one day. Unfortunately, the data I am working with is confidential and that is the most amount of information I can provide.
I am looking for this combining to be fully automated. I was thinking "unpivot other columns" would be in the solution but I have not figured out the solution just yet. I would really appreciate any help I could get! Thank you in advance!!!
Solved! Go to Solution.
Hi @Anonymous,
Import the folder and adapt the Transform File function accordingly.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hi @Anonymous,
Import the folder and adapt the Transform File function accordingly.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
@mwegener Thank you very much for your help!
My takeaway from this is that you can essentially "unpivot other columns" on all of the files before the combining of them takes place.
Would you mind commenting more on this process other than the two screenshots or posting a link that can provide more guidance? The dataset I am working with is much more complicated than my example tables so I would just this solution to be scalable.
I really appreciate any help! Thank you very much!!
Hi @Anonymous ,
what can I write about it?
1. I imported the files from "Folder" using "Get Data".
2. I used the "Combine & Transform Data" option.
3. Then I modeled my transformation using the "Transform Sample File" query.
3. Then I copied the transformation into the "Tranform File" function using the "Advanced Editor".
Make sure that the transformation steps are valid for all files.
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 42 | |
| 35 | |
| 35 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 65 | |
| 58 | |
| 28 | |
| 27 | |
| 25 |