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
aklein
Regular Visitor

Python visualization with multiple data sources

Hello,

 

I am currently working with the python visualization tool and was trying to do some data processing using two separate datasets. As these two data sets do not map directly to eachother I do not want to declare a relationship between them. I just want to access a second dataset (already loaded into power bi) as I process the first and generate the visualization. As such I was hoping to just create two separate dataframes, one for each dataset, in the python editor and go from there, but did not see a way to do so. Is there any way to create multiple dataframes with the visualization tool? By default it only creates one.

 

(I saw similar questions asked in regards to the python query tool, but not in regards to the visualization tool.)

Thanks! 

1 ACCEPTED SOLUTION
TeigeGao
Solution Sage
Solution Sage

Hi @aklein ,

As mentioned in the document Create Power BI visuals using Python at https://docs.microsoft.com/en-us/power-bi/desktop-python-visuals, there is a limitation for Python visuals in Power BI Desktop:

Relationships – as with other Power BI Desktop visuals, if data fields from different tables with no defined relationship between them are selected, an error occurs.

Best Regards,

Teige

View solution in original post

1 REPLY 1
TeigeGao
Solution Sage
Solution Sage

Hi @aklein ,

As mentioned in the document Create Power BI visuals using Python at https://docs.microsoft.com/en-us/power-bi/desktop-python-visuals, there is a limitation for Python visuals in Power BI Desktop:

Relationships – as with other Power BI Desktop visuals, if data fields from different tables with no defined relationship between them are selected, an error occurs.

Best Regards,

Teige

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