Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Dear All,
Good day.
I have a table with 2 columns
1) primary ID
2) html of a table
I want power qwery to return the table in the html & the primary ID.
Exemple:
line 1
primary ID 1
<table>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
</tr>
</table>
I want power qwery to return:
1 Alfreds Futterkiste Maria Anders
1 Centro comercial Moctezuma Francisco Chang
How can I do so?
Kind regards,
Hi @JohnBlue1 ,
You said that your table has two columns. Sorry, from your example I can’t see how the two columns are.
Please describe in detail how the two columns are and what the expected result is.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @JohnBlue1 ,
You said that your table has two columns. Sorry, from your example I can’t see how the two columns are.
Please describe in detail how the two columns are and what the expected result is.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @JohnBlue1
How is the data coming in? Text, binary? you said a table with 2 columns?
HTML part you can use Web.Page, one sample coming in as text, you can take from here
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("jZBRCsIwEESvsvQCrXiCUin40RO0/Vg3qwaTjWySDz29YFCkUvRv3zLDDDOOlbPCsJlkkqtaj3qD/a7wlJtmSwkPjp8nv1+6YFO4dUdlE6HPKbFebEzFSPVLsXQMqBahFcMaV6T1V9pKeseSNAAFz0oWHQyBEt+zxx8lekUhGylAd0Y5/duj/limmucH", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
#"Added Custom" = Table.AddColumn(Source, "Custom", each Web.Page([Column1])),
Custom = Table.SelectRows( #"Added Custom"{0}[Custom], each [Source]="Table")[Data]{0},
#"Changed Type" = Table.TransformColumnTypes(Custom,{{"Column1", type text}, {"Column2", type text}})
in
#"Changed Type"
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |