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
datamunger1245
Frequent Visitor

R script and R visuals in Power BI

I am working in PBI and made some updates to my underlying data stored in a csv.  The updates were in a categorical variable column and upon refreshing the data in PBI I get an error message stating PBI can't find a seperate numeric column which it was previously loaded without any problem.  

 

Any thoughts?  

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi  @datamunger1245,

 

If I understand your scenario correctly that your report contains R visual and you get this error when you modify the underlying data source?

 

How do you modify the data source?

 

If it is convenient, could you share your error message with screenshot?

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sorry - that initial post could have been a bit more clear.  I was working with my data in Rstudio to tidy it up.  Saved my data as a csv and loaded it up in PBI.  I notice PBI doesn't deal with NAs and when there's one or more in the column where I should have numeric values.  PBI views the column as a text column data type.  Upon noticing this, I went back into R to omit my NAs, saved the csv and loaded it up into PBI w/out NAs.  However, PBI still won't view the column as a numeric data type....even after refreshing and multipe saves to the csv pulling out NAs.  

 

It would be great if PBI could deal with NAs.  Second is there a way PBI can refresh correctly to view my underyling data.  

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.