Forum Discussion
databot_kd
Helper III
2 years agoRolling Total Over Months in a Matrix table
Hi Community, I am trying to create a DAX measure to calculate the rolling/running total over month in a matrix table. See screenshot below Ahmedx ced_f Thanks in advanc...
- 2 years ago
Hey databot_kd ,
if you want to calculate running total within a year you can use TOTALYTD formula.
Like:Total YTD = TOTALYTD([your Amount Measure],'Calendar'[Date])
Regards
databot_kd
Helper III
2 years agoHi mh2587 ,
Unfortunately, i seem to still have some issues.
this is dax i used:
Running Total =
VAR CurrentMonth = MAX('Transactions'[trans_date])
RETURN
CALCULATE(
SUM('Transactions'[amount]),
FILTER(
ALL('Transactions'),
'Transactions'[trans_date] <= CurrentMonth
)
)
Please note i have a slicer for the FY from the calendar table and also my months in the matrix are coming from the calendar table
The two tables are linked by the date 1 - *
Please note i have a slicer for the FY from the calendar table and also my months in the matrix are coming from the calendar table
The two tables are linked by the date 1 - *
ced_f
2 years agoFrequent Visitor
Hi databot_kd ,
If you already have a calendar table in your model, what you are trying to achieve is a common year to date except if your running total is over all years.