You can do this from PowerQuery by selecting the Transform Data option from the toolbar.
In the below code I create a copy of the column, then:
- Replace "POINT (" with nothing (blank)
- Replace ")" with nothing (blank)
- Split the point on the " " (space) to get two fields.
The first will be latitude, the second longitude.
let
Source = Sql.Database("my.database.windows.net", "mydb"),
dbo_FactTest = Source{[Schema="dbo",Item="FactTest"]}[Data],
#"Removed Columns1" = Table.RemoveColumns(dbo_FactTest,{"MyTextData"}),
#"Duplicated Column" = Table.DuplicateColumn(#"Removed Columns1", "geo", "geo - Copy"),
#"Renamed Columns" = Table.RenameColumns(#"Duplicated Column",{{"geo - Copy", "geo - original"}}),
#"Replaced Value" = Table.ReplaceValue(#"Renamed Columns","POINT (","",Replacer.ReplaceText,{"geo"}),
#"Replaced Value1" = Table.ReplaceValue(#"Replaced Value",")","",Replacer.ReplaceText,{"geo"}),
#"Split Column by Delimiter" = Table.SplitColumn(#"Replaced Value1", "geo", Splitter.SplitTextByDelimiter(" ", QuoteStyle.Csv), {"geo.1", "geo.2"}),
#"Changed Type" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"geo.1", type number}, {"geo.2", type number}}),
#"Renamed Columns1" = Table.RenameColumns(#"Changed Type",{{"geo.1", "Lat"}, {"geo.2", "Long"}})
in
#"Renamed Columns1"
