here is the function that I am using:
(page as number) as table =>
let
Source = Web.Page(Web.Contents("http://www.wvculture.org/vrr/va_dcdetail.aspx?Id=" & Number.ToText(page))),
Data0 = Source{0}[Data],
#"Changed Type" = Table.TransformColumnTypes(Data0,{{"Column1", type text}, {"Column2", type text}, {"Column3", type text}}),
#"Removed Columns" = Table.RemoveColumns(#"Changed Type",{"Column3"}),
#"Transposed Table" = Table.Transpose(#"Removed Columns"),
#"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table", [PromoteAllScalars=true]),
#"Changed Type1" = Table.TransformColumnTypes(#"Promoted Headers",{{"Death Record Detail...", type text}, {"Name:", type text}, {"Sex:", type text}, {"Death Date:", type text}, {"Death Place:", type text}, {"Age at Death:", type text}, {"Burial Place:", type text}, {"Burial Date:", type text}, {"Cemetery:", type text}, {"Funeral Home:", type text}, {"Birth Date:", type text}, {"Birth Place:", type text}, {"Marital Status:", type text}, {"Spouse:", type text}, {"Occupation:", type text}, {"Address:", type text}, {"Residence:", type text}, {"Mother:", type text}, {"Mother's Birth Place:", type text}, {"Father:", type text}, {"Father's Birth Place:", type text}, {"Informant:", type text}})
in
#"Changed Type1"
here is the invoked function:
let
Source = List.Accumulate(
{98000..108000},
#table ({},{}),
(state, current) => Table.Combine({state,fxWVdeathcertificates(current)})
)
in
Source
I am using 23 columns
not sure how to answer the question about the destination and version.
I am using power query.
I am transposing the data.