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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Rich text/HTML formatting in PowerBI table

Hi all, 

 

I currently have an important that comes with HTML mark-up due to how it is input into a database; so lots of <p> and <b> and a huge chunk of text that is generally unreadable. 

 

Is there a way to either:

  • Strip out all HTML mark-up
  • Apply the HTML formatting as a part of the table (this would be a preference)

I can alter the data via an excel export (as it's not a 'live' report), but not the direct source.

 

Thanks!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You have HTML content , no sure if that can help

HTML content
https://appsource.microsoft.com/en-us/product/power-bi-visuals/wa200001930?tab=overview

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

10 REPLIES 10
deepakyadav
Microsoft Employee
Microsoft Employee

Golly
Regular Visitor

Another method that worked for me in SharePoint lists is to use the FieldValuesAsText field, as detailed here.

 

First, you can remove the column(s) containing HTML.  Then, scroll right and select the expander icon for the “FieldValuesAsText” column. The "FieldValuesAsText" column appeared for me in the Navigation step.  Then deselect all available fields except your target column(s). In addition, deselect the “Use original column name as prefix” option.

Golly_0-1722267172378.png

 

blodus
Advocate IV
Advocate IV

Apparently, the Real Answer is NO - Power BI is incapable of rendering HTML. How ridiculous. I work in a real company and can't use unsupported, user-made objects to make up for PBIs lameness.

amitchandak
Super User
Super User

@Anonymous , You have HTML content , no sure if that can help

HTML content
https://appsource.microsoft.com/en-us/product/power-bi-visuals/wa200001930?tab=overview

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

this is a custom visual can run html codes but Power BI does not allow custom visual links such as mailto!. 

Please create custom coumn and use this code , and enjoy

if [HMTLField] = null then null else   Html.Table([HMTLField] , {{"text",":root"}})

Anonymous
Not applicable

Hi thanks this worked for me. However the html format had bullet points hence, every new sentence was on new line. Is there any way I can maintain this (Html.Table([HMTLField] , {{"text",":root"}}) structure after this step?

Hi! I am trying to create Custom column to recognize rich text in this similar way and I am having issue. Wolud you mind to share your input here. Thanks

anusha_2023_0-1736842081329.png

 

This worked for me, thanks!

Hi! I am trying to create Custom column to recognize rich text in this similar way and I am having issue. Can you please share your input here. Thanks

anusha_2023_0-1736842513686.png

 

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.