Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Empty Table when running R script on Power Bi

When running a simple R script adding two columns, the output I get is always "The table is empty"

Capture d’écran 2021-05-31 à 16.27.57.png

My table is pretty simple, only 3 columns: 

Capture d’écran 2021-05-31 à 16.27.52.png

and the script I am using is also very simple: Capture d’écran 2021-05-31 à 16.27.45.png

I tried multiple scripts, and all of them are giving me an empty table. What is the source of the problem? Any help would be appreciated.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

 

add an output dataframe

 

Vera_33_0-1622513643684.png

 

# 'dataset' holds the input data for this script

dataset$Total <- sum(dataset$Age, dataset$Height)

output <- dataset

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous 

 

add an output dataframe

 

Vera_33_0-1622513643684.png

 

# 'dataset' holds the input data for this script

dataset$Total <- sum(dataset$Age, dataset$Height)

output <- dataset

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.