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
Syndicate_Admin
Administrator
Administrator

Agrupar elementos con totales

Hola

Tengo datos que son algo así (departamento, grupo, dinero que viene en columnas):

01234A, 2000, $3

01234A, 2060, $5

01236B, 2000, $4

01236B, 4000, $5.

Quiero agrupar los totales para los deptos y los grupos, por lo que tendría 01234A sería $ 8 (3 + 5), 01236B sería $ 9 (4 + 5) y luego 2000 sería $ 7 (3 + 4) y 2060 y 4000 serían $ 5 cada uno.

¿Cómo puedo hacerlo en Power BI Desktop?

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

@vnicholl necesitas dos medidas

byDept = CALCULATE(SUM('Table'[money]),ALLEXCEPT('Table','Table'[dept]))
bygroup = CALCULATE(SUM('Table'[money]),ALLEXCEPT('Table','Table'[group]))

smpa01_0-1637181061830.png

View solution in original post

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Hola

Dependiendo de los campos que arrastre al objeto visual, una medida SUM debería funcionar

Medida = suma(Datos[Dinero])

Espero que esto ayude.

Syndicate_Admin
Administrator
Administrator

@vnicholl necesitas dos medidas

byDept = CALCULATE(SUM('Table'[money]),ALLEXCEPT('Table','Table'[dept]))
bygroup = CALCULATE(SUM('Table'[money]),ALLEXCEPT('Table','Table'[group]))

smpa01_0-1637181061830.png

¡Gracias! Estoy probando ambas cosas.

@vnicholl probaste lo anterior?

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.