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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.

Top Solution Authors