Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have a table with revenues and expenses that is filtered by a slicer using Forecast ID. I'm trying to get a running total (Forecast Cumulative), but I can't seem to get the measure right. Here's what my table looks like. Forecast Cumulative is the measure:
The measure is:
Forecast Cumulative = calculate(sum('Forecast Date Revenue Expense'[Revenue])-sum('Forecast Date Revenue Expense'[Expense]))
As you can see, it is just subtracting the expense from the revenue for each row. I need it to generate a running total so Forecast Cumulative should be:
15195
20204
11679
4530
etc
I'm sure I have the filters wrong, but not sure how to fix it.
Thanks!
Solved! Go to Solution.
hi @kman42 ,
try like:
Forecast Cumulative =
CALCULATE(
sum('Forecast'[Revenue])-
sum('Forecast'[Expense]),
Forecast[date]<=MAX(Forecast[date])
)
hi @kman42 ,
try like:
Forecast Cumulative =
CALCULATE(
sum('Forecast'[Revenue])-
sum('Forecast'[Expense]),
Forecast[date]<=MAX(Forecast[date])
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
104 | |
69 | |
48 | |
41 | |
34 |
User | Count |
---|---|
164 | |
112 | |
62 | |
54 | |
38 |