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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Hoofit
New Member

Changing a data source

I am creating a query in Excel based on a standard datasheet, and I am finding that I cannot add additional columns to the query once I have created the query, so I am having to recreate all my base data in a brand new spreadsheet.  Once created, is there a way of adding additional coluns to the query??

Thanks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Hoofit ,

 

This is the article about changing your existing data source.

The article lists the methods in two cases. Depending on the type of data source you want to replace – you can use one of the below approaches.
1.Replace data source using the same connector
2.Use different data source connector – as data sources are completely different.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @Hoofit ,

 

This is the article about changing your existing data source.

The article lists the methods in two cases. Depending on the type of data source you want to replace – you can use one of the below approaches.
1.Replace data source using the same connector
2.Use different data source connector – as data sources are completely different.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hoofit
New Member

Thank for the reply.  What I do is...

Have an excel sheet

Do Data -> New Query -> From table (Creates a PowerQuery Dataset), when I save this as a new sheet in Excel.  If I wabt to add additional columns from the original datasheet, I cant, or rather I cant see how.

Thanks again

Paul

 

Hoofit_0-1626352385539.png

 

Hi, is this what you were after, if I want to select additional columns from the target, it does not allow me to add a new selection, or even create a new query.  If I try to create a new query including the ones previously selected by the old query, it tells me that tables cannot overlap.

Thanks again for looking.

Paul

If I could just delete the old query, that would help!!

Hoofit
New Member

Thank for the reply.  What I do is...

Have an excel sheet

Do Data -> New Query -> From table (Creates a PowerQuery Dataset), when I save this as a new sheet in Excel.  If I wabt to add additional columns from the original datasheet, I cant, or rather I cant see how.

Thanks again

Paul

You should be able to just refresh the query to pick up the new columns.  Can you share the M code from the Advanced Editor of your query to help troubleshoot?

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

When you refer to a "standard data sheet, is that one csv or text file? If so, the Source step probably has a Columns = some number. Just delete that, and ant and all columns will be imported. 

--Nate

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors