cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mkpado Frequent Visitor
Frequent Visitor

Remove or Rename Data Field in Excel Query

I am currently running into a query error whenever I need to remove or rename a a data feild in the source Excel file that I am querying from Power BI Desktop. For Example: 

 

I create a query between Power BI and an Excel file "Table 1" with 3 data feilds "Field 1", "Field 2" and "Field 3".

If I want to remove a data field - i.e. delete "Field 2" from the source file ("Table 1") I recive an error when I try to refresh the query. Furthermore, if I remane a field (e.g. "Field 2" to "Field 4") I also recive an error when I try to refresh the query. 

 

From what I can tell the query is looking for the deleted or renamed data field and when it cant find the data field it throws back an error. Is there any querying method that allows the freedom to remove and / or rename data fields in a source file without breaking the original query?

 

Any help would be greatly appreciated. Thank you!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
MarcelBeug Super Contributor
Super Contributor

Re: Remove or Rename Data Field in Excel Query

Depending on your query code, you may use parameter missingField, with available values and applicable functions below:

 

missingField Values.pngmissingField.png

 

 

Specializing in Power Query Formula Language (M)

View solution in original post

1 REPLY 1
Highlighted
MarcelBeug Super Contributor
Super Contributor

Re: Remove or Rename Data Field in Excel Query

Depending on your query code, you may use parameter missingField, with available values and applicable functions below:

 

missingField Values.pngmissingField.png

 

 

Specializing in Power Query Formula Language (M)

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 278 members 2,750 guests
Please welcome our newest community members: