Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Luukvv93
Helper II
Helper II

Error forecasting with ARIMA visual

Hi,

 

When using the ARIMA visual in Power BI Desktop I encounter the following error. Any thoughts on how to resolve this? 

 

tempsnip.png

 

7 REPLIES 7
SamsonAnalytics
Frequent Visitor

Dear Luukvv93,

 

After struggling all morning to fix this too, what I did was the following:

 

1. Install R-4.1-1 from here:

https://cran.r-project.org/bin/windows/base/

 

2. Install R Studio from here:

https://www.rstudio.com/products/rstudio/download/

 

3. Install Rtools from here and follow all the instructions:

https://cran.rstudio.com/bin/windows/Rtools/

 

4. Install all packages required in the console with the following sentence:

install.packages("NAMEOFTHEPACKAGE")

 

4.1 Here is a list of the packages that I installed:

  • htmlwidgets
  • caTools
  • scales
  • reshape2
  • forecast
  • plotly

5. Open Power BI Desktop, go to File -> Options and Settings -> Options -> R scripting -> Detected R home directories: -> R-4.1.1 -> OK

 

And that's it! You should be able to see "Forecasting with ARIMA" visual.

 

I hope it works.

v-evelk
Microsoft Employee
Microsoft Employee

Hi,

 

As I know, Desktop doesn't provide R libraries.

You shoul install R studio I suppose and install necessery packages there (The error says what packages it looks for).

 

Kind Regards,

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

Hi @v-evelk ,

 

I have R installed on my desktop. I also installed the missing XML package so I wonder what goes wrong

v-evelk
Microsoft Employee
Microsoft Employee

Check all the packages in the chain please.

I see in the message that "htmlwidgets" package is also required.

 

Kind Regards,

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

HI @v-evelk ,

 

I installed all required packages that were stated in the error, but it keeps giving me the same error

I solved by adding a R_LIBS_USER path on system enviroment variables: C:\Users\"user"\Documents\R\win-library\4.0

v-evelk
Microsoft Employee
Microsoft Employee

Hi,

 

I checked with the last April version of Power BI Desktop and used this instruction to install R environment.

I installed Microsoft R Open environment.

Then I downloaded report for Forecasting with ARIMA visual from the store and opened it in Desktop.

It asked me wheter I want to enble R scripts or not and then showed me the second window where proposed to install all required packages.

I accepted and was waiting for 5 minutes until installation had finifshed.

As a result I see all the visuals from the report.

Try please to do the same steps.

 

Kind Regards,

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors