Forum Discussion
Linnox
1 year agoRegular Visitor
Rolling total Not Working Correctly
hi, I have this calculation for the same day sales. the result is correct. Sales R3M Same Day = VAR _currentdate = MAX ( DateTable[Date]) VAR _day = DAY ( _currentdate ) VAR _previous...
- 1 year ago
Sumx(
FILTER(
ALLSELECTED('DateTable'[Year Month]),
'DateTable'[Date] <= MAX('DateTable'[Date])
),
[Sales R3M Same Day]
)
Something like this, calculate the measure per year month and sum the values.
bhanu_gautam
1 year agoSuper User
Linnox Try using
DAX
Sales R3M Same Day running total in Date =
CALCULATE(
[Sales R3M Same Day],
DATESINPERIOD(
'DateTable'[Date],
LASTDATE('DateTable'[Date]),
-1,
MONTH
)
)