Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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 ReportingAdvance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.