Forum Discussion
danmcauley
9 years agoNew Member
Removing text after character or between characters
Hi, I've imported page from Google Analytics and I only want one specific part from the string. I can write a formula in excel to remove all text after a character ("/") however when using the fo...
MarcelBeug
Community Champion
9 years agoIt looks like you are mixing up DAX, Power Query and Excel.
Also your requirements are not very clear.
Just a wild shot:
In the Query Editor, I created a Parameter SearchValues:
And I created the following query that adds a column with found keywords:
let
Source = Table1,
#"Added Custom" = Table.AddColumn(Source, "FoundKeyWords", (This) => Text.Combine(List.Select(Text.Split(SearchValues,","),each Text.Contains(This[Page],_)),", "))
in
#"Added Custom"
With adjusted example data, the result looks like:
If this is not what you are looking for, then it might still help you to reformulate your requirements.