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
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
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.