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
Anonymous
Not applicable

Arrays and For Loops in Python Visual

I have a couple of tables that are linked in the relationship tab by date and serial number. I am able to pull the tables into the python visual.

 

I want to take one column in a table and put it into an python/numpy array. What would the formula be for that in relation with the data frame?

 

Eventualy I want a for loop checking the arrays before moving on. Is it possible to use for loops in python visual? 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , You have to bring those tables using python do the operation dataset, and then print them to power bi

 

How to make Python work with Power BI: https://youtu.be/5D0BkNsu5CM

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
Anonymous
Not applicable

Hi @amitchandak I have the data coming from sharepoint and our data historian. Is it not possible to use python visual on it? 

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.