0% found this document useful (0 votes)
20 views1 page

Let

The document summarizes a series of Power Query steps to clean and transform data from an Excel workbook. It loads data from a sheet, changes column types, removes blank rows, promotes headers, removes duplicate and error rows, performs a left outer join with another table, and expands a column. The final output is a distinct table with a specific column.

Uploaded by

Daniel Schreen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views1 page

Let

The document summarizes a series of Power Query steps to clean and transform data from an Excel workbook. It loads data from a sheet, changes column types, removes blank rows, promotes headers, removes duplicate and error rows, performs a left outer join with another table, and expands a column. The final output is a distinct table with a specific column.

Uploaded by

Daniel Schreen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 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