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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!