Forum Discussion
Importing content from HTM files from Sharepoint folder
Hi danieltodorov deepikaajith ,
I came across the same issue, so when you locate your file in SharePoint, add a custom column to read the Text first, before Web.Page, if you have mutiple tables constructed in the HTM file, you may need to add a custom column to count the columns so you can find those tables you want. Let me know if you need any further help.
#"Filtered Rows" = Table.SelectRows(Source, each Text.Contains([Name], "VBFA_")),
#"Added Custom" = Table.AddColumn(#"Filtered Rows", "Custom", each Text.FromBinary([Content])),
Custom1 = Web.Page( #"Added Custom"[Custom]{0})
in
Custom1
Hi,
Can you show us with some example so we can follow the sma esteps in our file?
- Anonymous6 years agoNot applicable
Hi deepikaajith
How about you posting your M code and screenshot of your Power Query Editor (hide anything sensitive)? I can help from there.
- lucamanunta2 years agoFrequent Visitor
The solution proposed by Vera_33 worked as a charm for me! Thank you very much!
Just to clarify, I did not even need to customise the code she proposed, so I just copy/pasted the following in the editor:
#"Added Custom" = Table.AddColumn(#"Filtered Rows", "Custom", each Text.FromBinary([Content])), Custom1 = Web.Page( #"Added Custom"[Custom]{0}), Data = Custom1{0}[Data],