Forum Discussion
Issue with Split Column with Delimiter from Sharepoint CSV
- Anonymous3 years ago
Yes, to this binary type column you have to apply the formula i told you in the second message.
Create a custom column and write that:
Csv.Document([Content],[Delimiter=",", Encoding=1252])
This would be the code:
let Source = SharePoint.Files("https://jardon.sharepoint.com/sites/Supply/", [ApiVersion = 15]), #"Filtered Rows" = Table.SelectRows(Source, each Text.Contains([Folder Path], "The Raw Data")), #"Custom column added" = Table.AddColumn(#"Filtered Rows", "Custom Column", each Csv.Document([Content],[Delimiter=",", Encoding=1252])) in #"Custom column added"
Hey, thanks for tips!
I can't get it yet, pretty sure I missed some steps, because when I extract the file, it is binary, and there is an error of converting type binary to text. (Expression.Error: We cannot convert a value of type Binary to type Table.)
let
Source = SharePoint.Files("https://jardon.sharepoint.com/sites/Supply/", [ApiVersion = 15]),
#"Filtered Rows" = Table.SelectRows(Source, each Text.Contains([Folder Path], "The Raw Data")),
#"The Source" = #"Filtered Rows"{[Name="test online.csv",#"Folder Path"="https://jardon.sharepoint.com/sites/Supply/Shared Documents/Data Analysis/The Raw Data/"]}[Content],
#"Custom column added" = Table.AddColumn(#"The Source", "Custom Column", each Csv.Document([Content],[Delimiter=",", Encoding=1252]))
in
#"Custom column added"
this is shown in #"Filtered Rows" step, I think the source is still binary.
Is there any way to convert it to table and fix the error? Thanks!
Yes, to this binary type column you have to apply the formula i told you in the second message.
Create a custom column and write that:
Csv.Document([Content],[Delimiter=",", Encoding=1252])
This would be the code:
let
Source = SharePoint.Files("https://jardon.sharepoint.com/sites/Supply/", [ApiVersion = 15]),
#"Filtered Rows" = Table.SelectRows(Source, each Text.Contains([Folder Path], "The Raw Data")),
#"Custom column added" = Table.AddColumn(#"Filtered Rows", "Custom Column", each
Csv.Document([Content],[Delimiter=",", Encoding=1252]))
in
#"Custom column added"
- Anonymous3 years agoNot applicable
i got it now! thank you so much 🙂
- Anonymous3 years agoNot applicable
You´re welcome🙂