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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
mysorian
Helper I
Helper I

R script: From datasources

I choose R Script as the data source.

In the box that gets displayed I insert this script:

dataset=c(1,3,5,6,8,9,20)

I click OK.

 

The Navigator is displayed and comes up with a empty directory called R:. Now what?

 

RscriptSource.PNG

The same thing for not so simple scripts as well.

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

Hi @mysorian,

 

You should include a data frame which is used for storing data tables at the end your script, then it should work as expected.Smiley Happy

column1=c(1,3,5,6,8,9,20)
table1=data.frame(column1)

rs1.PNG

 

Regards

View solution in original post

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @mysorian,

 

You should include a data frame which is used for storing data tables at the end your script, then it should work as expected.Smiley Happy

column1=c(1,3,5,6,8,9,20)
table1=data.frame(column1)

rs1.PNG

 

Regards

dkay84_PowerBI
Microsoft Employee
Microsoft Employee

Have you configured Power BI desktop to use whatever local R you have installed?

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.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.