on 07-18-2016 6:33 PM
Hi Experts,
Greetings for the day...!!
I am new to HANA studio and working on a assignment in my project.
My requirement is to find the difference between the "user keyed date" & "posting date(BUDAT)".
We have function to find the difference between 2 dates. But, in my case one of the date is user entry(can be any user date choice) and is not available in my calculated columns to find the difference.
I am working on graphical calculation view.
Any inputs on how to achieve my requirement.
Looking forward your valuable inputs.
Regards,
Ragha
Thanks a lot for the quick responses.
I have created a user parameter with type: DATE and applied below function. But, i was getting type error. I further checked with BUDAT type and it is NVARCHAR:8.
So, I corrected userkeyparameter type to NVARCHAR:8.
But, still i am getting below error. Can you let me know if I am missing anything here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Florian/All,
Unfortunately it is also giving the error.
daysbetween('$$KEY_DATE$$', date("BUDAT"))
Below is input parameter property screen.
Any detailed comments on this please...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Florian,
Yes, it is working for me too.
It solved my one issue.
Another issue , i need to find the oldest BUDAT for each PO and it can repeat the same BUDAT(i.e. oldest date compared to all the PO dates) for that entire PO rows.
Again this to be done in graphical only.
any expert comments on this Florian.
Thanks is advance.
Hello Ragha,
is it an option for you to pass your "user key date" as input parameter to the graphical calculation view? With that you are able to use the available date functions, like "daysbetween" to calculate a difference. The function of course dependends on that what difference you wanna calculate.
Regards,
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
You can create an input parameter and use it in the calculated column expression editor to find the difference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.