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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.