on 03-11-2024 5:57 PM
Hi friends,
I want to sum up the last 12 months. E.g. Jan-Dez 23 to Jan 24 and divide it by 12.
With Aggregate and write to in the advanced formulas, this works fine, when the dates are fixed.
However, I'm seeking a way to make this more flexible based on the current month. For instance, since it's now March 24, I want to sum up the period from March 23 to February 24.
Any suggestions would be greatly appreciated.
Kind regards,
Ismail
Keep your aggregate and write to as it is but change your memberset as below
MEMBERSET [d/ZACCOUNT_TEST]="SALARY"
MEMBERSET [d/Date]= PREVIOUS(12,"MONTH",TODAY()) TO PREVIOUS(1,"MONTH",TODAY())
DATA([d/ZACCOUNT_TEST]="SALARYPREV12",[d/Date]="202401")=RESULTLOOKUP()
I am just writing the sum to 202401. This will be dynamic based on current date and hence current month.
Br.
Nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
10 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.