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.
Hola
Tengo dos tablas con tipo de código différent, cada tabla tiene un código, una columna de importe y una tabla de fechas.
Quiero crear una tercera tabla que sea un resumen de la anterior.
Con 5 columnas :
- Mes
- Condes de la primera tabla
- Suma del importe de la primera tabla
- Condes de la segunda tabla
- Suma del importe de la segunda tabla
He creado un archivo pbix con el fin de darle una vista sobre mis datos.
La mejor consideración,
Scrappys
Solved! Go to Solution.
Agregue este código a una tabla calculada:
Table =
NATURALINNERJOIN(
SUMMARIZE(ADDCOLUMNS('Table 1' , "Month_" , MONTH('Table 1'[Month])) , [Month_] , "Countrows T1" , COUNTROWS('Table 1') , "SUM CA T1" , SUM('Table 1'[CA]))
,
SUMMARIZE(ADDCOLUMNS('Table 2' , "Month_" , MONTH('Table 2'[Month])) , [Month_] , "Countrows T2" , COUNTROWS('Table 1') , "SUM CA T2" , SUM('Table 1'[CA]))
)
Br
J
@ScrappyS , puede anexar la combinación y agrupar por
https://radacad.com/append-vs-merge-in-power-bi-and-power-query
https://www.poweredsolutions.co/2019/07/30/grouping-rows-with-power-bi-power-query/
Agregue este código a una tabla calculada:
Table =
NATURALINNERJOIN(
SUMMARIZE(ADDCOLUMNS('Table 1' , "Month_" , MONTH('Table 1'[Month])) , [Month_] , "Countrows T1" , COUNTROWS('Table 1') , "SUM CA T1" , SUM('Table 1'[CA]))
,
SUMMARIZE(ADDCOLUMNS('Table 2' , "Month_" , MONTH('Table 2'[Month])) , [Month_] , "Countrows T2" , COUNTROWS('Table 1') , "SUM CA T2" , SUM('Table 1'[CA]))
)
Br
J
Muchas gracias @tex628, es trabajo como un encanto !
Sólo tengo otra pregunta: ¿cómo puedo añadir a mi tabla de resumen una columna que es la diferencia entre 'tabla 1'[Sum CA] y 'table 2'[Sum CA] ?
('tabla 1'[Sum CA] - 'tabla 2'[Suma CA])
Saludos
Scrappys
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |