Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a simple table with product week number and a running total measure:
Running Total =
var maxdate = MAX(week)
return
CALCULATE(SUM(quantity),week<=maxdate)
Product | 14 | 15 | 16 |
Macbook | 20 | 40 | 60 |
PC | 10 | 20 |
My problem is that I am not getting the running total for product PC week 16. I want it to display 20
There is no data for that week in the table which is just Product/Week/Quantity.
I tried linking it to a time table, but I still get the same issue
Hello @PowerBITestingG,
Could you please try this:
Running Total =
VAR MaxDate = MAX(week)
RETURN
CALCULATE(
SUM(quantity),
FILTER(
ALL(week),
week <= MaxDate
&& (ISBLANK(SUM(quantity)) || week > Max(week[week]))
)
)
Let me know if you might need further assistance.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
76 | |
56 | |
38 | |
34 |
User | Count |
---|---|
99 | |
56 | |
51 | |
44 | |
40 |