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
pade
Advocate III
Advocate III

R script and lists does not work with Power Query

Power Query lists don't seem to survive when going through R scrip back to Power Query.

 

This simple R-script below returns a none list column, eventhough the column was a list in the earlier Power Query step

 

---

# 'dataset' holds the input data for this script
save(file="dataset", dataset)
output <- dataset

---

 

Is this by design, a bug, or something that I do wrong?

2 REPLIES 2
pade
Advocate III
Advocate III

The reason for mecreating the simple example above was that I didn't manage to create a list in R and send it back to Power Query. E.G.

output <- dataset

output$NewListColumn <- list(1:3))

 

and then back in Power Query expand that column

 

Before R:

OriginalColumn

==========

A

B

C

 

After R (and Power Query), it might look something like this:

OriginalColumn, NewListColumn

==========, ==========

A, 1

A, 2
A, 3
B, 1

B, 2

B, 3

C, 1

C, 2

C, 3

 

 

Hi pade,

I just tried the

save(file="dataset", dataset)
output <- dataset

And it returns the column entered in Query Editor;

18.PNG19.PNG

For

output <- dataset

output$NewListColumn <- list(1:3))

I think there should be one “ ) “ in <- list(1:3))

In addition, what would you like to achieve, to use R List function here? Maybe we could achieve that through other ways.

Regards

 

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.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

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