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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
omerk
New Member

import specific colums from excel

hi,

 

i would like to import specific colums from an excel file into the power bi.

the reason is the excel file keeps on changing and sometimes colums are missing, so i can't just refresh the date source from the power bi cause i get an error saying some colum is mising. 

 

thaks

1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

I assume if you select the columns you want to keep and then select "remove other columns", this should work for you. It shouldn't matter what the other columns are.   So if some are missing, it will still work. But if one of the columns you want to keep is missing, then it will fail



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

4 REPLIES 4
MattAllington
Community Champion
Community Champion

I assume if you select the columns you want to keep and then select "remove other columns", this should work for you. It shouldn't matter what the other columns are.   So if some are missing, it will still work. But if one of the columns you want to keep is missing, then it will fail



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

I am facing a similar problem, basically what I want to do is that I want to write a code to dynamically populate data into a blank table from an excel file. Say my excel file presently has 50 columns and I only want to select 15 out of them, but I want to do this at the time of data import and not using query editor.
Kindly Help.

Hi,

thanks for the response' unfortunately it is not true. if i remove the columns that i don't want (with the power bi query editor) and then the columns are deleted from the excel spreedsheet it will give me an error massage.

any suggestions?

Did you use "remove other Colums" as I suggested?  Assuming there is a defined set of columns that are always there, select these columns and then use the menu "remove other columns". 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.