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,
If I have a column in a table for amounts (Table[Amounts]) and another column with the year correlated to those amounts (Table[Year]). Currently if I had a bar graph with the amounts as the Y axis and the years as the X axis, it would show the sum of the amounts that correlate to their years for each year. Is it possible to instead show the sum of all the amounts of all prior years for each year?
For example, if 2001 had 10000.60 as its sum of amounts and 2002 had 5000.00, I would want the year 2002 to be represented by 15000.60 not 5000.00.
Thank you in advance!
Solved! Go to Solution.
Hi! Check out this running total article from SQLBI: Computing running totals in DAX - SQLBI
Proud to be a Super User! | |
Hi @srpeters ,
Thanks for @audreygerred reply.
Here are some steps you can try:
Sample data
Create a calculate column
Totalization =
CALCULATE(
SUM('Table'[Amounts]),
FILTER(
'Table',
'Table'[Year] <= EARLIER('Table'[Year])
)
)
Final output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @srpeters ,
Thanks for @audreygerred reply.
Here are some steps you can try:
Sample data
Create a calculate column
Totalization =
CALCULATE(
SUM('Table'[Amounts]),
FILTER(
'Table',
'Table'[Year] <= EARLIER('Table'[Year])
)
)
Final output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
This worked, thank you!
Hi! Check out this running total article from SQLBI: Computing running totals in DAX - SQLBI
Proud to be a Super User! | |
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 |
|---|---|
| 85 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |