Forum Discussion
johnwedeles
Helper III
6 years agoReplacing text in column with new text based on condition
Hello: I am trying to replace a hyphen ("-") with an en dash in an existing column. I know I'd need to use UNICHAR for this. So, I imagine the formula would be something like this: IF Table N...
- 6 years ago
if it is a value in a cell, use substitute
Column = SUBSTITUTE('Table'[Column1],"-",UNICHAR(8211))if it is the name of a measure, you replace the whole measure name
Greg_Deckler
Community Champion
6 years agoTo do this in DAX, just use a new calculated column with REPLACE
https://docs.microsoft.com/en-us/dax/replace-function-dax