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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Using two different tables for an R script

I have an R script that uses data from 2 different tables. The tables have different columns name (only one in common). My question is: Is there a way on Power Bi to integrate this using Power Query with an R script, even if the tables are very different? The reason why this needs to be integrated in Power Bi is because of data security and easy use for the user of the algorithm, so any solution would help! 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Please refer to this same thread about How to use Python with multiple tables in the Power Query Editor  .
Here they discuss how to create a new table using a Python script that uses two existing tables as input by performing a  left join using pandas merge

 

You can also check whether the solution of the following process is  applicable to you.

operations-on-multiple-tables-datasets-with-edit-queries-and-r-in-power-bi 

 

Best Regards,
Community Support Team _ Eason

View solution in original post

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Please refer to this same thread about How to use Python with multiple tables in the Power Query Editor  .
Here they discuss how to create a new table using a Python script that uses two existing tables as input by performing a  left join using pandas merge

 

You can also check whether the solution of the following process is  applicable to you.

operations-on-multiple-tables-datasets-with-edit-queries-and-r-in-power-bi 

 

Best Regards,
Community Support Team _ Eason

Helpful resources

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

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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