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
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
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.