on 07-12-2016 1:49 PM
Hi All,
In transaction data ,value for field # ARBEH varies such as MIN,DAY,SEC,HR . My requirement is to create a calculated column(eg. ARBEH_HOUR) which will be always in HR . How can I write this expression ? Eg.( if ARBEH is MIN then ARBEH_HOUR should be equal to ARBEH/60 or if ARBEH is SEC then ARBEH_HOUR should be equal to ARBEH/3600 ) . Pleas let me know how can I write this logic on HANA Studio . Thanks in advance .
Best Regards,
Pranjal
Hello Pranjal,
the differentiation for the calculation can be done using the "if" or the "case" function (Miscellaneous Functions - SAP HANA Modeling Guide for SAP HANA Web Workbench - SAP Library).
But the question is, if you you have the unit information anywhere in your data record. What you described above ARBEH contains a number, either minutes, days ..., cause you are using it in the sample applications. Where is the information if e.g the 100 are days or minutes or something else?
Regards,
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
Thanks for your response . Yes, I have value field ( ARBEI) in another column. My final goal is to get value of field ARBEI always in unit ( ARBEH) of "HR" . Unit(ARBEH) varies ,sometimes mint, sec.Hr or day . As I am new to this area, could you please let me know how can I write this expression using if or case functionality . Thanking you .
User | Count |
---|---|
85 | |
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.