cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Use missingfield.ignore on source data

 Hi All,

 

I have a data source from excel where I have removed numerous columns.  When I go to import the updated excel file with less columns I get the "Missing Fields Error" and am unable to import the data.  I do not want any of those columns, and rebuilding the whole import just for a few missing columns, at this point, would be a massive pain.  I read about the ability to use missingfield.ignore on tables...however, I'm unsure how to use it upon importing the data source.  Ie, is there a way to utilize it on:

 

= Source{[Item="case_all_sentiment",Kind="Sheet"]}[Data]

 

For example, = Source{[Item="case_all_sentiment",Kind="Sheet"]}[Data],MissingField.Ignore

 

(NOTE: I know this does not work).  

3 REPLIES 3
Solution Sage
Solution Sage

Hi @SMarshall,

 

MissingField.Ignore is an optional parameter in record and table functions indicating that missing fields should be ignored. So it cannot be used in Source().

 

And could you please share us your Excel file (or a sample file which can help us repro your issue) with One Drive or Google Drive if possible? So that I can know the actual situation and make some tests.

 

Thanks,
Xi Jin.

Hi v-xjiin-msft, 

 

I appreicate your response and am sorry for getting back to you so late.  Basically, say I have the following columns in an excel spreadsheet

 A B C D E

 

I then build out a very extensive dashboard but discover I no longer need column C.  Rather than uploading a blank cell, I just want column C to be ignored as my new excel file is just 

ABDE.

 

If this were just one column, I probably wouldn't mind having blank columns.  However, in reality, I have 10-15 columns that have all gotten moved around in order. 

 

Thus, ideally, I want Power BI to stop erroring out when it hits a "missing" column and just move on and not upload the column any longer.  Is that possible?

New Member

 Hi All,

 

I have a data source from excel where I have removed numerous columns.  When I go to import the updated excel file with less columns I get the "Missing Fields Error" and am unable to import the data.  I do not want any of those columns, and rebuilding the whole import just for a few missing columns, at this point, would be a massive pain.  I read about the ability to use missingfield.ignore on tables...however, I'm unsure how to use it upon importing the data source.  Ie, is there a way to utilize it on:

 

= Source{[Item="case_all_sentiment",Kind="Sheet"]}[Data]

 

For example, = Source{[Item="case_all_sentiment",Kind="Sheet"]}[Data],MissingField.Ignore

 

(NOTE: I know this does not work).  

Helpful resources

Announcements
secondImage

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

secondImage

Power BI Women

Join our monthly meetings and learning sessions.

secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors