Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
In a new table, I want to summarize a column; and then sum the values that are matching together :
ExistingTable-
Column A Values
A 2
A 2
A 4
B 1
B 1
B
New Table-
Column A Values
A 8
B 2
I'm Using this code :
New table = SUMMARIZE( ' ExistingTable ' ; ' ExistingTable ' [Column A] ; Sum ( ' Existing Table ' [Values] )
I'm wondering why wouldn't that be working ?
Thanks 🙂
Solved! Go to Solution.
You may use GROUPBY Function as well. By the way, to help close this thread, accept the solution above. Your contribution is highly appreciated.
New table =
GROUPBY (
ExistingTable,
ExistingTable[Column A],
"Values", SUMX ( CURRENTGROUP (), ExistingTable[Values] )
)
Hey,
I guess your Table-Calculation should look like this
New table = SUMMARIZE( ' ExistingTable ' ; ' ExistingTable ' [Column A] ; "Values", Sum ( ' Existing Table ' [Values] ) )
It seems your formula just missed a column name for the aggregated value.
And for a couple of reasons it also a good practice to take this article into account:
http://www.sqlbi.com/articles/best-practices-using-summarize-and-addcolumns/
Hope this helps
Thanks, you're right it works now thanks for the highlight and the article !
You may use GROUPBY Function as well. By the way, to help close this thread, accept the solution above. Your contribution is highly appreciated.
New table =
GROUPBY (
ExistingTable,
ExistingTable[Column A],
"Values", SUMX ( CURRENTGROUP (), ExistingTable[Values] )
)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 84 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |