Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
I am getting this code around text in a table that is being imported from the data source. Is it possible to automatically get rid of it through PowerBI? Thanks!
<div data-wrapper="true" style="font-family:'Segoe UI','Helvetica Neue',sans-serif; font-size:9pt">
<div>This is a test note</div>
</div>
Solved! Go to Solution.
@KathleenW , refer if this blog can help
https://www.c-sharpcorner.com/article/convert-data-from-html-to-plain-text-in-power-bi/
Hi @KathleenW ,
As @amitchandak suggested, you could go to Power Query Editor, Add a custom column,then expand it.
= Html.Table([ColumnName] , {{"text",":root"}})
Below is the whole M syntax:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("XY5BC8IwDIX/SujZ4dCDOPGuFy/qad0hbKkWaluabDJ/vdPKDkIgfMl7L6lrpfuyXLedHaBDweKZMEZKe60k9aQVsIyOJjTBS2HwYd1YfTyrzZlugeB6zLTI7UBuILEtwokmf14xei6YkjU7+OawfVG1jaLzeZqfyHi5W4apEIRYwAf5KZazRPv/iWqaNw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each Html.Table([Column1] , {{"text",":root"}})),
#"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"text"}, {"text"})
in
#"Expanded Custom"
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @KathleenW ,
As @amitchandak suggested, you could go to Power Query Editor, Add a custom column,then expand it.
= Html.Table([ColumnName] , {{"text",":root"}})
Below is the whole M syntax:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("XY5BC8IwDIX/SujZ4dCDOPGuFy/qad0hbKkWaluabDJ/vdPKDkIgfMl7L6lrpfuyXLedHaBDweKZMEZKe60k9aQVsIyOJjTBS2HwYd1YfTyrzZlugeB6zLTI7UBuILEtwokmf14xei6YkjU7+OawfVG1jaLzeZqfyHi5W4apEIRYwAf5KZazRPv/iWqaNw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each Html.Table([Column1] , {{"text",":root"}})),
#"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"text"}, {"text"})
in
#"Expanded Custom"
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@KathleenW , refer if this blog can help
https://www.c-sharpcorner.com/article/convert-data-from-html-to-plain-text-in-power-bi/
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
104 | |
68 | |
47 | |
42 | |
39 |