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
Hello All
I would like to create a measure that calculates a running total which resets at the beginning of each month.
I am using the following DAX however as you will see it is summing up values from prior periods which is not what I am after:
I shall be grateful if someone can assist.
Many thanks
Solved! Go to Solution.
@kc_ , Try using below DAX
RunningTotal =
CALCULATE(
SUM('YourTable'[YourColumn]),
FILTER(
ALL('YourTable'),
'YourTable'[Date] <= MAX('YourTable'[Date]) &&
MONTH('YourTable'[Date]) = MONTH(MAX('YourTable'[Date])) &&
YEAR('YourTable'[Date]) = YEAR(MAX('YourTable'[Date]))
)
)
Proud to be a Super User! |
|
@kc_ , Try using below DAX
RunningTotal =
CALCULATE(
SUM('YourTable'[YourColumn]),
FILTER(
ALL('YourTable'),
'YourTable'[Date] <= MAX('YourTable'[Date]) &&
MONTH('YourTable'[Date]) = MONTH(MAX('YourTable'[Date])) &&
YEAR('YourTable'[Date]) = YEAR(MAX('YourTable'[Date]))
)
)
Proud to be a Super User! |
|
Many thanks!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |