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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Tom_Y
Advocate II
Advocate II

List.Buffer (Will it refresh automatically?)

Hi,

I'm having these 3 lines in power query to get the column headers of multiple tables before I go back and expand them, so all columns in all tables are extracted. It's too slow until I add "List.Buffer" to the list HEADINGS, and it's now running smoothly.

 

Somewhere said the buffered list is stored in memory. Will it be updated when I click refresh, or scheduled refreshing (BI Services) in mid-night? I'm afraid new columns are added in one of those tables, and the code do not update and extract the data. Thanks in advance.

 

PreExpand = Table.SelectColumns(#"Invoke Custom Function1",{"Transform File"}),

HEADINGS = List.Buffer(List.Union(List.Transform(PreExpand[Transform File], each Table.ColumnNames(_)))),
ReadyToExpand = PreExpand,
#"Expanded Transform File" = Table.ExpandTableColumn(ReadyToExpand, "Transform File", HEADINGS)

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

List.Buffer has no logic or meta data impact on your transforms, it "only"  improves their performance.

 

You may also want to List.Buffer the column names.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

List.Buffer has no logic or meta data impact on your transforms, it "only"  improves their performance.

 

You may also want to List.Buffer the column names.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!