Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
how can I dynamically change a variable of a R script using the parameters of a template please !!
Solved! Go to Solution.
Hi @quantico,
In Power BI Desktop, we can run R script to import data, create R visual, and prepare your data model in Query Editor. As query parameter is used for retrieving data only currently, you shoud be able to call it when running R script to import data, and prepare your data model in Query Editor, but not to create R visual.
In adition, here is a similar thread for your reference.
let Quelle = R.Execute("NormalNoise <- data.frame(x=rnorm(100, mean="&Text.From(Parameter1)&", sd=1))"), EnvVars1 = Quelle{[Name="NormalNoise"]}[Value] in EnvVars1
Regards
Hi @quantico,
In Power BI Desktop, we can run R script to import data, create R visual, and prepare your data model in Query Editor. As query parameter is used for retrieving data only currently, you shoud be able to call it when running R script to import data, and prepare your data model in Query Editor, but not to create R visual.
In adition, here is a similar thread for your reference.
let Quelle = R.Execute("NormalNoise <- data.frame(x=rnorm(100, mean="&Text.From(Parameter1)&", sd=1))"), EnvVars1 = Quelle{[Name="NormalNoise"]}[Value] in EnvVars1
Regards
User | Count |
---|---|
103 | |
90 | |
78 | |
72 | |
68 |
User | Count |
---|---|
110 | |
96 | |
95 | |
74 | |
71 |