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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Snagalapur
Helper IV
Helper IV

How to retain text format in Power bi dashboard

 

Hi All,

How to retain text format in dashboard. I have my data table to in excel and when I bring the column into dashboard I would like to retain format.

 

Please suggest

Snagalapur_0-1733318673861.png

 

3 ACCEPTED SOLUTIONS
danextian
Super User
Super User

Hi @Snagalapur 

Power BI reads the text inside a file and not the formatting and neither the formula from an excel file but their results.  While you want it is not impossible, that will be a very tedious thing to do. You will have to identify which text strings are colored and what the colors will be, which ones are in bold and which ones are not using a combination of splitting by delimiters, etc. And after that, write a measure or a column that generates an html code using those split values and  use the custom html viz to render the html code. Again, it is not impossible but will be a very tedioius and complex task.

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

Bibiano_Geraldo
Super User
Super User

Hi @Snagalapur ,

Unfortunately, there's now way, as mentioned by @danextian "Power BI reads the text inside a file and not the formatting", knowing that, you'll have to do the formating from scratch in your dashboard.

 

 

View solution in original post

Anonymous
Not applicable

Thanks for the replies from danextian and Bibiano_Geraldo.

 

Hi @Snagalapur ,

 

If you want to realize the effect in the picture, you can use HTML Content visual, through the combination of HTML and CSS and DAX, you can render the content in different formats.

vlinhuizhmsft_0-1735116467152.png

 

You can learn the exact steps from this blog: Display table data in HTML Content visual - Microsoft Fabric Community

 

Best Regards,
Zhu

 

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thanks for the replies from danextian and Bibiano_Geraldo.

 

Hi @Snagalapur ,

 

If you want to realize the effect in the picture, you can use HTML Content visual, through the combination of HTML and CSS and DAX, you can render the content in different formats.

vlinhuizhmsft_0-1735116467152.png

 

You can learn the exact steps from this blog: Display table data in HTML Content visual - Microsoft Fabric Community

 

Best Regards,
Zhu

 

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

Bibiano_Geraldo
Super User
Super User

Hi @Snagalapur ,

Unfortunately, there's now way, as mentioned by @danextian "Power BI reads the text inside a file and not the formatting", knowing that, you'll have to do the formating from scratch in your dashboard.

 

 

danextian
Super User
Super User

Hi @Snagalapur 

Power BI reads the text inside a file and not the formatting and neither the formula from an excel file but their results.  While you want it is not impossible, that will be a very tedious thing to do. You will have to identify which text strings are colored and what the colors will be, which ones are in bold and which ones are not using a combination of splitting by delimiters, etc. And after that, write a measure or a column that generates an html code using those split values and  use the custom html viz to render the html code. Again, it is not impossible but will be a very tedioius and complex task.

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.