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
Hi Community
I am working on a subscription revenue report in Power BI
My data model contains:
Customers (CustomerID, Regio)
Invoices (InvoiceDate, InvoiceAmount)
Date table connected to InvoiceDate
Also I have a matrix visual:
Rows: Region → Month
Values: Monthly Revenue + Cumulative Revenue
My current cumulative measure works fine until a user selects a single customer from a slicer. Then, it only accumulates revenue for that one customer not the whole region.
This is my current measure:
Cumulative Revenue =
CALCULATE(
SUM(Invoices[InvoiceAmount]),
FILTER(
ALL(Date[Date]),
Date[Date] <= MAX(Date[Date])
)
)
I need to Keep cumulative revenue working by Region, even when a single customer is selected.
Any advice on fixing this? Thank you!
Solved! Go to Solution.
Hi @GalrioSamoel,
The issue happens because Customer slicer filters flow into your measure so Cumulative Revenue only calculates for the selected customer.
So you should remove the CustomerID filter while still keeping Region filter and report date filters:
Cumulative Revenue by Region =
VAR MaxVisibleDate =
MAX ( Date[Date] )
RETURN
CALCULATE (
SUM ( Invoices[InvoiceAmount] ),
FILTER (
ALLSELECTED ( Date[Date] ),
Date[Date] <= MaxVisibleDate
),
REMOVEFILTERS ( Customers[CustomerID] ) -- Important
)
Cumulative Revenue =
CALCULATE(
SUM(Invoices[InvoiceAmount]),
FILTER(
ALL(Date[Date], Customers[CustomerID]),
Date[Date] <= MAX(Date[Date])
)
)
Hi @GalrioSamoel,
The issue happens because Customer slicer filters flow into your measure so Cumulative Revenue only calculates for the selected customer.
So you should remove the CustomerID filter while still keeping Region filter and report date filters:
Cumulative Revenue by Region =
VAR MaxVisibleDate =
MAX ( Date[Date] )
RETURN
CALCULATE (
SUM ( Invoices[InvoiceAmount] ),
FILTER (
ALLSELECTED ( Date[Date] ),
Date[Date] <= MaxVisibleDate
),
REMOVEFILTERS ( Customers[CustomerID] ) -- Important
)
Thanks Ahmed it worked perfectly
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 20 | |
| 13 | |
| 11 |