on 07-13-2017 9:07 AM
Hi Experts,
Can you please advise on how I would implement below logic in a Calculated Column in a CV?
SQL or Column doesn't matter.
CASE WHEN Customer = 2 AND (CATEGORY NOT IN ('500', '250') OR GROUP IN ('a','b')) THEN AMOUNT ELSE 0
Thanks,
DJ
Hello David,
by checking the HANA Miscellaneous Functions for modeling you should be able to solve the requirement by yourself.
A simple solution would be to use the "if" function in a calculation engine calculated column (consider that you use the right upper/lower case names of your columns).
if("Customer" = 2 and (("CATEGORY" <> '500' and "CATEGORY" <> '250') or "GROUP" = 'a' or "GROUP" = 'b')),"AMOUNT",0)
Regards,
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.