Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I'm aware of the functionality to run R script in the query editor, however I can't find any documentation about using it in conjunction with a live connection. I'm not sure it's even possible to do so.
For example in situations where I need a measure as a column in a matrix or I want to filter based on a measure.
Solved! Go to Solution.
Hey @Anonymous ,
that you do not find any documentation on using R the way you want, is due to the fact that it's simply not possible.
There are just these two inception points for R (this is also valid for python):
Using R inside Power Query means that the R script will only be executed during data refresh.
Using R for data visualization means that there are more script executions, but this can only be leveraged for data visualization, as the filtered table (by all the other user interactions) will feed the R script.
It's not possible to use R (or python) for anything between the above-mentioned scenarios, like using R inside a DAX statement creating a measure, or even a calculated column.
Hopefully, this provides some additional insights, even if it's not a solution for your task.
Regards,
Tom
Hey @Anonymous ,
that you do not find any documentation on using R the way you want, is due to the fact that it's simply not possible.
There are just these two inception points for R (this is also valid for python):
Using R inside Power Query means that the R script will only be executed during data refresh.
Using R for data visualization means that there are more script executions, but this can only be leveraged for data visualization, as the filtered table (by all the other user interactions) will feed the R script.
It's not possible to use R (or python) for anything between the above-mentioned scenarios, like using R inside a DAX statement creating a measure, or even a calculated column.
Hopefully, this provides some additional insights, even if it's not a solution for your task.
Regards,
Tom
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
81 | |
70 | |
62 |
User | Count |
---|---|
148 | |
116 | |
104 | |
90 | |
65 |