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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
rajaranjith
Frequent Visitor

How to access multiple data source (from Excel and HANA db tables) using python script in Power BI?

Data Sources:

We have 3 excel files and 2 tables from HANA Database.

 

To Load and transform data using Python script in Power BI:

We would like to have a single Python Script written to load/transform the data from both the above mentioned data source into Power BI desktop app for report generation.

 

Quesiton:

How to do this?

 

8 REPLIES 8
danextian
Super User
Super User

I am no Python expert but can't this be done in Power Query instead?





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
rajaranjith
Frequent Visitor

Hi All.... is there any way to address this problem.... please let me know....

rajaranjith
Frequent Visitor

Hi All.... is there any way to address this problem.... please let me know....

VijayP
Super User
Super User

Sure @amitchandak , will create a scenario and share at the earliest




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Hi @VijayP any update to us on this question.

amitchandak
Super User
Super User

@rajaranjith , Each python script is added as a source, I doubt it work line a db/file connection

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

See I am aware of python script for each data source and to transofme the loaded data. But my request was how to have a single python script for multiple data sources to load and transorm data. As part of it I may want to join the two loaded tables to one and do some data processing.

 

Please let me know if I have put my question in correct form.

@rajaranjith , Let's wait for the python expert to jump in. I think @VijayP can help with this.

 

Hi Vijay, Can help with this?

Thanks,

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.