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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi! I have a table:
| person_id | value |
| 1022 | 0 |
| 1022 | 0 |
| 1022 | 0 |
| 1022 | 1 |
| 1022 | 0 |
And so on, so it is a column, where we have 5 values per one person, I need a column that will show the sum of those 5 values per person, so it will look like this:
| person_id | value | sum |
| 1022 | 0 | 1 |
| 1022 | 0 | 1 |
| 1022 | 0 | 1 |
| 1022 | 1 | 1 |
| 1022 | 0 | 1 |
What dax formula I need to create a column "sum"
Solved! Go to Solution.
@Anonymous
Please use the following measure
M =
CALCULATE (
SUM( Table[Value]),
ALLEXCEPT ( table , table[person id])
)
โญ Subscribe and learn Power BI from these videos
โช Website โช LinkedIn โช PBI User Group
@Anonymous
Please use the following measure
M =
CALCULATE (
SUM( Table[Value]),
ALLEXCEPT ( table , table[person id])
)
โญ Subscribe and learn Power BI from these videos
โช Website โช LinkedIn โช PBI User Group
Thanks a lot
Hi,
Please try the below to create a new column.
Sum CC =
SUMX (
FILTER (
'TableName',
'TableName'[person_id] = EARLIER ( 'TableName'[person_id] )
),
'TableName'[value]
)
Is this to be a measure or a calculated column? If a calc column...
[Sum] = // calc column
var vPerson = T[person_id]
var Result =
SUMX(
filter(
T,
T[person_id] = vPerson
),
T[value]
)
RETURN
Result
Check out the November 2025 Fabric update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!