Forum Discussion
Need Help to convert html text to Normal text
Hi Team,
I am trying to convert HTML text to Normal text , here is the Html code :
<h1 style="font-size:25px;"> Data and AI </h1>
<p style="font-size:15px;"> This shows the Data and AI related informationfor data and AI </p>.
For this i have followed the below mentioned steps .
Step1 : Created a table and inserted this html text in a cell .
Step2 : Created a new formula : html.table([header],{{"text",":root"}}).
Step3 : it converts into a text and in conditional formatting of a blank button I am adding that as a field value .
The issue what i am facing is the line indentation and font is not captured of this rich text , what I mean
Data & AI should show as a header and rest in next line as a sub header .
Can anyone please help me in this.
Thanks & Regards
Shiv
Hi, Anonymous
If you want to create dynamic HTML content, or render existing content from your data model that contains HTML in your report, you can try custom visual 'HTML Content'.
Please refer to these related tutorials for more information.
PowerBI Custom Visuals -HTML Viewer
Exploring the HTML Content visual in PowerBI
Best Regards,
Community Support Team _ Eason
4 Replies
- ChrisMendozaResident Rockstar
Try the solution at Solved: Re: Convert HTML to Text - Microsoft Power BI Community using the Power Query Editor.
- AnonymousNot applicable
Hi ChrisMendoza ,
If you can see my HTML code i have given some different font size and also line breaks , Power BI is not taking it.
Its showing all the values in same case.
Thanks
Shiv- ChrisMendozaResident Rockstar
Ah, you want to display the HTML? Try this solution then Solved: Rich text/HTML formatting in PowerBI table - Microsoft Power BI Community