Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am unable to expand a field/column, which contains [List], null, and type ABC123 records. I would appreciate a quick custom column / code and/or tips. Thank you! J
Solved! Go to Solution.
See this example:
let
Source = List.Zip({{1..10}, {21..30}}) & {1},
#"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Added Custom" =
Table.AddColumn(
#"Converted to Table",
"Custom",
each
if Value.Is([Column1], List.Type)
then Text.Combine(List.Transform([Column1], Text.From), ",")
else
[Column1]
)
in
#"Added Custom"
I added a 2nd column to either expand the list or pull the raw value.
How to use M code provided in a blank query:
1) In Power Query, select New Source, then Blank Query
2) On the Home ribbon, select "Advanced Editor" button
3) Remove everything you see, then paste the M code I've given you in that box.
4) Press Done
5) See this article if you need help using this M code in your model.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI Reporting@JusticeBaird was this of any help?
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingSee this example:
let
Source = List.Zip({{1..10}, {21..30}}) & {1},
#"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Added Custom" =
Table.AddColumn(
#"Converted to Table",
"Custom",
each
if Value.Is([Column1], List.Type)
then Text.Combine(List.Transform([Column1], Text.From), ",")
else
[Column1]
)
in
#"Added Custom"
I added a 2nd column to either expand the list or pull the raw value.
How to use M code provided in a blank query:
1) In Power Query, select New Source, then Blank Query
2) On the Home ribbon, select "Advanced Editor" button
3) Remove everything you see, then paste the M code I've given you in that box.
4) Press Done
5) See this article if you need help using this M code in your model.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingCheck out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
7 | |
5 | |
5 | |
5 | |
4 |
User | Count |
---|---|
12 | |
11 | |
9 | |
7 | |
6 |