Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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 @aaronzheng
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 @aaronzheng
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 @aaronzheng
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 :
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
117 | |
84 | |
49 | |
38 | |
28 |
User | Count |
---|---|
185 | |
73 | |
73 | |
50 | |
42 |