Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello all.
Im trying to create an R Visual to plot a control chart within Power BI.
The script has been validated and runs on Rstudio (launched from power BI) but when I run it in Power BI I get the following error.
Error Message:
R script error.
Error in data.frame(TestDate, Meas) : object 'TestDate' not found
Execution halted
Looking though the forum found similar questions with no solution. Someone suggested to change R version, I have tried with 3.3.1 and 3.6.1 so far with exact samne results.
The script I'm trying to run is as follows.
Any ideas on how to solve this?
Regards
Solved! Go to Solution.
Thanks for the susggestion but it didn't work
It actualy throws the error on the following line
Well, just commented the extra line idicated and it worked! this was the end script.
Yes, TestDate and Meas are added to Value field.
Thanks
In Rstudio runs fine.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 56 | |
| 55 | |
| 31 | |
| 18 | |
| 14 |