Forum Discussion
R Visuals not rendering in PBI Service
- 1 year ago
Hi rosa_pch
If your R visuals suddenly stopped rendering in Power BI Service despite working fine earlier—and they still render correctly in Power BI Desktop—this typically points to an issue with the Power BI Service environment rather than your report or R script. Since you're using ggplot2 and likert, which are both supported packages, and there have been no changes to the data size or your report logic, the root cause may be related to recent changes or temporary disruptions in the underlying R execution environment in the Power BI Service. This could include issues such as a temporary R engine failure, a problem with package dependencies, or restrictions applied by Microsoft’s hosted R runtime. Occasionally, service updates or backend changes by Microsoft may also affect how certain R packages are handled, even if unintentionally. Additionally, network or authentication issues with the service itself could prevent visuals from rendering properly. To troubleshoot, first try republishing the report to see if the issue resolves. If not, confirm that you're using supported R script syntax and that there are no file paths or local references in the script. If the issue persists, it’s best to raise a support ticket with Microsoft, as access to server-side logs is limited, and the issue may be tied to their managed R environment, which only they can fix.
I tested by creating a sample R visual using 'ggplot2' and 'likert' and it is working in power bi service.
here is the sample code
# Load necessary libraries
library(ggplot2)
library(likert)
# Create a simple sample data frame
# Rows = respondents, Columns = survey items
sample_data <- data.frame(
Q1 = factor(c("Agree", "Disagree", "Neutral", "Agree", "Strongly Agree"),
levels = c("Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree")),
Q2 = factor(c("Neutral", "Agree", "Agree", "Strongly Agree", "Disagree"),
levels = c("Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"))
)
# Convert to likert object
likert_data <- likert(sample_data)
# Plot the likert chart
plot(likert_data)
You may want to revist the known limitations with R visualizations
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-r-visuals#known-limitations
If you sure that you are not hitting any limit then I would suggest you to reach out to the power bi support team by raising a support ticket
Connect on LinkedIn
|
It is working in my case,
Can you check if some one disabled python or r visuals in your tenant? You can check that in power bi admin portal
Connect on LinkedIn
|