on 2014 Jan 30 11:29 AM
Hi
I have calculate no of days = sy-datum- last injurt date at bex .
In cube I am getting Iast injurt date at company code level. But at bex i wnat to use last injurt date. I am not using any key figures here?
example
comp code last injurt
1000 20th jan
1000 23rd jan
In bex no of days = 30th jan ( sy-date) - 23rd jan
please let me know what is best possible solution?
Hi,
Creating Condition will not help here.
Convert Last Injurt date as KF by creating a Formula Variable(Replacement Path)
You have to use Exception Aggregation as Maximum on above KF with reference char as Last Injurt Date. This will consider the latest date.
Finally create a new CKF by using 0F_ADAY Formula variable - above KF.
Regards,
Suman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Condition is only to display the required record in the report. You can toggle it to On/Off. That means it is not actually restricting the records.
But exception aggregation will get you the latest record as per your example of data. I believe you want second record and the date has to be picked from that record. That's why I feel my suggestion would work.
You can try with either Maximum or Last Value in exception aggregation. You can try all others sugestions as well.. Our ultimate goal is to provide solution to you.
Exception aggregation does not hide the record..It just changes the aggregation behavior.
Let me clarify if in your cube you have records are like this:
Comp Code Date
1001 20th jan
1001 22th jan.
In report you expect :
Comp code date
1001 22 jan
If you apply exception aggregation on the date kf with maximum or last value reference char--date.it will display the max date in result.so basically it did not hide any record.
Whereas the approach which i mentioned is apt in your case and same has been shared in the blog.
You can test on the same on the system.
Regards,
AL
Mr.Suneel,
Try with both approaches and see whether you will be able to fulfill your requirement.
If you try with condition :--
Make sure you have to keep "Last Injury Date" in Rows or in drilldown to enable the condition active. Otherwise it won't be applied. This is where I am not getting convinced as we don't know whether you can put this field in rows?? Toggling can make your report weird. Moreover conditions are not supported in BO.
What is your report layout? Can you show a excel screen shot???
If you try with Exception Aggregation :--
All my replies can be referred here.
Regards,
Suman
Moreover conditions are not supported in BO.
User has not posted anything related to BO..I do not understand how you have assumed it..If offline requirement have been shared then its a different case altogether.
If date is of type char and if we convert it with the help of replacement path then also it is mandatory to keep it in rows otherwise does not work..
Regards,
AL
Hi
in Row I am using Month and YTD
remaining columns are key figures for Month and YTD
bottom added extra 2 key figures, They want to get last injurt date at company code level, not data based on month or ytd from cube. I am not sute to use in rows or column as last in jurt date, will be possible solution like this.
calculation: sy-date-last injury date/ no of days.
please let em know how best we can achieve?
Your layout is not clear to me atleast..Please explain and rephrase the requirement in detail then we can think of the approaches possible..
Also state clearly whether this query will be used as input in BO tools or not so that we can tell what is supported there and what is not.
Hope you got my point.
Regards,
AL
I am geting
incident no Incident location Injured person injury date no of days lost
above char and kf are at bex rows and columns. at bottom excel sheet they are used calculation as last injurt date = sy-date- last injurt date. I am creating bex as input and BO is output.
1 1000 rama Jan 1st 2013 10
2 1000 jan jan 25th 2014 20
2 1000 ram Jan 25th 2014 30
3 1000 gan jan 29th 2014 40
Report I need to get last Injurt date as: Jan 29th 2014 at location level. present data location as 1000, for other location may be like 2000 I need last date . when user will execute at location level. they need to get last injurt date for each location level, then the calculations required ? please let me know still information required
Hi Suneel,
Your records are differentiated with Date field only, right? So you have to use date field only as reference char. You may refer below wonderful doc on Exception Aggregation concept. You may try with Anshu's suggestion as well.
Regards,
Suman
Why don't you try to fix this at modeling level by taking this data into dso..
Make location as keyfield and rest all as data fields.
So when you will load the data then only the last record will get update for a particular location and rest will get overwritten..Same will happen for other location as well.
Hope this makes sense.
Regards,
AL
For replacement path to work you need to keep the reference characteristic in rows otherwise it does not work and same is happening in your case as well..
So if you need to keep the date char in rows and show last value then it does not serve your purpose.
So best is to handle this at modeling level only.
Regards,
AL
Too much of speculation will confuse you. Try the suggestion and check how data is appearing. If not ok, then you can ask me..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Definitely what i suggested is going to work in your scenario.
Exception aggregation will not work as it will give the latest date in result part.
See you have Comp code and date.
Convert date char into Kf with the help of formula variable with replacement path.Link for it as well mentioned in my blog.
You can try and test both the ways.
Regards,
AL
User | Count |
---|---|
69 | |
8 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.