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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Jerome_C63
Frequent Visitor

Modified column header

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

2 REPLIES 2
Jerome_C63
Frequent Visitor

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).

1Daniel993
Helper III
Helper III

Hello, you could try with code M in powerQuery

Questions always do you have the same numbers of columns?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.