Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe 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.
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)
Solved! Go to Solution.
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.
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.
User | Count |
---|---|
121 | |
72 | |
71 | |
57 | |
50 |
User | Count |
---|---|
167 | |
83 | |
68 | |
65 | |
55 |