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
christianfcbmx
Post Patron
Post Patron

How can I change source from EXCEL FILE TO SQL?

Hello Community,

 

I have 7 excel tables in a pbix model and now the tables were moved to SQL (same structure)... I need help to change the source to SQL and make the report to work again.

 

Aney body could guide me pleease...I heard abt the advance editor but I still dont get the idea.

 

This is my escenary with the query editor...

Any help would be so much appreciate it. 

 

excel M codeexcel M codeSQL M codeSQL M code

 

1 ACCEPTED SOLUTION
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @christianfcbmx ,

You could just copy all the code in the SQL advanced editor to replace the code in the excel advanced editor, it could work on my side.

 

Regards,

Daniel He

Community Support Team _ Daniel He
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

2 REPLIES 2
Anonymous
Not applicable

This is good. how do you do it when the data from sql is from mutiple tables?

 

v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @christianfcbmx ,

You could just copy all the code in the SQL advanced editor to replace the code in the excel advanced editor, it could work on my side.

 

Regards,

Daniel He

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

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 Solution Authors
Top Kudoed Authors