Forum Discussion
SharePoint HTML conversion for column values
- 10 years ago
Well, there is only "Text" in Desktop, no "HTML" format, so my guess is that your column in SharePoint is flagged as Rich Text versus Plain Text so you would need to change the column type in SharePoint, then it should strip out the HTML.
I am not aware of anything in DAX or "M" that will strip out HTML from text automagically but I'll look again.
Edit: Looks like your best bet is Text.Remove in "M"
https://msdn.microsoft.com/en-us/library/mt260472.aspx
You could give it arguments such as "<p>", "</p>", etc but the odds of stripping out all HTML, especially if there are attributes involved is pretty unlikely.
Well, there is only "Text" in Desktop, no "HTML" format, so my guess is that your column in SharePoint is flagged as Rich Text versus Plain Text so you would need to change the column type in SharePoint, then it should strip out the HTML.
I am not aware of anything in DAX or "M" that will strip out HTML from text automagically but I'll look again.
Edit: Looks like your best bet is Text.Remove in "M"
https://msdn.microsoft.com/en-us/library/mt260472.aspx
You could give it arguments such as "<p>", "</p>", etc but the odds of stripping out all HTML, especially if there are attributes involved is pretty unlikely.
"change the column type in SharePoint, then it should strip out the HTML"
This worked
- diverdown19648 years agoMost Valuable Professional
There is a way to handle this elegantly - documented here - https://whitepages.unlimitedviz.com/2018/04/power-bi-report-rich-text-sharepoint/
- Merchy24017 years agoFrequent Visitor
This worked like a charm & so easy to do (once you know its there!)
Thanks for sharing!