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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.