on 10-07-2023 9:17 AM
Hi Experts,
The field CC_DAYS of graphical calculation view is type of integer, for example 100.
Now I want to create a new calculation column CLASS of graphical view using case with logic of
0 < CC_DAYS <= 300, CLASS = A
301 < CC_DAYS <= 600, CLASS = B
CC_DAYS > 600, CLASS = C
How to write such case statement.
Hi ding.ye,
Case is for exact matches like to process if 1 then A... if 2 then B else Z.... case(field,1,'A',2,'B','z')... So it's not for your scenario.
You can do if function:
if("CC_DAYS"<=300,'A',
if("CC_DAYS"<=600,'B',
'C'))
I wrote in 3 lines for better readability which is informant to understand the logic when you may have many conditions.
Regards, Fernando Da RósYou must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
64 | |
8 | |
7 | |
6 | |
6 | |
6 | |
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.