let
Source = Excel.CurrentWorkbook(){[Name="Table_Query_from_MAGNOLIA4789"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"sStmt_cd", type text}, {"sFormat_cd", Int64.Type}, {"iGroup", Int64.Type}, {"Column1", type text}, {"Column2", type text}, {"Column3", type text}, {"iLine", Int64.Type}, {"sFromAcct_cd", Int64.Type}, {"sThruAcct_cd", Int64.Type}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each {[sFromAcct_cd]..[sThruAcct_cd]}),
#"Expanded Custom" = Table.ExpandListColumn(#"Added Custom", "Custom")
in
#"Expanded Custom"
That looks great - I'm not familiar with power query - I'll have to check it out.With Power Query
Power Query:let Source = Excel.CurrentWorkbook(){[Name="Table_Query_from_MAGNOLIA4789"]}[Content], #"Changed Type" = Table.TransformColumnTypes(Source,{{"sStmt_cd", type text}, {"sFormat_cd", Int64.Type}, {"iGroup", Int64.Type}, {"Column1", type text}, {"Column2", type text}, {"Column3", type text}, {"iLine", Int64.Type}, {"sFromAcct_cd", Int64.Type}, {"sThruAcct_cd", Int64.Type}}), #"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each {[sFromAcct_cd]..[sThruAcct_cd]}), #"Expanded Custom" = Table.ExpandListColumn(#"Added Custom", "Custom") in #"Expanded Custom"
here is your file with the update
Sage - Format Groups.xlsx | Powered by Box
app.box.com