This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I have a summarized table like this:
| Year | ProdFacName | Department Name | Week | Total_WCM_EUs |
| 2020 | Tyler | WCM | 29 | 563892.44 |
| 2020 | Tyler | WCM | 30 | 589533.76 |
I would like to create a new column that has a total sum grouped by the rows like this :
| Year | ProdFacName | Department Name | Week | Total_WCM_EUs | Total |
| 2020 | Tyler | WCM | 29 | 563892.44 | 1153426.2 |
| 2020 | Tyler | WCM | 30 | 589533.76 | 1153426.2 |
How can I do this without create a new summarized table?
Solved! Go to Solution.
Hi @sprakash1192 ,
Or you can use "earlier" function:
Total = SUMX(FILTER('Table','Table'[Key]=EARLIER('Table'[Key])),'Table'[Total_WCM_EUs])
And you will see:
For the related .pbix file,pls see attached.
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
You can add a calculated column to your calculated table with this expression.
Total =
CALCULATE (
SUM ( Table[Total_WCM_EUs] ),
ALLEXCEPT ( Table, Table[ProdFacName], Table[Year], Table[Department] )
)
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@sprakash1192 add a new measure like this:
Total = CALCUATE ( SUM ( Table[TOTAL_WCM} ), ALL() )
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
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.
But it takes away all groups. I should have made my question clearer, I want to have a grouped sum by the Key in my table, like this :
| Year | ProdFacName | Department Name | Week | Key | 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 |
Hi @sprakash1192 ,
Or you can use "earlier" function:
Total = SUMX(FILTER('Table','Table'[Key]=EARLIER('Table'[Key])),'Table'[Total_WCM_EUs])
And you will see:
For the related .pbix file,pls see attached.
@sprakash1192 try this
Total =
CALCULATE ( SUM ( Table[Total] ), ALLEXCEPT ( Table, Table[Key] ) )
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
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.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 28 | |
| 21 | |
| 18 | |
| 17 |
| User | Count |
|---|---|
| 62 | |
| 35 | |
| 34 | |
| 24 | |
| 24 |