Forum Discussion
Analitika
5 years agoPost Prodigy
•Excel.CurrentWorkbook()
¿Cómo funciona esta función? •Excel.CurrentWorkbook() ¿Cuál es el libro de trabajo actual? Siempre tengo campos emtpy ¿Necesito especificar el nombre y la ruta del libro de trabajo? ¿Se necesita...
Greg_Deckler
5 years agoCommunity Champion
@Analitika Probablemente una buena pregunta para @ImkeF, @edhans y @HotChilli
Sin embargo, mis consultas de Excel generalmente tienen este aspecto:
let
Source = Excel.Workbook(File.Contents("C:\Users\gdeckler\Downloads\ItemUnit.xlsx"), null, true),
Ancilliary_Table = Source{[Item="Ancilliary",Kind="Table"]}[Data],
#"Changed Type" = Table.TransformColumnTypes(Ancilliary_Table,{{"Item no", Int64.Type}, {"Product Description", type text}, {"Qty", Int64.Type}, {"Sale", type text}, {"Attribute.1", type text}, {"Value", type any}})
in
#"Changed Type"