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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

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