Dear community,
I need to perform a Data Action on SAC using advanced formulas. I have the following model:
DIMENSION
MEASURE
‘Billing Date’ (Day granularity), ‘Payment day’ (integer) ‘Plan Date’ (Day granularity set to 0000)
I need to calculate the Plan date as follows:
Plan Date = Billing Date + Payment Day
I tried the NEXT formula, but without success. How can I achieve this desired result?
Thanks
SAP Analytics Cloud
Request clarification before answering.
Hi @andreag412 ,
you can try the below to generate the required data using data action. I am assuming the requirement is to copy the amount from billing date to payment date using the payment day measure and initial data is saved with no payment date.
Try using the below script to achieve the desired result.
INTEGER @DATE
FOREACH [d/Billing_Date]
@DATE = RESULTLOOKUP([d/Measures]="Paymnet_Day",[d/Payment_Date]="2026-01-01",[d/Audit]="Old")
DATA([d/Measures] = "Amount",[d/Payment_Date] = NEXT(@DATE,"DAY",[d/Billing_Date]),[d/Audit]="New") = RESULTLOOKUP([d/Measures]="Amount")
ENDFORBEFORE
AFTER
Thanks
Shivam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.