Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
63 | |
53 | |
39 | |
25 |
User | Count |
---|---|
85 | |
57 | |
45 | |
43 | |
38 |