Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, I have application counts grouped by each hour. I would like to have a running total of the applications each day. In other words I want to sum the applications and have it reset for the next day.
The runningtotal is adding up but I need it to reset on each new day.
This is the dax expression for the runningtotal column :
Solved! Go to Solution.
Hi @Anonymous
Maybe you can add a calculated column FLA[Date] which is equal to ApplicationHourEST but is only a date and note a datetime.
And then I think the following measure will answer your need :
try the following code:
RunningTotal =
VAR _Date =
DATE ( YEAR ( FLA[ApplicationHourEST] ), MONTH ( FLA[ApplicationHourEST] ), DAY ( FLA[ApplicationHourEST] ) )
RETURN
CALCULATE (
SUM ( 'FLA'[ApplicationCount] ),
FILTER (
ALL ( FLA ),
FLA[ApplicationHourEST] <= EARLIER ( FLA[ApplicationHourEST] )
&& FLA[ApplicationHourEST] = _Date
)
)
Proud to be a Super User!
Paul on Linkedin.
try the following code:
RunningTotal =
VAR _Date =
DATE ( YEAR ( FLA[ApplicationHourEST] ), MONTH ( FLA[ApplicationHourEST] ), DAY ( FLA[ApplicationHourEST] ) )
RETURN
CALCULATE (
SUM ( 'FLA'[ApplicationCount] ),
FILTER (
ALL ( FLA ),
FLA[ApplicationHourEST] <= EARLIER ( FLA[ApplicationHourEST] )
&& FLA[ApplicationHourEST] = _Date
)
)
Proud to be a Super User!
Paul on Linkedin.
Hi @Anonymous
Try the following measure :
Hi Antoine,
I get this error: The VALUES function expects a column reference expression or a table reference expression for argument '1'.
Hi @Anonymous
Maybe you can add a calculated column FLA[Date] which is equal to ApplicationHourEST but is only a date and note a datetime.
And then I think the following measure will answer your need :
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.