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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors