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
jeggen
Helper I
Helper I

Combinación de datos en la tabla de resumen

todo

Estoy buscando ayuda sobre cómo combinar algunos datos en una tabla de resumen. La razón principal es ser capaz de asignar todo en una visualización del calendario y luego hacer clic en los días y ver las actividades clave de esos días. Estoy viendo la combinación realmente de sólo cuatro campos de 2+ tablas en una tabla de resumen que incluye estos campos, una columna con la tabla de origen enumerada. Tres de los campos siempre serían los mismos (fecha, cliente, empleado), el tercero variaría según la tabla, pero siempre sería texto, y el cuarto campo registraría la tabla de origen para los datos de resumen que quiero para que pueda filtrar por tipo de actividad.

Este puede ser un ejemplo de las tablas de origen y la tabla de salida:

  • Contratos
    • Fecha
    • Cliente
    • Empleado
    • Importe del contrato (específico de esta tabla)
  • Interacciones
    • Fecha
    • Cliente
    • Empleado
    • Resumen (específico de esta tabla)
  • Pagos
    • Fecha
    • Cliente
    • Empleado
    • Cantidades (especificar esta tabla)
  • Tabla de resumen:
    • Fecha
    • Cliente
    • Empleado
    • Detalles (Importe del contrato, Resumen, Importe)
    • Tabla de origen (los valores serían contratos, interacciones, pagos,)
1 ACCEPTED SOLUTION

@jeggen no sabe el propósito de esto, pero aquí está, agregue la siguiente expresión como tabla calculada

Summary = 
UNION (
    SELECTCOLUMNS ( Contract, "Date", Contract[Date], "Client", Contract[Client], "Employee", Contract[Employee], "Details", FORMAT ( Contract[Contract Amount], "General Number" ), "Source Table", "Contract" ),
        SELECTCOLUMNS ( Interactions, "Date", Interactions[Date], "Client", Interactions[Client], "Employee", Interactions[Employee], "Details", Interactions[Summary], "Source Table", "Interactions" ),
        SELECTCOLUMNS ( Payments, "Date", Payments[Date], "Client", Payments[Client], "Employee", Payments[Employee], "Details", FORMAT ( Payments[Amount], "General Number" ), "Source Table", "Payments" )
) 

aquí es donde se agrega la expresión anterior

image.png

Me💖 Kudos 🙂 si mi solución me ayudara. Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

4 REPLIES 4
parry2k
Super User
Super User

@jeggen pegue algunos datos de muestra y la salida esperada.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Aquí hay algunas tablas de ejemplo en Excel: Tenga en cuenta que todas las tablas tienen más datos de los que necesito en la tabla de resumen, por lo que no es tan simple como combinar todos los datos y también necesita crear la columna "tabla de origen", que me dice cuál es la entrada.

Contratos
FechaClienteEmpleadoImporte del contratoProducto
1/1/2020ABC IncJoe$10,000Madera
3/1/2020XYZ IncMaría$50,000Metal
4/5/2020Tinta LMNSam$5,000Plástico
Interacciones
FechaClienteEmpleadoResumenEstado
2/15/2020ABC IncJoeLlamado a agradecer por el ordeníntegro
3/12/2020LMN IncSamLlamado para preguntar sobre el contratoíntegro
5/15/2020123 IncMaríaRecuerde comprobar el contratoPendiente
Pagos
FechaClienteEmpleadoCantidad
1/1/2020ABC IncJoe10,000
1/25/2020XYZ IncMaría15,000
Tabla de resumen
FechaClienteEmpleadoDetallesTabla de fuentes
1/1/2020ABC IncJoe10,000Pagos
1/25/2020XYZ IncMaría15,000Pagos
2/15/2020ABC IncJoeLlamado a agradecer por el ordenInteracciones
3/12/2020LMN IncSamLlamado para preguntar sobre el contratoInteracciones
5/15/2020123 IncMaríaRecuerde comprobar el contratoInteracciones
1/1/2020ABC IncJoe$10,000Contratos
3/1/2020XYZ IncMaría$50,000Contratos
4/5/2020Tinta LMNSam$5,000Contratos

@jeggen no sabe el propósito de esto, pero aquí está, agregue la siguiente expresión como tabla calculada

Summary = 
UNION (
    SELECTCOLUMNS ( Contract, "Date", Contract[Date], "Client", Contract[Client], "Employee", Contract[Employee], "Details", FORMAT ( Contract[Contract Amount], "General Number" ), "Source Table", "Contract" ),
        SELECTCOLUMNS ( Interactions, "Date", Interactions[Date], "Client", Interactions[Client], "Employee", Interactions[Employee], "Details", Interactions[Summary], "Source Table", "Interactions" ),
        SELECTCOLUMNS ( Payments, "Date", Payments[Date], "Client", Payments[Client], "Employee", Payments[Employee], "Details", FORMAT ( Payments[Amount], "General Number" ), "Source Table", "Payments" )
) 

aquí es donde se agrega la expresión anterior

image.png

Me💖 Kudos 🙂 si mi solución me ayudara. Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

El propósito es integrar un par de tablas diferentes en un resumen de alto nivel e incluirlas todas en una vista de calendario. ¡Esto funcionó perfecto!

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.

Top Kudoed Authors