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

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.

Reply
nicoperrot
Regular Visitor

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 @nicoperrot 

 

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 @nicoperrot 

 

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.