Forum Discussion
Calculation up to today
- 3 years ago
Hi Tomek,
I've added an IF function to your running twelve month points measure, to first check if the date is not in the future. Please let me know if this works for you or if you were looking for something different. ๐
points R12m = IF ( MIN ( 'calendar'[Date] ) <= TODAY(), CALCULATE ( [points], DATESINPERIOD ( 'calendar'[Date], MAX ( 'calendar'[Date] ), -12, MONTH ) ) )----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)
Hi Tomek,
I've added an IF function to your running twelve month points measure, to first check if the date is not in the future. Please let me know if this works for you or if you were looking for something different. ๐
points R12m =
IF (
MIN ( 'calendar'[Date] ) <= TODAY(),
CALCULATE (
[points],
DATESINPERIOD ( 'calendar'[Date], MAX ( 'calendar'[Date] ), -12, MONTH )
)
)
----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)