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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

7 REPLIES 7
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 III
Advocate III

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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"}})

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?

This worked for me, thanks!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.