Greg_Deckler
Community Champion
5 years agoThe Replacements
This one falls solidly into the "there are better ways to do this" camp. Essentially replace multiple values in a string of text.
Comes from this thread. This is basically Text to Table with a dif...
Greg_Deckler
Community Champion
5 years agoI revisited this solution after I remembered my Mythical DAX Index. A perhaps more elegant approach to Text to Table if you don't have | characters in your text is this:
VAR __Text = SUBSTITUTE(__SearchText,__Separator,"|")
VAR __Table =
ADDCOLUMNS(
GENERATESERIES(1,__Count,1),
"__Word",PATHITEM(__Text,[Value],TEXT)
)
If you did have | characters in your text, you would have to SUBSTITUTE them out and then SUBSTITUTE them back in for each word which could get a little messy.