Greg_Deckler
Community Champion
5 years agoCAPS!
OK, this is another variation on Text to Table - Microsoft Power BI Community. Basically, capitalize every word. Again, there are better ways to do this but this is one way of doing it in DAX. If not...
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.