Forum Discussion
R in Power BI
I need to create a R visual to display the attached chart
I'm using a filter in Power BI to filter for selected created date. How can I include this filter in R. Also, how can I get my R code to display both expected and proposed times:
c1_data <- actuals %>% select(workflow_code, expected_time, processed_time)
ggplot(c1_data) +
geom_bar(aes(y=c1_data$expected_time, x=c1_data$workflow_code, fill=c1_data$processed_time),
position="dodge",stat="identity", width=0.7) +
scale_fill_manual(values = )
labels = c("#002f87","#0071CE")) +
labs(x="ABC",y="XQA",title="CCC") +
# geom_text(vjust=0.3, size=3.5)
1 Reply
- amitchandak
Super User
Anonymous , power bi should pass the filtered dataset to R. If you select a slicer value, which filters power bi visual on similar set, it should also filter R visual
refer if needed
https://docs.microsoft.com/en-us/power-bi/visuals/service-r-visuals