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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 55 | |
| 53 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 123 | |
| 108 | |
| 44 | |
| 32 | |
| 26 |