Skip to main content
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Regular Visitor

Using try/otherwise to convert HTML to plain text

This is what I have that partially works:



But because only some of the entries have the HTML format, it creates an error for the text that doesn't. Can I add try/otherwise to this to get it to work? 



Regular Visitor

I think something else must be wrong with what I'm trying to do. When I expand the table it goes from 1000+ rows to about 25 rows with seemingly no relation to whether it has the <div> wrappers or not. Do you know why that is?

Community Support
Community Support

Hi @KathleenW ,


I have a test in my sample.


Expand the Table, you see It won't show error if value in [Notes] is not in html format.


If your code will give you error when values are not in html format. I suggest you to replace error with text error then create a new conditional column by if function.

Right click your PlainText column then use Replace Errors function.


Add Conditional column as below.


Best Regards,
Rico Zhou


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.


Helpful resources

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.


Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors