You are on page 1of 1

let

Source = Excel.Workbook(Web.Contents(Rutadev & "/data/Ultranav-COA-Mapping-


2022-V2%20(for%20EIDOS).xlsx"), null, true),
#"FML vs Owner_Sheet" = Source{[Item="FML vs Owner",Kind="Sheet"]}[Data],
#"Changed Type" = Table.TransformColumnTypes(#"FML vs Owner_Sheet",{{"Column1",
type text}, {"Column2", type text}, {"Column3", type text}, {"Column4", type any},
{"Column5", type text}, {"Column6", type text}}),
#"Removed Blank Rows" = Table.SelectRows(#"Changed Type", each not
List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null}))),
#"Promoted Headers" = Table.PromoteHeaders(#"Removed Blank Rows",
[PromoteAllScalars=true]),
#"Changed Type1" = Table.TransformColumnTypes(#"Promoted Headers",{{"FML Code",
type text}, {"FML General Account", type text}, {"FML Detailed Account", type
text}, {"Ultranav Code", type any}, {"Ultranav Account", type text}, {"Group of
Accounts for EIDOS Dashboard", type text}}),
#"Removed Other Columns" = Table.SelectColumns(#"Changed Type1",{"Group of
Accounts for EIDOS Dashboard"}),
#"Removed Duplicates1" = Table.Distinct(#"Removed Other Columns"),
#"Removed Blank Rows1" = Table.SelectRows(#"Removed Duplicates1", each not
List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null}))),
#"Removed Errors" = Table.RemoveRowsWithErrors(#"Removed Blank Rows1", {"Group
of Accounts for EIDOS Dashboard"}),
#"Consultas combinadas" = Table.NestedJoin(#"Removed Errors", {"Group of
Accounts for EIDOS Dashboard"}, staticEidosGroup, {"Group of Accounts for EIDOS
Dashboard"}, "staticEidosGroup", JoinKind.LeftOuter),
#"Se expandió staticEidosGroup" = Table.ExpandTableColumn(#"Consultas
combinadas", "staticEidosGroup", {"view_order"}, {"view_order"})
in
#"Se expandió staticEidosGroup"

Source = Excel.Workbook(Web.Contents(Rutadev & "/data/Ultranav-COA-Mapping-2022-


V2%20(for%20EIDOS).xlsx"), null, true),
#"FML vs Owner_Sheet" = Source{[Item="FML vs Owner",Kind="Sheet"]}[Data],
#"Changed Type" = Table.TransformColumnTypes(#"FML vs Owner_Sheet",{{"Column1",
type text}, {"Column2", type text}, {"Column3", type text}, {"Column4", type any},
{"Column5", type text}, {"Column6", type text}}),
#"Removed Blank Rows" = Table.SelectRows(#"Changed Type", each not
List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null}))),
#"Promoted Headers" = Table.PromoteHeaders(#"Removed Blank Rows",
[PromoteAllScalars=true]),
#"Changed Type1" = Table.TransformColumnTypes(#"Promoted Headers",{{"FML Code",
type text}, {"FML General Account", type text}, {"FML Detailed Account", type
text}, {"Ultranav Code", type any}, {"Ultranav Account", type text}, {"Group of
Accounts for EIDOS Dashboard", type text}}),
#"Removed Duplicates" = Table.Distinct(#"Changed Type1", {"FML Code"})
in
#"Removed Duplicates"

You might also like