Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Tengo una tabla resumida como esta:
año | ProdFacName | Nombre del Departamento | Semana | Total_WCM_EUs |
2020 | Tyler | Wcm | 29 | 563892.44 |
2020 | Tyler | Wcm | 30 | 589533.76 |
Me gustaría crear una nueva columna que tiene una suma total agrupada por las filas como esta:
año | ProdFacName | Nombre del Departamento | Semana | Total_WCM_EUs | Total |
2020 | Tyler | Wcm | 29 | 563892.44 | 1153426.2 |
2020 | Tyler | Wcm | 30 | 589533.76 | 1153426.2 |
¿Cómo puedo hacer esto sin crear una nueva tabla resumida?
Solved! Go to 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:
Para el archivo .pbix relacionado, pls ver adjunto.
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
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
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@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ño | ProdFacName | Nombre del Departamento | Semana | Clave | Total_WCM_EUs | Total |
2020 | Tyler | Wcm | 29 | 29-30 | 563892.4 | 1153426 |
2020 | Tyler | Wcm | 30 | 29-30 | 589533.8 | 1153426 |
2020 | Tyler | Wcm | 31 | 31-32 | 410000 | 9410000 |
2020 | Tyler | Wcm | 32 | 31-32 | 9000000 | 9410000 |
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:
Para el archivo .pbix relacionado, pls ver adjunto.
@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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.