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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
andrescaso
Resolver I
Resolver I

Power BI with R (Models)

Hi community

 

I try to use power BI with R to predict a work case, but something miss.

First I created a visualization with R and selected all the variables for the model (this is my dataset for the model)

then I wrote the scirpt in R to got the predictors for calculated the probabilitys,
once I got the predictors wich is the better way to come back the data to power bi, for use this predictors in another dataset (this is in another table in power BI) to calculate the probabilitys?

Regards

2 REPLIES 2
ImkeF
Community Champion
Community Champion

Hi @andrescaso ,

if you want to re-use the results of an R-transformation you should do it in the query editor instead of in a visual.

You can then load the result to the data model and further work with it.

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Thanks for the answer Imke

 

But I can´t do this from query editor, because the majority of my predictors are calculated in DAX and don´t appear in the query editor.
That is the reason because i need do this from the visualization panel. Any new ideas?

 

Regards

 

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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