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

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.

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
Employee
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

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

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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