Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi community,
Please can you assist we have a list of organisation numbers in one column in a .txt file.
This list contains all successful and unsuccesful organisation, example below:
| Org Num |
| Successful |
| 123456 |
| 789456 |
| 98697 |
| Not Successful |
| 7896563 |
| 56986358 |
| 59789 |
My requirement is to split the one column into two columns, Successful | Not successful
| Successful | Not Successful |
| 123456 | 7896563 |
| 789456 | 56986358 |
| 98697 | 59789 |
Or just return only the Successful list if thats easier.
Thanks in advance
Solved! Go to Solution.
Hi @databot_kd, check this:
Output
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WCi5NTk4tLk4rzVFQitWJVjI0MjYxNQMzzS0sYUxLCzNLczALosovv0QBoROm2szUzBjMNjUDajA2tYBwLIFSSrGxAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Org Num" = _t]),
Transformed = Table.FromColumns(List.Combine(List.Transform(Table.SplitAt(Source, List.PositionOf(Source[Org Num], "Not Successful")), Table.ToColumns))),
PromotedHeaders = Table.PromoteHeaders(Transformed, [PromoteAllScalars=true]),
FilteredRows = Table.SelectRows(PromotedHeaders, each ([Not Successful] <> null))
in
FilteredRows
Use this formula
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
S1 = Source[Org Num],
Custom1 = Table.PromoteHeaders(Table.FromRows(List.Zip(List.Split(S1,List.PositionOf(S1,"Not Successful")))))
in
Custom1
Add Custom Column:
Hi @databot_kd, check this:
Output
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WCi5NTk4tLk4rzVFQitWJVjI0MjYxNQMzzS0sYUxLCzNLczALosovv0QBoROm2szUzBjMNjUDajA2tYBwLIFSSrGxAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Org Num" = _t]),
Transformed = Table.FromColumns(List.Combine(List.Transform(Table.SplitAt(Source, List.PositionOf(Source[Org Num], "Not Successful")), Table.ToColumns))),
PromotedHeaders = Table.PromoteHeaders(Transformed, [PromoteAllScalars=true]),
FilteredRows = Table.SelectRows(PromotedHeaders, each ([Not Successful] <> null))
in
FilteredRows
Add Custom Column:
Give a thumsup if solution is up to mark
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.