on 01-20-2016 2:23 PM
Hi,
I'm trying to configure a calculated dimension with a "Previous month-to-Date" calculation with a yearchange.
In the document Calculiations best practice there is only an example which does'nt taking account to yearchange.
if month({date}) = Month(currentDate())-1 and Dayofyear({Date}) <= DayofYear(CurrentDate()) then {... }else 0
If the current month is january there will be no result.
Is there anybody who have a solution?
Thanks
Peter
Hello Peter
This formula keeps the last 30 days
if DateDiffInDays({Date}, CurrentDate()) <= 30 then {...} else 0
Regards
Sylvain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.