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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
Is it possible to speed up this cumulative calculation?
Cumulative Revenue =
IF(
ISINSCOPE(Source[Customer]),
CALCULATE(
[Net_Revenue],
TOPN([Rank],
ALLSELECTED(Source[Customer]),
[Net_Revenue])
),
[Total Net Revenue]
)
Thanks,
-w
Solved! Go to Solution.
See if this helps:
Cumulative Revenue =
VAR _Rank = [Rank]
VAR _CustRev_ =
ADDCOLUMNS (
ALLSELECTED ( Source[Customer] ),
"@NetRev", [Net_Revenue]
)
VAR _TopNRev =
SUMX (
TOPN ( _Rank, _CustRev_, [@NetRev] ),
[@NetRev]
)
RETURN
IF (
ISINSCOPE ( Source[Customer] ),
_TopNRev,
[Total Net Revenue]
)
See if this helps:
Cumulative Revenue =
VAR _Rank = [Rank]
VAR _CustRev_ =
ADDCOLUMNS (
ALLSELECTED ( Source[Customer] ),
"@NetRev", [Net_Revenue]
)
VAR _TopNRev =
SUMX (
TOPN ( _Rank, _CustRev_, [@NetRev] ),
[@NetRev]
)
RETURN
IF (
ISINSCOPE ( Source[Customer] ),
_TopNRev,
[Total Net Revenue]
)
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 59 | |
| 45 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 115 | |
| 114 | |
| 38 | |
| 36 | |
| 26 |