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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.

Users online (2,367)