Hi.
As you know, we can use direct connection between Webi and HANA in BI 4.2.
Also use hierarchy function in Webi.
I'm testing to obtain the value of last year on the hierarchy as below.
TIME_HIERARCHY | amount this year | amount last year |
---|---|---|
- 2012 | 780 | |
201201 | 10 | |
201202 | 20 | |
201203 | 30 | |
~ | ||
201212 | 120 | |
- 2013 | 2220 | 780 |
201301 | 130 | 10 |
201302 | 140 | 20 |
201303 | 150 | 30 |
~ | ~ | ~ |
201312 | 240 | 120 |
- 2014 | 3360 | 2220 |
201401 | 250 | 130 |
201402 | 260 | 140 |
201403 | 270 | 150 |
~ | ~ | ~ |
201404 | 360 | 240 |
+ 2015 | 5100 | 3360 |
+ 2016 | 6540 | 5100 |
I've tested the functions "Lag", "RelativeValue".
RelativeValue function : Failed
The value is disappeared when relative value is in closed tree
For example, when 2013 tree close, 2014' month value are disappeared.
Lag Function : Failed
The function does not allow sign "-".
for example
=Max([amount];{[TIME_HIERARCHY].lag(-1)})
SAP help guide said,
=====================================================================================
member member.Lag(distance)
Set
Parameter | Description | Type | Required |
---|---|---|---|
member | Any member | member | Yes |
distance | The distance of the member from the current member | int | Yes |
- Lag is not used as a standalone function. It is used in the input parameter in aggregate functions that specifies the member set for aggregation.
- If distance is positive, Lag returns the member distance places after member. If distance is negative, Lag returns the member distance places before member.
- member is the current member of a hierarchy. When the hierarchy is not in the context of the block, the formula returns an empty value.
- Lag uses the member order in the hierarchy and query to return the related member.
=====================================================================================
Who has an idea to obtain last year/month value in the Webi hierarchy table like the grid?
(Years are changable depending on input parameter of HANA.)