Thanks for sharing with us. Why not run the code in the ML server? We can just use Power BI to retrieve plain data. The R in Power BI focus on data modeling. I would suggest doing unnecessary data manipulation outside of Power BI.
Community Support Team _ Dale If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.