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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mtworski
Frequent Visitor

Data from different table in a R visual.

Hello,

 

I need to use data from different tables in an R visual.

These tables have of course a different number of row.

 

But, PowerBI forces to put all the data in a same dataframe, which is not working if the column length aren't equal.

 

Do you have any idea to fix this ?

Maybe I can change the autolatic lines powerBI is adding to my script ?

 

Thanks a lot.

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@mtworski

 

In this scenario, I suggest you create a calculated table to SUMMARIZE() column both tables together. Then drag fields from this calculated table into R visual to execute your R script.

 

Regards,

View solution in original post

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

@mtworski

 

In this scenario, I suggest you create a calculated table to SUMMARIZE() column both tables together. Then drag fields from this calculated table into R visual to execute your R script.

 

Regards,

mtworski
Frequent Visitor

Hello,

 

I need to use data from different tables in a R visual.

These tables have of course different number of rows.

Unfortunately, PowerBI forces these datas in a same dataframe, which won't work as the column will have different length.

Do you have any idea ?

Maybe I can remove/change these automatic lines added to my script ?

 

Thank you and sorry for english mistakes if any.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.