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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
miguelHG
Frequent Visitor

Tablas

Buen Día,

 

He estado atorado con un problema y no le encuentro solución aceptable, tengo 5 tablas con datos diferentes, pero en cada tabla tengo 5 columnas que son iguales entre las 5 tablas, quiero mandar esas columnas a una tabla nueva que solo contenga esas 5 columnas, el problema, es que no he encontrado una manera de crear la tabla.

 

Primero utilicé ALLNOBLANKROW para extraer las columnas de una tabla y con UNION junte la información de las otras tablas, el problema es que me extrae la información en cada tabla en distinto orden, es decir, al principio viene una direcc ip, pero me lo pone al final y con UNION, la información debe de ir en el mismo orden:

 

Tabla 1:

miguelHG_0-1621545310501.png

 

Tabla 2:

miguelHG_1-1621545420132.png

 

 Y el resultado con UNION es distinto al deseado:

miguelHG_2-1621545478319.png

 

Me pueden ayudar a crear una tabla con las especificaciones que requiero?, Gracias de antemano.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@miguelHG , not got is completely. In power query add an index column in each table and then merge it. That will give you an order reference

 

https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi

 

Merge : https://radacad.com/append-vs-merge-in-power-bi-and-power-query

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@miguelHG , not got is completely. In power query add an index column in each table and then merge it. That will give you an order reference

 

https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi

 

Merge : https://radacad.com/append-vs-merge-in-power-bi-and-power-query

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Muchas gracias  @amitchandak , justo era lo que buscaba, y aparte me dió la solución para otro problema.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.