Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello!
I have a table that follows this structure:
| ID | Value |
| A | 3 |
| A | 5 |
| B | 2 |
| C | 7 |
| D | 9 |
| D | 2 |
| D | 11 |
| E | 5 |
I want to create a new column that will sum the value of the "Value" column for all the same IDs.
The expected result would be something like this:
| ID | Value | SUM_ValueById |
| A | 3 | 8 |
| A | 5 | 8 |
| B | 2 | 2 |
| C | 7 | 7 |
| D | 9 | 22 |
| D | 2 | 22 |
| D | 11 | 22 |
| E | 5 | 5 |
How can I do this?
Solved! Go to Solution.
Hi @nok ,
You can achieve this by creating a calculated column in Power BI using DAX.
SUM_ValueById = CALCULATE( SUM('Table'[Value]), FILTER('Table', 'Table'[ID] = EARLIER('Table'[ID])) )
Hi @nok ,
You can achieve this by creating a calculated column in Power BI using DAX.
SUM_ValueById = CALCULATE( SUM('Table'[Value]), FILTER('Table', 'Table'[ID] = EARLIER('Table'[ID])) )
@nok ,
Your Calculated Column is:
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 52 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 112 | |
| 108 | |
| 39 | |
| 34 | |
| 26 |