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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Vera_33
Resident Rockstar
Resident Rockstar

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
Vera_33
Resident Rockstar
Resident Rockstar

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors