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
ryan_mayu
Super User
6 years agowhy this is a measure? not a value in a cell? How did you calculate this? you can just paste your sample data here or paste a screenshot
johnwedeles
Helper III
6 years ago- ryan_mayu6 years ago
Super User
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
- johnwedeles6 years ago
Helper III
Thank you, ryan_mayu !