Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
I want a running total by date for the Amount Column which should be different for each Security ID.
Solved! Go to Solution.
Hi @NI
First add an Index Column from Query Editor or Power Query
Now you can get the expected Cumulative Values using this Calculated Column
Cumulative =
CALCULATE (
SUM ( TableName[Amount] ),
FILTER (
ALLEXCEPT ( TableName, TableName[Security ID] ),
TableName[Index] <= EARLIER ( TableName[Index] )
)
)
Hi @NI
First add an Index Column from Query Editor or Power Query
Now you can get the expected Cumulative Values using this Calculated Column
Cumulative =
CALCULATE (
SUM ( TableName[Amount] ),
FILTER (
ALLEXCEPT ( TableName, TableName[Security ID] ),
TableName[Index] <= EARLIER ( TableName[Index] )
)
)
I have a follow up qustion about your amazing explanation,
let's assume I have another "Country" column at the table, which I want to take as a paramater while calculating the running total, so that the cumulative total column will show not only cumulative total over time by securtiy Id but also by country, like in the example below- how should I revise the calculation in order to do so?
Thanks !
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 38 | |
| 31 | |
| 27 | |
| 27 |