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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Antonio_Gomez
Resolver I
Resolver I

Select Column From Existing Table with Python

Hello Everyone!

 

I need some help, please.

 

I want to create a table from selecting only the column "Destination" of the table "Historical" using Python on the PBI.

 

My tables are in an SQL Server database with one name for the Server and other name for the database

 

Antonio_Gomez_0-1659541979554.png

 

1 ACCEPTED SOLUTION

@Antonio_Gomez 

 

You certainly should use PQ to cleanse your data. On top of that, yes, you can use Python in PQ but given that PQ has so many capabilities and the M language that is so versatile... I would not even try to use Python 🙂 Just try to make use of what's already in there!

View solution in original post

3 REPLIES 3
daXtreme
Solution Sage
Solution Sage

@Antonio_Gomez 

 

Why do you have to use Python to do it? Is it not dead easy thru Power Query's native capabilities?

Hello @daXtreme Thanks for your interest,

 

My main goal is to clean that column. It contains information that needs standardization, so, I need to create an auxiliar table from that column and apply it after that some transformations.

 

Maybe, I could create that table with M in Power Query and after that use python.

 

 

@Antonio_Gomez 

 

You certainly should use PQ to cleanse your data. On top of that, yes, you can use Python in PQ but given that PQ has so many capabilities and the M language that is so versatile... I would not even try to use Python 🙂 Just try to make use of what's already in there!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors