Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello everybody,
So I am having an issue with R in Power BI because in the R script visual function. I can only put one table in each visual because the amount of rows are different. So in R I created a table that made it so all of the values within a month is summed up using this formula:
newtable <- dataset %>%
mutate(month = month(dataset$DATE, label = TRUE), year = year(dataset$DATE)) %>%
group_by(year, month) %>%
summarise(total.amt = sum(AMOUNT))
This would make it so they have the same amount of rows.
Now I want to make that formula into a table in Power BI. Is this possible?
I saw elsewhere to use a SUMMARIZE function but I am not familiar with how you would put an R script into it.
Thanks
Solved! Go to Solution.
Hi @Anonymous
Find some articles for you to check if they would help you.
https://docs.microsoft.com/en-us/power-bi/desktop-r-visuals
Regards,
Cherie
Hi @Anonymous
Find some articles for you to check if they would help you.
https://docs.microsoft.com/en-us/power-bi/desktop-r-visuals
Regards,
Cherie
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 38 | |
| 35 | |
| 21 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 58 | |
| 28 | |
| 27 | |
| 25 |