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
Anonymous
Not applicable

Crear una tabla de resumen

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

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

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]))
)

image.png

Br

J


Connect on LinkedIn

View solution in original post

3 REPLIES 3
tex628
Community Champion
Community Champion

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]))
)

image.png

Br

J


Connect on LinkedIn
Anonymous
Not applicable

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

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.