Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
This script below runs fine in Rstudio but gives me ENVSXP error in PowerBi. Could anyone figure out why?
library(anomalize)
library(dplyr)
sub= tidyverse_cran_downloads %>%
time_decompose(count) %>%
anomalize(remainder)
@np212r Hi. I run into the very same problem. Power bi's r script was not working for the time_decompose function.
I found a way around it. I gave up running the script. Instead, I used the "r visual opbject" . In there, I ran pretty much the same code:
as you can see, I did not plot the time series with the plot_anomalies function, but rather used ggplot.
Hope it helps
Hi, @np212r
Could you solve this problem?
I'm using dplyr to
datafromAccess<-datafromAccess %>% #(lf)
group_by(Slot, Period) %>% #(lf)
mutate(colDiff= colValue - colValue[OrdemNum==1]
but results an error Error: Column `colDiff` must be length 1 (the group size), not 0
and many "warnings" :
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
The code works perfectly in R Studio, the dplyr version is 0.8.0.1 (that is supposed to be supported by PowerBI) and the package is installed in the same path of others (like RODBC and stringr) that works fine.
Best Regards
Cristiane
For reasons I am unable to figure out, the dplyr functions cause all kinds of grief in Power BI, especially in the service. I can't believe this issue is not more well reported .
Hi @np212r,
After research, there are the following thread and article for reference.
Getting Power BI Desktop to see R packages?
R Script error
Running Local R Scripts in Power BI
Best Regards,
Angelia
That did not work. Were you able to run the code I had put in my question?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
75 | |
60 | |
37 | |
33 |
User | Count |
---|---|
102 | |
56 | |
52 | |
45 | |
40 |