Forum Discussion
Combining SharePoint Excel Files but Removing rows beforehand
I am using PowerBi to combine excel files that are placed in a SharePoint Folder, however everytime I do, I receive an error. I beleive it's because of the 03/03/2020 part in the first row. Every excel fiel is the same format and structure. Everytime I combine it, it only Transforms the sample file. For Instance, the file name 03.01.2020 is the same file and is transformed with the Source.Name in the first column....but gives errors for all the other excel files. Is there anyway to clean up the excel files before combining them within PowerBi? Below is an example of what the excel file looks like.
| 03/03/2020 Display 1 | ||||||||||
| Name | Name 1 | Name 2 | Name 3 | Name 4 | Name 5 | Name 6 | Name 7 | Name 8 | Quantity | |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 0 | |
| 12 | 14 | 16 | 18 | 20 | 22 | 24 | 26 | 28 | 30 | |
| 14 | 17 | 20 | 23 | 26 | 29 | 32 | 35 | 38 | 0 | |
| 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 0 | |
| 18 | 23 | 28 | 33 | 38 | 43 | 48 | 53 | 58 | 0 | |
| 20 | 26 | 32 | 38 | 44 | 50 | 56 | 62 | 68 | 0 | |
| 22 | 29 | 36 | 43 | 50 | 57 | 64 | 71 | 78 | 0 | |
| 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 88 | 0 | |
| 26 | 35 | 44 | 53 | 62 | 71 | 80 | 89 | 98 | 0 | |
| 28 | 38 | 48 | 58 | 68 | 78 | 88 | 98 | 108 | 0 | |
| 30 | 41 | 52 | 63 | 74 | 85 | 96 | 107 | 118 | 0 |
Hi Anonymous
It is a known issue.
It would be fixed in March version.
You could find some workarounds shared by others here.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- v-juanli-msftCommunity Support
Hi Anonymous
If all excel files have the same structure, please refer to the following to combine and append all files together.
https://powerbi.microsoft.com/en-us/blog/combining-excel-files-hosted-on-a-sharepoint-folder/
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- AnonymousNot applicable
Hey v-juanli-msft , thanks for the response. I have tried this approach but keep receiving an error message; "Error: The active item should be a query"
- v-juanli-msftCommunity Support
Hi Anonymous
It is a known issue.
It would be fixed in March version.
You could find some workarounds shared by others here.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.