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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
How do I find the year where the highest value is on a column with running total?
Solved! Go to Solution.
Maybe something like this:
Total Resultat =
SUM('Table'[Resultat]) RunningSum = CALCULATE ( [Total Resultat], FILTER ( ALL ( 'Table'[Year] ), 'Table'[Year] <= MAX ( 'Table'[Year] ) ) ) Rank =
RANKX ( ALL ( 'Table'[Year] ), [RunningSum],, DESC ) Max Running Year =
CALCULATE (
MAX ( 'Table'[Year] ),
FILTER ( ALL ( 'Table'[Year] ), [Rank] = 1 )
)
Maybe something like this:
Total Resultat =
SUM('Table'[Resultat]) RunningSum = CALCULATE ( [Total Resultat], FILTER ( ALL ( 'Table'[Year] ), 'Table'[Year] <= MAX ( 'Table'[Year] ) ) ) Rank =
RANKX ( ALL ( 'Table'[Year] ), [RunningSum],, DESC ) Max Running Year =
CALCULATE (
MAX ( 'Table'[Year] ),
FILTER ( ALL ( 'Table'[Year] ), [Rank] = 1 )
)
Thank you very much. It worked.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |