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

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.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors