let
Source = Excel.Workbook(Web.Contents("https://www.ons.gov.uk/file?uri=/peoplepopulationandcommunity/birthsdeathsandmarriages/conceptionandfertilityrates/datasets/conceptionstatisticsenglandandwalesreferencetables/2018/conceptions2018workbook.xls"), null, true),
#"Table 1" = Source{[Name="Table 6"]}[Data],
#"Removed Top Rows" = Table.Skip(#"Table 1",5),
#"Transposed Table" = Table.Transpose(#"Removed Top Rows"),
#"Filled Down" = Table.FillDown(#"Transposed Table",{"Column1"}),
#"Filtered Rows" = Table.SelectRows(#"Filled Down", each ([Column2] <> null)),
#"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"Column3", "Column4", "Column5"}),
#"Extracted First Characters" = Table.TransformColumns(#"Removed Columns", {{"Column1", each Text.Start(_, 4), type text}}),
#"Merged Columns" = Table.CombineColumns(#"Extracted First Characters",{"Column1", "Column2"},Combiner.CombineTextByDelimiter("#(tab)", QuoteStyle.None),"Merged"),
#"Transposed Table1" = Table.Transpose(#"Merged Columns"),
#"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table1", [PromoteAllScalars=true]),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Area#(tab)Code1", type text}, {"Area#(tab)Name", type text}, {"Area#(tab)Geography", type text}, {"2018#(tab)Number of Conceptions", Int64.Type}, {"2018#(tab)Conception rate per 1,000 women in age group", type number}, {"2018#(tab)Maternity rate per 1,000 women in age group", type number}, {"2018#(tab)Abortion rate per 1,000 women in age group", type number}, {"2018#(tab)Percentage of conceptions leading to abortion", type number}, {"2017#(tab)Number of Conceptions", Int64.Type}, {"2017#(tab)Conception rate per 1,000 women in age group", type number}, {"2017#(tab)Maternity rate per 1,000 women in age group", type number}, {"2017#(tab)Abortion rate per 1,000 women in age group", type number}, {"2017#(tab)Percentage of conceptions leading to abortion", type number}, {"2016#(tab)Number of Conceptions", Int64.Type}, {"2016#(tab)Conception rate per 1,000 women in age group", type number}, {"2016#(tab)Maternity rate per 1,000 women in age group", type number}, {"2016#(tab)Abortion rate per 1,000 women in age group", type number}, {"2016#(tab)Percentage of conceptions leading to abortion", type number}, {"2015#(tab)Number of Conceptions", Int64.Type}, {"2015#(tab)Conception rate per 1,000 women in age group", type number}, {"2015#(tab)Maternity rate per 1,000 women in age group", type number}, {"2015#(tab)Abortion rate per 1,000 women in age group", type number}, {"2015#(tab)Percentage of conceptions leading to abortion", type number}, {"2014#(tab)Number of Conceptions", Int64.Type}, {"2014#(tab)Conception rate per 1,000 women in age group", type number}, {"2014#(tab)Maternity rate per 1,000 women in age group", type number}, {"2014#(tab)Abortion rate per 1,000 women in age group", type number}, {"2014#(tab)Percentage of conceptions leading to abortion", type number}, {"2013#(tab)Number of Conceptions", Int64.Type}, {"2013#(tab)Conception rate per 1,000 women in age group", type number}, {"2013#(tab)Maternity rate per 1,000 women in age group", type number}, {"2013#(tab)Abortion rate per 1,000 women in age group", type number}, {"2013#(tab)Percentage of conceptions leading to abortion", type number}, {"2012#(tab)Number of Conceptions", Int64.Type}, {"2012#(tab)Conception rate per 1,000 women in age group", type number}, {"2012#(tab)Maternity rate per 1,000 women in age group", type number}, {"2012#(tab)Abortion rate per 1,000 women in age group", type number}, {"2012#(tab)Percentage of conceptions leading to abortion", type number}, {"2011#(tab)Number of Conceptions", Int64.Type}, {"2011#(tab)Conception rate per 1,000 women in age group", type number}, {"2011#(tab)Maternity rate per 1,000 women in age group", type number}, {"2011#(tab)Abortion rate per 1,000 women in age group", type number}, {"2011#(tab)Percentage of conceptions leading to abortion", type number}, {"2010#(tab)Number of Conceptions", Int64.Type}, {"2010#(tab)Conception rate per 1,000 women in age group", type number}, {"2010#(tab)Maternity rate per 1,000 women in age group", type number}, {"2010#(tab)Abortion rate per 1,000 women in age group", type number}, {"2010#(tab)Percentage of conceptions leading to abortion", type number}, {"2009#(tab)Number of Conceptions", Int64.Type}, {"2009#(tab)Conception rate per 1,000 women in age group", type number}, {"2009#(tab)Maternity rate per 1,000 women in age group", type number}, {"2009#(tab)Abortion rate per 1,000 women in age group", type number}, {"2009#(tab)Percentage of conceptions leading to abortion", type number}, {"2008#(tab)Number of Conceptions", Int64.Type}, {"2008#(tab)Conception rate per 1,000 women in age group", type number}, {"2008#(tab)Maternity rate per 1,000 women in age group", type number}, {"2008#(tab)Abortion rate per 1,000 women in age group", type number}, {"2008#(tab)Percentage of conceptions leading to abortion", type number}, {"2007#(tab)Number of Conceptions", Int64.Type}, {"2007#(tab)Conception rate per 1,000 women in age group", type number}, {"2007#(tab)Maternity rate per 1,000 women in age group", type number}, {"2007#(tab)Abortion rate per 1,000 women in age group", type number}, {"2007#(tab)Percentage of conceptions leading to abortion", type number}, {"2006#(tab)Number of Conceptions", Int64.Type}, {"2006#(tab)Conception rate per 1,000 women in age group", type number}, {"2006#(tab)Maternity rate per 1,000 women in age group", type number}, {"2006#(tab)Abortion rate per 1,000 women in age group", type number}, {"2006#(tab)Percentage of conceptions leading to abortion", type number}, {"2005#(tab)Number of Conceptions", Int64.Type}, {"2005#(tab)Conception rate per 1,000 women in age group", type number}, {"2005#(tab)Maternity rate per 1,000 women in age group", type number}, {"2005#(tab)Abortion rate per 1,000 women in age group", type number}, {"2005#(tab)Percentage of conceptions leading to abortion", type number}, {"2004#(tab)Number of Conceptions", Int64.Type}, {"2004#(tab)Conception rate per 1,000 women in age group", type number}, {"2004#(tab)Maternity rate per 1,000 women in age group", type number}, {"2004#(tab)Abortion rate per 1,000 women in age group", type number}, {"2004#(tab)Percentage of conceptions leading to abortion", type number}, {"2003#(tab)Number of Conceptions", Int64.Type}, {"2003#(tab)Conception rate per 1,000 women in age group", type number}, {"2003#(tab)Maternity rate per 1,000 women in age group", type number}, {"2003#(tab)Abortion rate per 1,000 women in age group", type number}, {"2003#(tab)Percentage of conceptions leading to abortion", type number}, {"2002#(tab)Number of Conceptions", Int64.Type}, {"2002#(tab)Conception rate per 1,000 women in age group", type number}, {"2002#(tab)Maternity rate per 1,000 women in age group", type number}, {"2002#(tab)Abortion rate per 1,000 women in age group", type number}, {"2002#(tab)Percentage of conceptions leading to abortion", type number}, {"2001#(tab)Number of Conceptions", Int64.Type}, {"2001#(tab)Conception rate per 1,000 women in age group", type number}, {"2001#(tab)Maternity rate per 1,000 women in age group", type number}, {"2001#(tab)Abortion rate per 1,000 women in age group", type number}, {"2001#(tab)Percentage of conceptions leading to abortion", type number}, {"2000#(tab)Number of Conceptions", Int64.Type}, {"2000#(tab)Conception rate per 1,000 women in age group", type number}, {"2000#(tab)Maternity rate per 1,000 women in age group", type number}, {"2000#(tab)Abortion rate per 1,000 women in age group", type number}, {"2000#(tab)Percentage of conceptions leading to abortion", type number}, {"1999#(tab)Number of Conceptions", Int64.Type}, {"1999#(tab)Conception rate per 1,000 women in age group", type number}, {"1999#(tab)Maternity rate per 1,000 women in age group", type number}, {"1999#(tab)Abortion rate per 1,000 women in age group", type number}, {"1999#(tab)Percentage of conceptions leading to abortion", type number}, {"1998#(tab)Number of Conceptions", Int64.Type}, {"1998#(tab)Conception rate per 1,000 women in age group", type number}, {"1998#(tab)Maternity rate per 1,000 women in age group", type number}, {"1998#(tab)Abortion rate per 1,000 women in age group", type number}, {"1998#(tab)Percentage of conceptions leading to abortion", type number}}),
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Changed Type", {"Area#(tab)Code1", "Area#(tab)Name", "Area#(tab)Geography"}, "Attribute", "Value"),
#"Split Column by Delimiter" = Table.SplitColumn(#"Unpivoted Other Columns", "Attribute", Splitter.SplitTextByDelimiter("#(tab)", QuoteStyle.Csv), {"Year", "Attribute"}),
#"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Year", Int64.Type}, {"Attribute", type text}}),
#"Pivoted Column" = Table.Pivot(#"Changed Type1", List.Distinct(#"Changed Type1"[Attribute]), "Attribute", "Value"),
#"Removed Errors" = Table.RemoveRowsWithErrors(#"Pivoted Column", {"Conception rate per 1,000 women in age group"})
in
#"Removed Errors"