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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi Experts
is it possible to replace a value in a R Script code with a measure from Power BI so that the R Script code work dynamically based on the measure.
time_tot <- 1497.7 num_rev <- 18 (incidence <- (num_rev/time_tot)*100) (ci <- (unlist(prop.test(num_rev,time_tot)[6])*100))
so i want to be able to replace <-1497.7 with measure 1
and from num_rev <- 18 with measure 2. just the 18 part.
Solved! Go to Solution.
hi, @Anonymous
As this post said:
https://community.powerbi.com/t5/Desktop/Pass-a-value-into-R-script/td-p/663406
It can't be achieved that replace value in R Script with Measures from Power BI.
Best Regards,
Lin
hi, @Anonymous
As this post said:
https://community.powerbi.com/t5/Desktop/Pass-a-value-into-R-script/td-p/663406
It can't be achieved that replace value in R Script with Measures from Power BI.
Best Regards,
Lin
thanks lin once again