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!
I'm using an R script within Power Query to do some data transformations and return a scaled table. My R code is like this:
# 'dataset' contém os dados de entrada neste script
library(dplyr)
df_normal <- log(dataset+1) %>%
select(c(2:4)) %>%
scale df_normal <-cbind(dataset[,c(1)], df_normal)
output <- df_normal
This works OK in R Studio and I'm getting the df_normal dataframe as expected.
However, in Power Query I get an empty table!
How do I export the dataframe to a table?
I have not done much with R, but have you tried changing the last line to
dataset <- df_normal
as I believe that the 'dataset' variable is the interface between Power Query and R.
The latest version of Power BI Desktop seems to work for me.
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 |
|---|---|
| 64 | |
| 56 | |
| 43 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 123 | |
| 108 | |
| 44 | |
| 32 | |
| 24 |