This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is now in read-only for platform upgrade. Learn more
Good morning to the Power BI community,
From the Excel files that I receive every week concerning incidents by department, I have built a Power BI report.
Sometimes, in the Excel files, the name of the department in the column header (e.g. Marketing) is modified by a person and therefore, during the refresh, I get an error during the transformation indicating that the "Marketing" column does not exist.
Currently, I manually check the column headers or I modify the transformation steps in Power Query Editor so that the refresh works.
I would like to know if there is any way to manage this type of problem in an automated way?
Thanks in advance
Hi 1Daniel993
Sorry for the delay but I am full at the moment.
Yes, I normally have the same number of columns (hopefully the person who changes the header name doesn't add any more).
Hello, you could try with code M in powerQuery
Questions always do you have the same numbers of columns?
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 14 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 47 | |
| 36 | |
| 24 | |
| 20 | |
| 20 |