brawnystaff
Board Regular
- Joined
- Aug 9, 2012
- Messages
- 109
- Office Version
- 365
In Power Query, I am looking to split text in one cell to rows by a known delimiter (in this case, a hyphen -). However, I am looking to split three characters before the hyphen. Any ideas? Code I have so far is a follows:
Thanks.
Power Query:
let
Source = Csv.Document(File.Contents("C:\Users\Smith\Downloads\PQtext.txt"),1,"0,10000",ExtraValues.Ignore,1252),
#"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(Source, {{"Column1", Splitter.SplitTextByDelimiter("-", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Column1")
in
#"Split Column by Delimiter"
Thanks.