on 01-25-2021 4:55 PM
Hello,
I am trying to calculate a value on multiple prices, so what i mean is for e.g
0 - 10 Cost $10
11 - 20 Cost $15
21 - 30 Cost $20
So someone who has bought 15 units should be charged the first 10* $10 then 5 * $15, different bracket prices.
Someone who bought 27 units would be charged $10 for the first 10, $15 for the second 10, and lastly $20 for the remaining 7
how is that doable in SAC? Best Regards.
hello zanki,
Here is the revised version of the solution with formula applicable to your scenario.
I suggest adding KF in Account dimensions, at least 2 -
IF([Unit_Sold]>30,
(390+([Unit_Sold]-30)*20),
IF([Unit_Sold]>=21 and [Unit_Sold]<=30,
250+([Unit_Sold]-20)*20,
IF([Unit_Sold]>=0 and [Unit_Sold]<=10,
[Unit_Sold]*10,
0
)
)
)
Please note that you can not define aggregation type on KF with formula. It take the same format as of source fields.
Hope you find above information helpful, appreciate if you accept this as best answer (option available below this response). This in-turn help others searching for similar stuff.
Viewers - If you find above information helpful, feel free to up-vote.
Thanks,
Debjit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.