Formulae in Bex
I have a calculated Key Figure in a report and want to create another Calcualted KF based on this value.
If Calculated KF 1 >= 0 and <= 35
Cal KF 2 = Calculated KF 1
Else
Cal KF 2 = 9999
Please help me to acheive this in Bex
was gona write the same thing as above
Message was edited by: Farhan Bhaba
Message was edited by: Farhan Bhaba
Similar Messages
-
Local formulaes of BEX (BW 3.5, SP 14) in bo xi 3.1 sp2
Hello experts,
I have a question llike can the BEX local formuales and selection support BO XI 3.1 sp2 when the BW system is on 3.5 and SP 14. I heard that we need to apply a note in order to support that. could any one please lemme know abt this issue.
Thanks
PrashanthHi,
the supported versions and platforms can be checked on http://service.sap.com/bosap-support
Ingo -
Setting in BEx formula for calculation of YTD and MAT
Hi,
I have to implement 2 formulae in BEx.
As I am trying to avoide ABAP coding, can anyone please suggest SETTINGS in BEx FORMULA to achieve these below mentioned 2 formulae -
1 ) Calculate YTD - Average of the sum of the reported quarter values from the start of the year until and including the selected quarter. But, if we enter Quarter 3 and there is no data for quarter 2 then the average should be equal to sum of data for Q1 and Q2 divided by 2 instead of 3 even though user entered Q3.
2) Calculate MAT - Average of the sum of the reported quarter values for the last 4 quarters. We need to check last 4 quarters. If data is present only for 3 quarters in the last four quarters then the MAT will be data for 3 quarters divided by 3.
Please suggest BEx formulae settings, if any for the above calculations.
Thanks a lot.
Regards,
PrernaHi
I am not sure requirement related YTD is possible without customer exits variable
But regarding your 2nd requirement
Calculate MAT
Create four restricted key figures by using offset (0, -1, -2, -3) and restriction characteristic will be quarter.
Create a calculated key figure "Count of Quaerter". This will consist of "Number of rows" key figure with exception aggr on the Quarter characteristic and aggr will be "Count for all not eq to 0".
Create a calculated key figure which will be sum of four restricted key figures divided by Count of Quarter.
Kindly let me know incase further details required
Best Regards
Rohit -
hi
in BI 7.0 i want to calculate 'Revenue' using formulae in Transformation like
Revenue = sale qty * unit price
where can i give the formulae whether in start routine or transfer routine.
pls give the steps.
and also i used formulae in BEx like Revenue =saleqty * unit price.
but in the result it is showing BOTH CURRENCY&UNITS like Ex: 20,000 INR KG.
SO PLS give me steps to solve it
thanks
regards
venkatHi,
Here in this case youn give a simple formula inspite of routine.If you give any routine it 'll degrate your loading and query performance.
Just creat anew info object and assign this to cube and activate it.After that go for Transformations map t he Price nad Quantity to newly created info object and double click on that new object ther you can find new window ther under "Rule Type" click the mouse here you can find the 'Formul',select that.It 'll opens a formula window ther give the formuls as price*quatity.save it and activate the transformations.
I hope this 'll help you.
assign points if this helps
Regards
JT Goud -
Report in BEx Analyzer shows Red "X" in records field
Dear Experts.
Report in BEx Analyzer us showing red "X" in the records field. Although there are figures in the field and is getting calculated in the overall result, but still the numbers donot appear.
Kindly advise how to fix this.Please detail the KF formulae here..
Any value divided by 0 is not defined.
So if formula if its using division , you must use not div by 0 function. i.e.NDIV0 function
Edited by: SKDDON on Oct 13, 2009 10:13 AM -
Local formulaes and selections in BO
Hello Experts,
I have a very complex query to be designed in bex, which is furthur used in BO. The Bex query has lot of RKF,s and CKF,s to be defined so it is reacing SAP limit of 999 elements. If i use formulaes in place of RKF;s and CKF's, can i access them in BO Xi 3.1. If so, could you let me know the process.
Thanks
PrashanthThanks ingo, you were very helpfull for me in these issues, Actually for our dashboard creation we need 24 months data with lot many calculations(if conditions and standard deviations of means). This requirement made me to create such complex query, even creating 2 queries and feeding data from these to xcelsius is also an option, but i am opting to create a single query.
The query is reaching its maximum extent because all the 24 months data and indeed RKF's
thanks
Prashanth -
Useing Excel Function NORMSINV() in BEx
Hi All,
I am having a requirement where i have to generate a Query like below.
Plant | Service Lvl | Cost | Time | Deviation
Z (Service Lvl) = Should be calculated based on FUNCTION NORMSINV(Service LVL), the service level percentage they enter in selection screen.
then use this in formula to calculate other column value i.e COST
COST = ZSQRT(Time)Deviation.
Please help me how to, solve this in BEx reporting.
Waiting for your reply.This function is available only in MS excel and it is possible for you to make use of this in BEx Analyzer.
You can implementthis kind of functionality/requirement only in customer exit. that is SAPBExonRefresh function.
But you cant use this feature as Calculated key figure.
What can be done:-
In column M, assume you are displaying some results...
now in column O, you define some formulaes(depends on row M)These formulaes are defined in SAPBExonRefresh subroutine.
Regards,
Vinay -
Bex error: max members..
hello experts,
We have a very complex query to be designed in bex, i have lot of standard deviation calculations to be done. But when i excute the query it popees up an error "check_max_memmers-01-". I cannot able to restrict my KF,s because i need to access this query in BO. SO i cannot create local formulaes. is there any chance to increase elements in sap. please help me in this regards
thanks
prashanthHi
Check the following notes
Note 795990 - x299 Brain in SAPLRRI2; Form CHECK_MAX_MEMMERS-01-
Note 559116 - Error using restricted key figures in calculated key figures
As per the above notes there is no way if the limit mentioned in the notes is already reached .
Thanks..
Sonal.... -
Hi,
I am trying to develop formulaes on my OLAP universe from sap bex query , i did search and found few links, just wondering if any one have updated material on this , how to use MDX to write the req logic, also what kind of dimensons and measures it supports using logical conditions like IF, DATE, Arthematic .
Any help is appreciated.
ThanksHi,
take a look here:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0a45246-ce76-2b10-e688-f5c8206203eb
ingo -
Getting a percentage on cumulative values in Bex Query
We have a Bex Query where we have 4 columns. For the actual and projected attendence, I'm displaying cumulative values and a percentage. I want the percentage to be based on the cumulative values, but it's giving it to me based on the actual values (what's coming in, not what's being displayed). How do I get it to do the calculation on the displayed values?
This is the actual data coming through:
Month/yr____actl att___________ proj att
01/2005_____10________________10
02/2005_____10________________10
03/2005_____10 ________________20
What I'm getting now:
Month/yr_____cumulative actl att_____cumulative proj att_____percentage
01/2005_____10____________________20_________________50%
02/2005_____ 20 ___________________30________________100%
03/2005 _____30 ___________________50_________________50%
What I want is:
Month/yr_____cumulative actl att_____cumulative proj att_____percentage
01/2005_____ 10 _____________________20_______________50%
02/2005______20_____________________30_______________66.67%
03/2005______30_____________________50_______________60%Julie,
The OLAp processor in BI cannot take cumulated values - that is - once you cumulate your values - the cumulated values cannot be used further in BeX formulae - even if you use them the actual values will be used.
Month/yr____actl att___________ proj att
01/2005_____10________________10
02/2005_____10________________10
03/2005_____10 ________________20
What I'm getting now:
Month/yr_____cumulative actl att_____cumulative proj att_____percentage
01/2005_____10____________________20_________________50%
02/2005_____ 20 ___________________30________________100%
03/2005 _____30 ___________________50_________________50%
What I want is:
Month/yr_____cumulative actl att_____cumulative proj att_____percentage
01/2005_____ 10 _____________________20_______________50%
02/2005______20_____________________30_______________66.67%
03/2005______30_____________________50_______________60%
This would mean you will not get the desired output - the only way to do that is to use local macros / formulae in the workbook.
Arun
Hope it helps... -
WebElements: HTML not rendering when using Bex Query as Source
Hi all,
Has anyone managed to use the WebElements when creating a report on a BW source (BEx) query. I have used WebElements quite a lot on non-SAP sources and works like a charm. Now I would like to use it on a SAP environment, but the controls are not displaying, only the HTML text.
Can anyone provide some insight to whether the WebElements are compatible on a SAP environment in Crystal or s there something special that needs to be done here.
Thanks
JacquesDear Jamie & Jacques,
Is there any news regarding this issue? I'm having the same issue here. I'm using BW datasource. My BOE, Crystal Report 2008, and Integration Kit are all on SP3 (with no FP applied yet).
All the WebElements components are shown as HTML tag.
But actually when i tried to remove the Datasource, the WebElements also don't show up. I've followed up all the instructions on the WebElements guide, and on the SDN link below.
I added WECalculator and WEBuilder using formula syntax below to the report. But they only show up as HTML tag.
Formula @calc (component WECalculator)
WECalculator ("number", "0", "Integer", "Enter an Integer value.")
Formula @builder (component WEBuilder)
stringvar allelements:= {@calc};
WEBuilder(allelements, 1)
I've done everything as per the guide and SDN link below:
browser interpretation
[Interpreting WebElements in the browser;
1) ensure that Can Grow is not checked on for the formulae that contain any webelements.
done
2) ensure that the formula in the designer is only 1 line in height...these 2 are required to make pass through html work in the viewers
done, i insert the 2 formulas to report and it appears as 1 single line.
3) the web server should be restarted after making the change to the web.xml file
done
if the above don't work please provide some more info such as
a) which version of business objects enterprise you are using
BOE, Crystal Report, and Integration Kit all on SP3. Below are the installation files i used (downloaded from SAP Service Marketplace).
Server
1. BusinessObjects Enterprise XI 3.1 SP3 (ENTERPRISE03_0-10007443.EXE)
2. SAP BusinessObjects Integration XI 3.1 SP3, version for SAP solutions (BOBJINTGRSAP03_0-51038935.ZIP) u2013 Server installation
Client
1. SAP BusinessObjects Integration XI 3.1 SP3, version for SAP solutions (BOBJINTGRSAP03_0-51038935.ZIP) u2013 Client installation
2. Crystal Report 2008 v1 (SP3) Win Server on IA32 32bit Full Build (51038906.ZIP)
b) what viewer are you using
I ran the rpt file (saved without using .rpt extension) through InfoView.
c) does the select menu show up in the crystal reports designer html preview mode
It only shows up as HTML tag as well in the Crystal Report designer HTML preview mode.
Please help me.
Kind regards,
aswin -
IF and ABS condition statement in BEX query designer
Hi,
I would like to ask the best way for me to produce an acceptable result from Excel IF and ABS Condition statement.
The condition statement that I have on my Excel file is
=IF((A2-B2)>0,ABS(A2-B2),0)
I'm trying multiple times to reproduce this in BEX Query designer, unfortunately I'm getting a bad result or unacceptable formula.
Anyone who could help me with my issue?
Thanks,
ArnoldHi Arnold,
Thank you,
Nanda -
Inconsistency between Bex and Back end
Hello, I have a query about bex issue. I have few fields in my DSO/Cube which has data showing correctly in the back end but in Bex it shows partial of those values. like if i have something like this:
ZField
000000000000000000008
It shows correct in DSO table but in Bex it only shows the zeros. do you know why and how to get this to show the whole field value?
Thanks.
By the way this is a characteristic and not keyfigure.Hi Vekant,
If you have not did any speecific thing at query level then value should be shown correctly.
Please try this once and check.
Create new test query on your data target drag and droup your charecteristic.please execute your test query and see if you are able to see the correct value.
try this.
Regards,
Ganesh Bothe -
Error while trying to Open and Delete a BEx Query in Query Designer.
Hi Experts,
I have been facing this issue with BEx Query in Designer mode for a couple of days now in Development Environment in BI 7.0.
I would like to Delete an unwanted BEx Query because I need to give it's name to another BEx Query.
Whenever I try to Open this Query in BEx Query Designer to Delete, it gives out an error saying:
"An error occurred while communicating with the BI server.
As a result of this error, the system has been
disconnected from the BI server.
Detailed Description:
STOP: Program error is class SAPMSSY1 method : UNCAUGHT_EXCEPTION
STOP: System eror in program CL_RSR and form GET_CHANMID-01 - (see long text)"
Details text is as below:
Diagnosis
This internal error is an intended termination resulting from a program state that is not permitted.
Procedure
Analyze the situation and inform SAP.
If the termination occurred when you executed a query or Web template, or during interaction in the planning modeler, and if you can reproduce this termination, record a trace (transaction RSTT).
For more information about recording a trace, see the documentation for the trace tool environment as well as SAP Note 899572.
I have tried with SAP Note 899572, but still it's the same.
Has anyone faced similar issue? Could you please let me know if you have better ideas or solution?
Your time is much appreciated.
Thanks,
ChanduArun - Thanks a million. You saved me Nine. It worked.
Could you also please tell me how to rename (Technical) a Query or is it still "Save the Query As" the only way...?
Points already assigned.
Thanks,
Chandu -
Report performance while creating report on BEx
All all!
I am creating a report on BOE 4.0 on top of BEx connection as a source. I have developed reports on top of universe in the past and i know that if we keep calculations on reporting end it hampers the report performance. Is this the same case with BEx? if we are following the best practices is it ok to say that we should keep all heavy calculations/ aggregation on BEx or backend for better report performance.
Can you guys please provide your opinion based on your experiance and knowledge. Any feedbacks will help! Thanks.Hi,
Definitely best-practice to delegate a maximum of CKF to the Cube where possilble, put RKF in the BEx query, and Filters too.
also, add Default Values to your Variables (this will speed up generation of the bics transient universe)
also, since Patch2.10, we are seeing some significant performance improvements reducing 'document initialization' and 'time to prompts' by up to 50% (step such as these often took 1.5 minutes, even on sized systems)
Also, make sure you have BW corrections like this implemented: 1593802 Performance optimization when loading query views
In the BusinessObjects landscape - especially with BI 4.0 - it's all about Sizing and Tuning . Here is your bible the 'sizing companion' guide : http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000738725&_OBJECT=011000358700000307202011E
Pay particular attention to BICSChunkSize registry settings
Also, the -Xmx JVM Heap Size for the Adaptive Processing Server that is running the DSL_Bridge service.
Regards,
H
Maybe you are looking for
-
Remove password of rom in bios
Hi - Can you help me how to access my hp mini without typing password in rom Bios. Every single time I turn it on, i have to type password e9lo7gq79g. There is any way I can remove or chage it to the password that I would like to have. Thanks
-
RADIUS Server on Mac OS X Server 10.5 Leopard
I must set up a Radius Server on my LAN and WLAN, I will do this with Mac OS X Server v.10.5 Leopard but I don't know if it's compatible with any routers(for LAN and WLAN Access) and with Windows XP Pro SP3 computers. Can anyone help me????
-
HT1495 How can transfer a application from one iphone to another iphone?
How can transfer a application from one iphone to another iphone?
-
JCO - Model Data Destination connection is broken from time to time
Hi, SDN Fellows. I have set up both JCO Modeldata Destination and RFC Metadata Destination. For Modeldata Destination, I set up as Message Server. JCo Pool Configuration Maximal Pool Size : 5 Maximum Connections: 10 Connection Timeout (msec.): 10
-
Does CS6 or Elements 11 camera raw plug-in support the panasonic raw file format rw2
Hi- I am thinking of upgrading to either one of these products as my current versions do not appear to support the panasonic raw file format rw2 but would like to know if the latest versions do support this format before I buy.