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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors