cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

Import selected or listed columns from connected excel

How we can import listed columns from excel ?

 

Fo example 
i have sheet in which from A-Z column i just need A-C-U-D columns not rest, i know the option "remove Other Columns" but it should be have dynamically in query editor with those column name has in list in another table.

 

hope i am clear on my quetion

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User I
Super User I

Re: Import selected or listed columns from connected excel

Is this still the same question?  My answer is to do with selecting columns where the column names are in a column (if that makes sense)

To make a column into a list, in Power Query, select the column and choose 'Convert to List' from the Transform menu.

View solution in original post

8 REPLIES 8
Highlighted
Super User I
Super User I

Re: Import selected or listed columns from connected excel

If you get a list in Power Query with the column names in it, you can use that list in the main query

 Table.SelectColumns(#"Renamed Columns", ColsList)

#"Renamed Columns" is just the previous step.

ColsList would be the name of the list

Highlighted
Microsoft
Microsoft

Re: Import selected or listed columns from connected excel

Hi , @Amardeep100115 

Follow these steps:

1.Select the required columns in Excel and apply the table format
(insert ->table ->create table)

3.png

 

2.The when you connect to excel in powerbi, please choose the "table 1" instead of "sheet1"

The result will show as below: The table contains only the data you want

6.png

 

BTY, you  also  can convet this table back to range

5.png

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Highlighted
Post Prodigy
Post Prodigy

Re: Import selected or listed columns from connected excel

I have 250 files in folders Every week we store same report and it's not possible to do this with each file Please share another way to do this in query editor

Highlighted
Microsoft
Microsoft

Re: Import selected or listed columns from connected excel

Hi , @Amardeep100115 

I am a little confused, is your data source  a folder containing 250 excel sheets  or  multiple excel sheets ?

If is a folder ,you may refer to this  related post.

https://powerbi.tips/2016/08/load-multiple-excel-xlsx-files/

 

If the data source is from 250 separate tables and you want to still get 250 separate tables after modeling, there is no way.

Because even using function, only one table can be generated at a time

I'm sorry I have no good ideas for now. I would suggest you raise it to the support team for better advice.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Highlighted
Post Prodigy
Post Prodigy

Re: Import selected or listed columns from connected excel

@v-easonf-msft 
I have 250 excel files in my folder not sheets

Highlighted
Post Prodigy
Post Prodigy

Re: Import selected or listed columns from connected excel

Let me try this
Highlighted
Post Prodigy
Post Prodigy

Re: Import selected or listed columns from connected excel

Spoiler
@HotChilli 

Could you please show me how to do this in BI sample file
Highlighted
Super User I
Super User I

Re: Import selected or listed columns from connected excel

Is this still the same question?  My answer is to do with selecting columns where the column names are in a column (if that makes sense)

To make a column into a list, in Power Query, select the column and choose 'Convert to List' from the Transform menu.

View solution in original post

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors