on 06-23-2015 6:25 PM
Hi,
I want to capture the PO changes date into my view where as I will consider only one rows with last change date as highlighted below into my graphical calculation view .
Example
PO - item - changedate - time
1000 10 20150623 1:00:00
1000 10 20150623 2:00:00
1000 10 20150624 1:00:00
is there any option using any calculated column / expression in graphical view without Script view for getting one row.
This report is already running & using by user, just new field addition .
Regards,
Kamruz
Hi,
I think you can do with help of graphical view also. take aggregation node and put change_date as aggregated column i.e. Count change_date based on PO, Item and change_date.
For above 2 line items count will be 2 and last line item count = 1.
Filter based on count = 1 and get desired result.
BR
Sumeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
we didn't get any solution for this. SO we created one new sql script view & joined with the main view able to fetch the last record.
V1 = select the fields ROW_NUMBER() OVER ( PARTITION BY.....DESC ) AS RW FROM...
VAR_OUT = SELECT ......FROM :V1 WHERE RW = 1;
issue solved. closing this thread.
Thanks ,
Kamruz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi kamruz,
If your SAP HANA version is SP9, then you can make use RANK node available in graphical calculation View.
This works as RANK function in SQL.
Define Partition column as PO and order by columns as DATE and TIME with descending order.
Keep the thresh hold value as 1. This will give the desired result.
Regards,
Venkat N.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.