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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.