Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
cbtekrony
Resolver I
Resolver I

Advanced Editor Query - no todos los archivos que se extraen

Estoy tratando de extraer 2 archivos de mi carpeta a continuación, pero sólo uno de ellos está tirando en BI. Por lo tanto, debe haber algo mal con mi lenguaje a continuación. ¿Alguna idea?

Dejar
Fuente: Folder.Files("C:'Usuarios'cxxxy'OneDrive'Power BI'NewSalesC"), "),
filtered_for_xls Table.SelectRows(Source, each Text.StartsWith([Extension], ".xls")),
added_exceldata Table.AddColumn(filtered_for_xls, "ExcelData", cada Excel.Workbook([Content])),
expanded_exceldata de la clase Table.ExpandTableColumn(added_exceldata, "ExcelData", "Nombre", "Datos", "Kind", "Nombre.1", "Datos", "Kind"-),
filtered_for_datasheets de tabla.SelectRows(expanded_exceldata, cada uno ([Kind] - "Sheet") y ([Name.1] - "Data" )),
promoted_headers Table.AddColumn(filtered_for_datasheets, "PromoteHeaders", cada Table.PromoteHeaders([Data])),
Data1 - promoted_headers{0}[Datos],
"Encabezados promocionados" - Tabla.PromoteHeaders(Data1, [PromoteAllScalars-true]),
"Tipo modificado" ? Tabla.TransformColumnTypes(''Encabezados promocionados'''''''Período de ventas','Fecha de tipo', ''Customer', 'texto de tipo', ''TSV'', 'número de clase', '''Tipo de cuota'', Escriba text, "Estado", escriba text, "Nombre del producto", escriba text, "Producto", escriba text, "Market", escriba text, "Appl/Use", escriba text, "Change Reason", escriba text, escriba text, escriba text, escriba text, escriba text, escriba texto, escriba texto, escriba texto, tipo de texto, texto de tipo, texto de texto, texto de texto, texto de texto de texto de texto de ventas, texto de texto de texto de texto de texto.
En
"Tipo cambiado"

3 REPLIES 3
edhans
Super User
Super User

Ha haciendo clic en un único archivo de Excel. Debe usar el Obtener datos de la carpeta (o carpeta de SharePoint) y, a continuación, haga clic en el botón Combinar. Generará algunas consultas nuevas, funciones personalizadas y carpetas y le guiará a través de un asistente.

2020-04-15 09_15_03-Untitled - Power Query Editor.png



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

@edhans Gracias. Había investigado un poco y había descubierto lo mismo. Fue un poco difícil ya que soy más nuevo en las consultas. No sabía que había una función de "Combinar archivos".

¡Gran! Me alegra que lo hayas arreglado.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.