This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi everyone.
So I have this sample data.
Table 'Sales'
Rank and Running Sales are calculated columns using the following formulas.
Solved! Go to Solution.
@Anonymous Couple things to try:
Running Sales Column =
VAR __Rank = [Rank]
VAR __Result =
CALCULATE(
SUM( Sales[Sales] ) , ALL( Sales ) , Sales[Rank] <= __Rank
)
RETURN
__Result
Running Sales Colum 2 =
VAR __Rank = [Rank]
VAR __Result =
SUMX(
FILTER( ALL( Sales ) , Sales[Rank] <= __Rank),
[Sales]
)
RETURN
__Result
@Anonymous Couple things to try:
Running Sales Column =
VAR __Rank = [Rank]
VAR __Result =
CALCULATE(
SUM( Sales[Sales] ) , ALL( Sales ) , Sales[Rank] <= __Rank
)
RETURN
__Result
Running Sales Colum 2 =
VAR __Rank = [Rank]
VAR __Result =
SUMX(
FILTER( ALL( Sales ) , Sales[Rank] <= __Rank),
[Sales]
)
RETURN
__Result
Thanks! @Greg_Deckler Second option (with SUMX) worked like a charm, the others did not? Any idea why?
@Anonymous CALCULATE isn't really all that great with single table data models.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 25 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 50 | |
| 30 | |
| 23 | |
| 23 |