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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
sprakash1192
Helper II
Helper II

Suma agrupada

Tengo una tabla resumida como esta:

añoProdFacNameNombre del DepartamentoSemanaTotal_WCM_EUs
2020TylerWcm29563892.44
2020TylerWcm30589533.76

Me gustaría crear una nueva columna que tiene una suma total agrupada por las filas como esta:

añoProdFacNameNombre del DepartamentoSemanaTotal_WCM_EUsTotal
2020TylerWcm29563892.441153426.2
2020TylerWcm30589533.761153426.2

¿Cómo puedo hacer esto sin crear una nueva tabla resumida?

1 ACCEPTED SOLUTION

Hola @sprakash1192 ,

O puede utilizar la función "anterior":

Total = SUMX(FILTER('Table','Table'[Key]=EARLIER('Table'[Key])),'Table'[Total_WCM_EUs])

Y verás:

Annotation 2020-08-20 095342.png

Para el archivo .pbix relacionado, pls ver adjunto.

Saludos
Kelly
¿He respondido a tu pregunta? ¡Marca mi puesto como una solución!

View solution in original post

6 REPLIES 6
AllisonKennedy
Super User
Super User

@sprakash1192
Esperemos que una de las fórmulas sugeridas le haya ayudado, pero sólo soy curioso por qué necesita la tabla resumida y ha elegido hacer esto como una tabla calculada. Dependiendo del objetivo final final, esto podría hacerse usando MEASURES y matriz/tabla visual en su lugar. Si está buscando algunas eficiencias del modelo de datos, háganos saber su objetivo final.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

mahoneypat
Employee
Employee

Puede agregar una columna calculada a la tabla calculada con esta expresión.

Total ?
CALCULAR (
SUM ( Tabla[Total_WCM_EUs] ),
ALLEXCEPT ( Tabla, Tabla[ProdFacName], Tabla[Año], Tabla[Departamento] )
)

Si esto funciona para usted, márquelo como la solución. Los elogios también son apreciados. Por favor, avísame si no.

saludos

palmadita





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


parry2k
Super User
Super User

@sprakash1192 añadir una nueva medida como esta:

Total = CALCUATE ( SUM ( Table[TOTAL_WCM} ), ALL() )

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

Visítenos en https://perytus.com, su ventanilla única para proyectos/formación/consulta relacionadas con Power BI.



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.

Pero se lleva a todos los grupos. Debería haber aclarado mi pregunta, quiero tener una suma agrupada por la llave en mi tabla, así:

añoProdFacNameNombre del DepartamentoSemanaClaveTotal_WCM_EUsTotal
2020TylerWcm2929-30563892.41153426
2020TylerWcm3029-30589533.81153426
2020TylerWcm3131-324100009410000
2020TylerWcm3231-3290000009410000

Hola @sprakash1192 ,

O puede utilizar la función "anterior":

Total = SUMX(FILTER('Table','Table'[Key]=EARLIER('Table'[Key])),'Table'[Total_WCM_EUs])

Y verás:

Annotation 2020-08-20 095342.png

Para el archivo .pbix relacionado, pls ver adjunto.

Saludos
Kelly
¿He respondido a tu pregunta? ¡Marca mi puesto como una solución!

@sprakash1192 probar esto

Total  = 
CALCULATE ( SUM ( Table[Total] ), ALLEXCEPT ( Table, Table[Key] ) )

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

Visítenos en https://perytus.com, su ventanilla única para proyectos/formación/consulta relacionadas con Power BI.



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.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors