Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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 advance.
Solved! Go to Solution.
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
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
Running Total by Month =
VAR CurrentMonth = MAX('YourTable'[Date])
RETURN
CALCULATE(
SUM('YourTable'[Value]),
FILTER(
ALL('YourTable'),
'YourTable'[Date] <= CurrentMonth
)
)
//Try this one might help you
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
Hi @mh2587 ,
Unfortunately, i seem to still have some issues.
this is dax i used:
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
84 | |
84 | |
66 | |
62 | |
62 |
User | Count |
---|---|
199 | |
120 | |
110 | |
79 | |
69 |