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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
neldarov
Frequent Visitor

Reading query/table using R script

I am trying to read one of the query output/table using R inside script box: 

x <- table1$"Col1"

I get this error message: Details: "ADO.NET: R script error. Error: object 'Wells' not found Execution halted

 

Can someone tell me how to read it?

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @neldarov ,

 

Have you run the R script in R Studio and checked if it works well?  BTW, did you follow the online document?

https://docs.microsoft.com/en-us/power-bi/desktop-r-scripts

 

The above error could be caused by incorrect syntax in the R script, could you please share some sample data and R script so that we can try to reproduce?

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

You did not get the question at all...

The data is inside Power BI, as a query output. How can I share it with you?

Outside Power BI dataset or data assignment works of course, that does not mean anything, regarding my question.

Did you read my post carefully? 

Power Bi has its own queries like a table. I need to assign them as a dataset. I cannot do it via R scrip. If you know please write the answer.

 

The documentation is too simple. Thanks for that.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors