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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.