Calculation Of Maximum for the infoobject.
Hi all,
I have requirement in the Bex Query designer as
5 Columns as below 1 Row
No of open cases Current Assigne.
No of closed cases.
Avg age of open cases
Avg age of closed cases
Max age of closed cases
Please help to design query for above scenerio.
My Data target consists of following chars & key figures.
Keyfigures
No of cases
Age(today-created date)
chars
Under Business Partner Dimension I have following Infoobjects.
Ac Manager
Current Assigne
Under Status Dimension I have following Infoobjects.
Latest case Status(In this status are there new open closed).
last change
closed reason code.
Similarly I have another Dimesnsions like
created on date(created on cal day, created on cal week infoobjects)
closed on date(closed on cal day, closed on cal week).
Please help me how to design for the above requirement.
Thanks = points.
Hi,
Just do this
1)No of open cases Current Assigne
Make a RKF on No of cases and restrict it with "closed on date" = #
Will give the cases which are not closed.
And then make a calculated key figure on this RKF with the function COUNT()
which is present in the data functions and is the first option.
it will count all the values which are open.
2)No of closed cases.
Make a RKF on No of cases and restrict it with "closed on date" != #
Will give the cases which are closed.
And then make a calculated key figure on this RKF with the function COUNT()
which is present in the data functions and is the first option.
it will count all the values which are closed.
3)Avg age of open cases:
This you can acheive by putting the RKF in step 1 and in properties put Calculate result as "Average".
4)Avg age of closed cases:
This you can acheive by putting the RKF in step 2 and in properties put Calculate result as "Average".
5)Max age of closed cases:
Make two formula variable with the type replacement path each and then in the characteristic option which you get when creating the formula variable give the respective dates one for each of them.
For this make a formula and subtract these tow formulas variable. calculation "created on date - closed on date".
Hope it help
Thanks
Similar Messages
-
Hi All,
I have a scenario like this :
Look into the follwing Data.
PLANT | RUNDATE| WORK_CENTER| SHIFT| PRODUCT_TYPE| ALLOWED_TIME| LINEHOUR1
1010--10/01/2007D0001A400--
0.114
1010--10/01/2007D0001B500--
0.142
1010--10/01/2007D0001C100--
0.028
1010--10/01/2007D0001D1100--
0.314
1010--10/01/2007D0001E600--
0.171
1010--10/01/2007D0001F800--
0.228
TOTAL ALLOWED_TIEM------ 3500
1010--10/01/2007D0011A1400--
0.334
1010--10/01/2007D0011B500--
0.142
1010--10/01/2007D0011C100--
0.028
1010--10/01/2007D0011D1100--
0.314
1010--10/01/2007D0011E600--
0.171
1010--10/01/2007D0011F800--
0.228
TOTAL ALLOWED_TIEM------ 4500
I have to calculate the Production Line Hours, based on the following calculation.
Now i have to input the value in the INFOOBJECT LINEHOUR1 based on the following calculation.
400 / 3500 = 0.114 (ALLOWED_TIME of every line item has to be divided with TOTAL ALLOWED_TIME)
500 / 3500 = 0.142
100 / 3500 = 0.028
1100 / 3500 = 0.314
.........so on
The workcenter is different is two blocks of example data, and hence to be calculated differently.
Now how to achive this,
I appriciate your insite on this problem.
Regards
Shaan.Hi Philips,
Thanks for your response.
I want to make you more clear about the problem.
We are calculating based on the following combinations.
PLANT--RUNDATE-WORKCENTER-SHIFT-----PRODUCTTYPE
We have three different Plants.
Rundate is assume as the Calday.
We have 18 Workcenters.
Each Workcenter can have 3 shifts maximum.
And in every sift there would be 3 to 4 product types produced.
So what i mean to let you know is, the calculation is not based on WORKCENTER, where as it is based on all the five(5)
characteristics combination.
The total allowed time will be calculated based on PLANT......RUNDATE......WORKCENTER....SHIFT.
We normally calculate the linehour with the below formula...
(ALLOWED TIME/ TOTAL ALLOWED TIME) * (SHIFTTIME - DOWN TIME - BREAK TIME).
So i have all the information in the line item level except the TOTAL ALLOWED TIME.
Now i want to insert a new column in the CUBE and wanted to have the TOTAL ALLOWED TIME in every line item,
might not seem to be a good idea, but just let me know how to do it.
If it is not clear, you can ask me for further questions.
THANK YOU PHILIPS.
Regards
Shaan -
APEX 4.0 Report Query column limitation, 43 column maximum for the result!
Hi there,
I'm trying to generate report from Apex 4.0.1, but I got stucked with column limitation when I'm executing the report query.
Case:
Environment: oracle 11g, apex 4.0.1, oracle BI 11, windows xp
Table: My test table is quite simple, by creating a sample table with 44 columns, the column name is random, i.e. column1..column44, column data type is varchar2 (20)
report query:my report query is also simple, by "select * from testtable"
Data: no data in my sample table
Error: then I'll get the error: "HelpORA-06502: PL/SQL: numeric or value error: character string buffer too small"
solution: If I shrink the table column from 44 to 43, then the report can be generated to xls, pdf, etc.
Question: Is there any column limitation for Apex report query? I know there's a 32k row size limitation for varchar, but since there's no single data in my table, it shouldn't be the case.
Does anybody get this issue before? Thanks for any generous input!! :)
Horatiohi marko,
Thanks for the reply, but i can't find the 45 column limitation from report query and report printing. any clue for this call?
Regards
Horatio -
Calculating Average stock for the given period
Hi,
I need to calculate the average stock based on given date range given by user.
Total stock is also calculating in report only. So it wil get divide by differnce between the date range.
How can we do that?Using formula variable you can find difference between 2 dates .
-create two formula variables for 2 dates .
-create a formula to differenciate them
-create formula variable and divide that by stock it will give the average stock ..
some example ..
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30f15839-0cf1-2b10-c6a7-ebe68cc87cdc?quicklink=index&overridelayout=true
Ravi -
Tax not calculated in MIRO for the condition type JVCD
Hi,
We made some new different tax code and attached with JVCD , its calculating in PO but in MIRO calculation part not done but for other condition type ,JVRD,JVRN system calculating well...
Please tell me some way why not system calculating in case of JVCD and JVCN for capital case..
Thanks in Advance,
DharmveerHi,
We totally agreed with you and already we checked our configuration part is OK.Actually we want to map some process where we captured excise in GR but no need to take credit i.e. to post the excise in J1IEX,so we do not have to post our cenvat/modvat entry in MIRO but we need to calculate VAT whether it is deductible or non deductible.So far this thing is concerned,we made separate tax code which we use at time of MIRO posting and in configuration we did not attached the tax code in logitics-basic excise -assign to company code. Because once we attached here , system asking to make to pass furst RG part2 entry then it allows to post MIRO entry which we do not want .So please understand this scenario is different and we got the success for JVRN/JVRD for VAT but getting issue in case of capital VAT where system does not calculate tax for JVCN/JVCD .....where we want to process MIRO without posting J1IEX..
Please thing and analyse ..give some helping response..
Thanks,
Dharmveer -
Is there a maximum for the classes in a package
I have strange problem
I have a project that have the data model in jar and it runs successfully
I tried to decompile the jar pacakge by package
the application still run tell i decompiled a package that have large number of classes 170 + 170 hibernate mapping file
then the application compile but not running and stop responding
i use jdeveloper 10.2.2.0 build 1929 and i cannot change to last versionThere is no such limitation.
You can't expect a decompiled java application to run as the original.
You should try to get hold of the java source instead of decompile some jars.
Timo -
Input help takes longer times for the planning var in Portal
Hi Gurus,
I had a planning report with planning function copy historic demand and some planning filters forecast analysis ID.When i'm executing the report in portal by providing the direct values to forecast analysis ID,but when i press F4 button the screen keep on refreshing.
Regards,
rambabuDear Rambabu
Have you maintained the selection criteria for the infoobject as Posted values or from master data, it will depend on this how fast the selection retrieves
Regards
Gajesh -
Depreciation to be calculated from NBV of the first year
Hi,
Regarding the depreciation calculation, we have calculated 8.334% for the year 2007 and it was posted.(straight line method) Useful life we maintained as 8 years in that particular asset class.
In 2008 depreciation % changed as 12.5% and also posted all the periods. Now as per audit requirement system want to calculate 2007 NBV(acquisation value Less 2007 depreciation) divided into 7 years. that will be the depreciation for the year 2008,2009 upto 2014.
Is it possible to achieve this.
govind.Hi,
In mulilevel method define base value as 24 and tick the check box "Rem.life " and assign this multilevel method to your dep key.
Hope you will be able to fix your issue.
With best wishes
Monoj -
I have a simple column chart grouping on 1 value on the category axis. For simplicity's sake, we are plotting $ amounts grouping by Month on the category axis. I right click on the data series and choose "Add calculated series...". I choose moving average. I want to move the average over at least 2 periods.
When I run the report, I get the error "Formula error - there are not enough data points for the period". The way the report is, I never have a guaranteed number of categories (there could be one or there could be 5). When there is 2 or more, the chart renders fine, however, when there is only 1 value, instead of suppressing the moving average line, I get that error and the chart shows nothing.
I don't think this is entirely acceptable for our end users. At a minimum, I would think the moving average line would be suppressed instead of hiding the entire chart. Does anyone know of any workarounds or do I have to enter another ms. connect bug/design consideration.
Thank you,
DanI was having the same error while trying to plot a moving average across 7 days. The work around I found was rather simple.
If you right click your report in the solution explorer and select "View Code" it will give you the underlying XML of the report. Find the entry for the value of your calculated series and enter a formula to dynamically create your periods.
<ChartFormulaParameter Name="Period">
<Value>=IIf(Count(Fields!Calls.Value) >= 7 ,7, (Count(Fields!Calls.Value)))</Value>
</ChartFormulaParameter>
What I'm doing here is getting the row count of records returned in the chart. If the returned rows are greater than or equal to 7 (The amount of days I want the average) it will set the points to 7. If not, it will set the number to the amount of returned rows. So far this has worked great. I'm probably going to add more code to handle no records returned although in my case that shouldn't happen but, you never know.
A side note:
If you open the calculated series properties in the designer, you will notice the number of periods is set to "0". If you change this it will overwrite your custom formula in the XML. -
Using a "Posting Key" relevant for the calculation of sales
Hi All,
if I make a posting by F-02 using a "Posting Key" relevant for the calculation of sales, I wonder: in which table SAP registers the data of sales?
Is there the way to modify the relevance for sales of that posting?
ThanksHi
As far I know, sales figures are getting updated in the following summary tables:
KCN1 for Customer related.
LFC1 For Vendor realted.
Regards -
I am using Numbers on my iPhone5 and cannot get the app to do a simple (SUM) calculation. It shows the formula correctly in the cell, but all I get for my long list of numbers to add is 0. How can I get this to work?
Oaky, at least we got that far. Next step is to determine if all those "numbers" are really numbers. Changing the format to "number" doesn't necessarily change the string to a number. The string has to be in the form of a number. Some may appear to you and me as numbers but will not turn into "numbers" when you change the formatting from Text to Number. Unless you've manually formatted the cells to be right justified, one way to tell if it is text or a number is the justification. Text will be justified to the left, numbers will be justified to the right.
Here are some that will remain as strings:
+123
123 with a space after it.
.123 -
Hello,
We need some help with an SSAS MDX query based on date logic. One of the problems is that I don't have access to the Cube but have been given a query example with the logic needed for the calculation. Here's the scenario;
The ETL process will run on the first Tuesday after the 15<sup>th</sup> of a given month. The Analysis Cube data queried should include the current year up to the end of the previous month. For example, on May 19<sup>th</sup>
(the first Tuesday on or after the 15th) the query should include data from January 1<sup>st</sup> through April 30<sup>th</sup>.
The 15<sup>th</sup> of the month is not part of the query, it is a factor in when the query is run. The query will always be in terms of complete months.
SELECT
NON EMPTY { [Measures].[Revenue Amount],
[Measures].[Utilization],
[Measures].[AVG Revenue Rate],
[Measures].[Actual Hours] }
ON
COLUMNS,
NON EMPTY { ([dimConsultant].[User Id TT].[User Id TT].ALLMEMBERS * [dimConsultant].[Full Name].[Full Name].ALLMEMBERS * [dimConsultant].[Employee
Type].[Employee Type].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION,
MEMBER_UNIQUE_NAME
ON
ROWS
FROM
( SELECT
( { [dimDate].[Week Date].[1/4/2015], [dimDate].[Week Date].[1/11/2015], [dimDate].[Week Date].[1/18/2015], [dimDate].[Week Date].[1/25/2015], [dimDate].[Week Date].[2/1/2015] } )
ON
COLUMNS
FROM
( SELECT
( { [dimIsBillable].[Is Billable].&[True] } )
ON
COLUMNS
FROM
[SSASRBA]
WHERE
( [dimIsBillable].[Is Billable].&[True], [dimDate].[Week Date].CurrentMember ) CELL PROPERTIES VALUE,
BACK_COLOR,
FORE_COLOR,
FORMATTED_VALUE,
FORMAT_STRING,
FONT_NAME,
FONT_SIZE,
FONT_FLAGSHi Hans,
Thank you for your question.
I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
Thank you for your understanding and support.
Regards,
Simon Hou
TechNet Community Support -
Is there a maximum program size for the AWM GUI?
Is there a maximum program size for the AWM GUI?
I have a program that I migrated from Oracle Exress to Oracle 9i. The program runs fine, but I get buffer errors whenever I edit it with the Analytic Workspace Manager GUI. Only my longest program has this problem.
Has anyone seen this before? Is there a fix/workaround?
Thank you,
JamesThis problem is solved with the 10.0.0.1.0 AWM client, which is on the 10G CD.
James -
What's the maximum digital I/O frequency for the NI LabVIEW RIO Evaluation Kit ?
Hi!
I'm trying to analyze some sort of sine signal at the frequency of about 3 MHz. Because the analysis should be very precise and fast (about 10 samples per period), I'm needing the maximum digital I/O frequency of the NI LabVIEW RIO Evaluation Kit.
Regards,
ErikDracyon,
Can you please clarify a couple of things: you say you are trying to acquire a sine wave that has a frequency of 3 MHz, but you are asking for the maximum DIO frequency. I believe what you need to know is the maximum analog sampling frequency. For the sbRIO-9636 (part of the evaluation kit), the maximum aggregate sampling frequency is 200 kS/s at 16 bits of resolution. At 10 samples per period, you could sample a ~20k analog signal. If you are actually looking for maximum DIO frequency, this is a bit more complicated. We have a good whitepaper explaining this.
Best,
Tannerite
National Instruments -
Text for the compounded infoobject not displayed in BeX
Dear All,
I have two infoobjects 'Action' and 'Action Reason'. 'Action Reason' is compounded to 'Action'. Its values are:
Action Action Reason
T3 6
Each of the infoobject has its own text table. I have displayed both of them in Bex with the option 'Key and Text' set in the properties option.
After execution, it is displayed as:
Action(key) Action(Text) Action Reason(key) Action Reason(Text)
T3 Rehire - Non Employee 6 T3/6
What is misleading is the last one -T3/6. Here it should display the corresponding text but it is not ? Can anyone tell me what should be done ? I have tried almost all the options.
Regards,
SrinivasHi
Have you tried changing the Action reason -- Display-- Text at Query properties.
Check back whether the Action reason text has enabled at Info Object level at BEx tab page.
reCheck the master data also for that info object.
Hope it helps
Maybe you are looking for
-
KDE Plasma 5 crashing at seemingly random times
I've been having this problem for a while now and so far I've been unsuccessful in trying to troubleshoot it myself. My computer will be working along fine, and then all of a sudden will freeze. No mouse pointer movement, no keyboard input, trying
-
when we purchased our mac two years ago, we set up the iCloud account. this past winter I created a new iCloud account thinking I was changing it. I now cannot access anything on the old iCloud acct and my computer hasn't been backed up either in a
-
ok i was wonderin why when i put a music video in PSPware that has a size of 33mb after i convert it the size became 127 MB (133,651,832 bytes)lol. please help PSP seems like an awesome program to use. i dont have an ipod video yet but im buyin one i
-
Creating an EDL/Project file from scratch
I have a VHS tape from years ago of a short documentary with timecode burn in. I also have the original beta tapes that are the source for this project. What I DO NOT have is an original project file. How can I go about re-creating an EDL from the VH
-
[SOLVED]can't build qnapi
Some time ago I compiled and worked. Now I can't find packages and I don't know why it can't compile. Any suggestions? [k4misiek@arch qnapi]$ LANG=C makepkg ==> Making package: qnapi 0.1.6_rc2-1 (Sat Aug 6 11:07:06 CEST 2011) ==> Checking runtime dep