1 2 3 4 5 6 7 8 9 10
| let
Source = Excel.Workbook(File.Contents("C:\........\totale.xlsx"), null, true),
#"4414_Stimato-ControlloCalcolo_0_Sheet" = Source{[Item="4414_Stimato-ControlloCalcolo_0",Kind="Sheet"]}[Data],
#"En-têtes promus" = Table.PromoteHeaders(#"4414_Stimato-ControlloCalcolo_0_Sheet", [PromoteAllScalars=true]),
#"Type modifié" = Table.TransformColumnTypes(#"En-têtes promus",{{"Azienda", Int64.Type}, {"Matricola", Int64.Type}, {"Centro_Costo", Int64.Type}, {"Anno", Int64.Type}, {"Mese", Int64.Type}, {"Cod_Ril", type text}, {"Descrizione", type text}, {"RETRIBUZIONE", type number}, {"P.T.", type number}, {"VE", type text}, {"Ore_GG", type number}, {"Base", type number}, {"Valore", type number}, {"Valorizzazione", type number}, {"Aliq_INPS", type number}, {"controllo", type text}, {"Aliq_INAIL", type number}, {"Contr_INPS", type number}, {"Valorizzazione_1", type number}, {"Contr_Inail", type number}, {"Conto", Int64.Type}, {"Cod_Rateo", Int64.Type}, {"Tipo_Rateo", type text}, {"SAP_NUMBER", Int64.Type}}),
#"Lignes filtrées" = Table.SelectRows(#"Type modifié", each ([Descrizione] = "ACC.TO STIMATO OVT EMP")),
#"Colonnes permutées" = Table.ReorderColumns(#"Lignes filtrées",{"Azienda", "Matricola", "SAP_NUMBER", "Centro_Costo", "Anno", "Mese", "Ore_GG", "Valore", "Contr_INPS", "Cod_Ril", "Descrizione", "RETRIBUZIONE", "P.T.", "VE", "Base", "Valorizzazione", "Aliq_INPS", "controllo", "Aliq_INAIL", "Valorizzazione_1", "Contr_Inail", "Conto", "Cod_Rateo", "Tipo_Rateo"}),
#"Colonnes supprimées" = Table.RemoveColumns(#"Colonnes permutées",{"Cod_Ril", "Descrizione", "RETRIBUZIONE", "P.T.", "VE", "Base", "Valorizzazione", "Aliq_INPS", "controllo", "Aliq_INAIL", "Valorizzazione_1", "Contr_Inail", "Conto", "Cod_Rateo", "Tipo_Rateo"})
in
#"Colonnes supprimées" |
Partager