Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello,
I have the following problem,
Based on the row where the ----- appear, you can determine a way to separate with that example into columns and assume the division of asterisks to be another sheet. Marked wih yellow
Thanks
Solved! Go to Solution.
Hi @vazmor ,
you could count them or use this function:
(myTable as table, RowPosition as number, optional ColumnName as text) =>
let
ColName = if ColumnName = null then "Column1" else ColumnName,
Source = myTable,
#"Kept Range of Rows" = Table.Range(Source, RowPosition-1,1),
Custom1 = Record.ToList( #"Kept Range of Rows"{0} ){0},
Custom2 = Text.PositionOf( Custom1, " ", Occurrence.All),
SplitPositions = {0} & Custom2,
#"Split Column by Positions" = Table.SplitColumn(Source, ColName, Splitter.SplitTextByPositions(SplitPositions))
in
#"Split Column by Positions"
It assumes that your column to split is called "Column1".
If not, pass the column name into the 3rd (optional) parameter.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @vazmor ,
in the Split Column-dialogue, there is an option to split by positions.
It accepts a comma separated list of positions (where your blanks are) to split the table.
Just make sure to start with a 0 as a starting point.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hello, Thank you, if I can use this option but how can I use the character function based on only one row or that the position function is dynamic based on that row of the -------.
Hi @vazmor ,
you could count them or use this function:
(myTable as table, RowPosition as number, optional ColumnName as text) =>
let
ColName = if ColumnName = null then "Column1" else ColumnName,
Source = myTable,
#"Kept Range of Rows" = Table.Range(Source, RowPosition-1,1),
Custom1 = Record.ToList( #"Kept Range of Rows"{0} ){0},
Custom2 = Text.PositionOf( Custom1, " ", Occurrence.All),
SplitPositions = {0} & Custom2,
#"Split Column by Positions" = Table.SplitColumn(Source, ColName, Splitter.SplitTextByPositions(SplitPositions))
in
#"Split Column by Positions"
It assumes that your column to split is called "Column1".
If not, pass the column name into the 3rd (optional) parameter.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Thanks,
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 5 | |
| 4 |