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...
Similar Messages
-
Results based on From and To value in Bex query designer.
Dear all,
We are using BI7.00. In one of our report which pertains to PM user wants to get the details of number of breakdowns which falls in the value range 0 to 1 hours.
I created a condition which has 2 variables, one is From value and the other is for the To value (since user wants to enter both the limits). I have written a condition that if the breakdown hour is greater than or equal to variable1 and less than or equal to variable2.
Using the above condition if the query is run, i am not getting the desired output. The values avaialble in the report are 0.65,0.78,1.30,7.38,0 etc., when i give 0 to 1 i should get the values 0.65,0.78 and 0 but instead report displays "No valid results".
I changed the condition and selected "Between" variable 1 and variable 2 - yet no change in the query.
To my knowledge i foresee that system is not able to recognize the decimal and hence provides details only based on the whole numbers.
How to get my requirement achieved in the Bex query designer.
Experts suggestion with steps will be very useful to solve my problem.
Regards,
M.M
Edited by: Magesh Magesh on Dec 26, 2008 11:28 AMHi Magesh,
I think you could try one more way.
Create a formula inserting your two formula variables for limits .(FV - are ready for input ) .
The formula would return the result as 1 or 0 because it would have boolean condition in it.
You could then place a condition in the query designer to only show all records where the value of the formula key fig is 1.
You formula A would look like
( KF > FV1) AND (KF < FV2) * 1.
And in the condition put A EQ 1.
You could scale the key figures as well and multiply the limits mentioned by the users in FV1 and FV2 if decimals are still not recognized by SAP.(scaling)
Regards,
Sunmit. -
Issue with Cumulative Value in BW Query
Hi
Here am trying to calculate a percentage over the two key figures which has the cumulative check in Calculation
but in result the percentage is appearing with non-cumulative values though am selecting the cumulative kf in formula.
find below the example :
C-OQTY --> Cumulative Ord Qty -- This is based on OQTY wherein the properties under Calculation i haved the Cumulated
C-TOQTY-->Cumulative Total Ord Qty --This is based on TOQTY wherein the properties under Calculation i haved the Cumulated
OQTY--> Order Qty
TOQTY--> Total Order Qty
C-OQTY/C-TOQTY *100
Calendar Day C-OQTY C-TOQTY OQTY TOQTY %
2008.02.01 115 115 115 115 100.00
2008.02.02 115 197 82
2008.02.04 158 381 43 184 23.37
2008.02.05 287 596 129 215 60.00
As you all can see that the % is showing the value as OQTY/TOQTY*100 Instead of C-OQTY/C-TOQTY *100
Need help
Thanks in Advance
Cheers
TaherThanks for your quick replay,
well am using "Use standard Aggregation" could you pls give me little more details abt before Before aggregation concept..
which option to choose in aggregaion..
Cheers
Taher -
How to pass parameter values to Bex query through xcelsius (LO or QWAAS)
Hi,
I have prompt in Bex query and want to pass values to query prompt through xcelsius .
In xcelsius i have selection
e.g 1] Combo selection is for Vendor
2] Combo selection is for Fiscal Year
If i select value from Combo list and refresh the dashboard im getting below error
A database error occured. The database error text is: The MDX query SELECT { [Measures].[4IKKZVYWWD3XKQK7Z1BK34VTL], [Measures].[4IKKZVJJUFWIJHHBND6VJ0YE1], [Measures].[4IKKZV46SIP3I8EFBP26YX0YH], [Measures].[4IKKZUOTQLHOGZBJ00XIET3IX] } ON COLUMNS , NON EMPTY [0CREDITOR].[LEVEL01].MEMBERS ON ROWS FROM [0FIAP_O03/ZFIAP_O03_UNIVERSE] SAP VARIABLES [VN_VAR] INCLUDING A00140 [0S_FYEAR] INCLUDING V3/2010 : V3/2010 failed to execute with the error Unknown error. (WIS 10901)
I have tried using LO and QWAAS but not able to do so......
if any one knows plz help....Hi,
most likely yo are passing the wrong value.
you need to send the key or the member unique name.
Ingo -
RRI? How to call ITS URL and pass field value from Bex Query.
I am doing RRI from query to webaddress,
i have defined jump(report type: webaddress and reicver report as url) from shopping cart bex query(SRM ) to webaddres.
here url is SRM ITS base link for monitoring shoppingcart(http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN).
jump is working from portal(from bex query ivew).
but i want to pass value(shopping cart value) to above url and want to skip first screen.
i have maintained assignment detail by assigning field name against shopping cart infoobject with type url parameter, but its not directly call reciver url with given input field.
i tried the diffrent combination of url and field assignment as like below:
1: web address url:http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN
assigned field: GS_HEADER-OBJECT_ID
but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN?GS_HEADER-OBJECT_ID='selected number value'
2: web address url:http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc
assigned field: flNUQVRFPTgzMTcuMDAyLjAxLjAx
but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc?flNUQVRFPTgzMTcuMDAyLjAxLjAx='selected number value'
I have seen the source code of that url(inital screen and after entring the value to that screen) too.
how to call webadress(SRM ITS base shopping cart URL) with passing the one of field value of that url screen?
Thanks and regards,
Dushyant.Declare the gv_orderid in modulepool program.
And Declare the parameter as import parameter in smartform.
CALL FUNCTION lv_form
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
i_input = gv_orderid
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5 -
Keyfigure has value in BEx query, but shows zero/0 in Webi
Hi community,
I have the following issue with a Bex query with 2 structures:
in Bex, the budget column shows figures right. but in Webi, it shows zero for certain profit KPIs (calc. keyfigures, CKFs).
only for these KPI cells, it is not a general issue with that budget column!
in the Bex cell editor, I have created cell references for these profit KPI cells, but that should not be relevant.
As SAP cannot connect to our BO Webi via OSS properly, I would like to address you.
anyone had a similar situation or solution?
every hint is appreciated! Many thanks and
best,
PhilHi Ingo
I am also currently meeting such a problem.
I have Cubic Meter stored in my cube and my BEx query. Also, in my BEx query, I have a unit conversion to convert Cubic Meter to Cubic Feet.
In WebI, when I pull out both Cubic Meter and Cubic Feet, Cubic meter returns me 0, while cubic feet returns me a figure.
Below are the settings of the BW & BOBJ system:
SAP BW SP6
BOBJ SP2 FP2.3
Hope to hear from you soon.
Thanks! -
Dynamic cumulative Value in Bex report
Hi
I need to implement the following report but meet problem,
User-input variables:
Year: (single value variable ready for input)
for instance 2005
Period: (interval variable ready for input)
for instance from 4 to 6
The report should display as follows:
Period 4 | Period 5 | Period 6Sorry, continue as follows:
For each Period there are two kfigs should display
Amount and Cumulative amount, the cumulative amount means the amount accumulated from period 1 to current period, the report should display like
Period 04 | Period 05 | Period 06
Amout ***.Amount | Amount ***.Amount | Amount ***.Amount
Normally we can enable "cumulative" flag in key figure setting, however, the cumulative function only works for the displayed columns, e.g. the ***.amount of period 05 is the sum of amount period 04 and amount period 05, but we need the sum of amount from period 01 to period 05.
I am considering the following solutions but need your suggestion:
1. Use customer-exit variable to add the selection "from period 1 to period X",here in this case "from period 1 to period 3", and calculate the ***. amout in virtual key figure, but I have no idea how to hide the column period 1 to period X in exit.
2. Define 24 predefined fixed key figures(12 columns for amount and 12 for cumulative amount), but I have no idea how to let user filter on key figure name (1KYFNM?) when executing the query.
3. Use VBA and Web Table interface to hide the columns at runtime, but I have no idea whether if it still works when user drill down the key figures to the rows.
Any suggestion is highly appreciated!!!
it's urgent!!!
Thanks in advance,
Patrick -
Sort the values in Bex query variable screen
Dear Experts,
Is it possible to sort the values of a dropdown list for variables on BEX variable selection screen ?
For example, For calender month selection, the values are by default sorted by ascending order.
Is it possible to sort by descending order ?
Regards,
ravindraHi Ravindra,
yeah it is possible by writing an abap code for the field calmonth/week...etc this is depends on the F4 help of the selection field. so you need to write a code for F4 help for making it in descending order. hope it helps.
Thanks,
Vachan -
Values In BEx Query ...
Hi Experts,
This may be a simple question but I'm stumped at the moment. Does anyone know how to get the values to repeatedly display throughout the column? I've built a report on the standard payroll cube. I'd like for the values of 0employee, dates, subgroup, etc to display all the way down for each record. Example:
Employee PayDate Gender Language Wagetype Amount
1234 1/1/04 M EN 1001 $1000.00
1002 $100.00
1003 $30.00
Instead I'd like:
Employee PayDate Gender Language Wagetype Amount
1234 1/1/04 M EN 1001 $1000.00
1234 1/1/04 M EN 1002 $100.00
1234 1/1/04 M EN 1003 $30.00
Any help would be appreciated.
Thanks,
MeezyHi Meezy.
Just go to the query properties -> display -> uncheck hide repeated key values.
Hope it helps.
BR
Stefan -
Variable with proposed value in BEX Query View
Dear SAP-Gurus,
I have a Web Application with some views on one query. In the inital screen i show the popup for entering the global variable values. Now my question; is it possible to give a global variable used filled by exit and used in these queries a proposed value, receeived by user exit?
With normal query this works, but not with a query view.
any suggestions?
kind regards.
JürgenHi,
if anyone has the same problem - you just have to set the parameter variables_clear=x in webtemplate.
same applies to bookmarks, if you want the variables to be filled by your exit.
regards
Jürgen -
How to use OFFSET for CHAR type value in Bex query
infoobject A value = 1102007
Type = CHAR
I want to have an offset for this infoobject created in query say 1 to 12 months
in month of 10/2007 value = 1102007
remember above 1 is always CONSTANT
then
in month of 11/2007 value = 1112007
in month of 12/2007 value = 1122007
how to do this since the infoobject is of TYPE- CHAR ,its gives we cannot do the OFFFSET in the query ,for doing OFFSET the infoobject must be of type numeric or NUMC.
is it possible achieve this in to update rules?? since i cannot change the type of this infoobject now in the middle of production support
please help
thanksHi,
You will have to add a characteristic to your cube.
The format should be NUMC
In the update-routine you will have to convert the char value to numc
Success
udo -
How to use cumulative Value in a formula
Hello Gurus,
I would like to use the cumulative value in a query as part of a formula calculation. I have created a KF which is assigned a constant value 1. When displaying the KF I am cumulating it so for each row I am getting 1,2,3,4...etc. How can I use this cumulated value in a formula calculation?
For example, in a column cumulative count is 1,2,3,4...etc .My requirement is ,i want to identify the record with number 36 , to do this i have created a formula with boolean Equal to function comparing with the required number, but the boolean result what am i getting is Zero instead of one(1).
The reason i found behind the problem is, the cumulative count that we see is dynamically happening during the run time for display ,but the internal value is 1 only.
Is there any other way to meet this requirement or am i missing anypoint?.
Thanks.Dear Yaseen,
To get the value in formula cumulative,after you have created the formula for that particular key figure,go to edit and click on tab "calculations".
In that select overall result as 'count all values not equal to zero' and single result as 'count all values not equal to zero' .
And mark the cumulative check box underneath.
I hope you get the desired result and please do me favour .
Sumit goomber -
Cumulative values: difference between 3.5 and 7.0
Hi everybody,
I use queries which display an Amount on month.
JAN FEB MAR APR
A1 A2 A3 A4
I modify the Key Figure property to have cumulated values
JAN FEB MAR APR
A1 A1A2 A1A2A3 A1A2A3A4
In Bex 7.0, all is right i have my cumulated values
In Bex 3.5, it doesn't work ...
i have the following result:
JAN FEB MAR APR
1 3 6 10 ...
as if i had:
JAN=>Amount=1 JAN-> 1
FEB=>Amount=2 FEB-> 1+2 =3
MAR=>Amount=3 MAR-> 123 = 6
Why this difference between 3.5 and 7 ?
I would like the right result in 3.5,
How do i proceed ?
Thanks for your help!
Rodolphe.Appararently,
On Bex 3.5 ...
I remplace for my KeyFigure:
Calculate Single Values As ...
"Counting All values" by "Nothing"
and option cumulated activated.
and it does work !!
Rodolphe. -
Sort F4 values in BEX variable screen
Hi ,
Does anyone know how to sort F4 value help in BEX variable selection screen. This query has come up time and again in SDn and there seems to be no proper reply to this. If anyone has worked on this do let me know.
Thanks,
VaishnaviHi Nara,
Kindly have a look at below thread,
Sort the values in Bex query variable screen
Hope this helps.
Regards,
Mani -
-ve values in Webi Report , Run on SAP Bex query
Hi,
I am creating WebI Report on Bex Query. some of the key figures like Net Sales, Gross Margin & Operating Profit are display as -ve values.
as they are +ve values in Bex Query.
Do i need to check any options in Bex query or Universe.
I am using Business Objects XI R2 .
Please help me.
Thanks,
Anithathis seems to be a double entry.
Ingo
Maybe you are looking for
-
How do I get more volume when watching a movie and can I use headphones?
How do I get more volume when watching a movie? And can I also use headphones?
-
I miss the emac...
I need a new computer for artwork. Something I can AFFORD! So I've been planning on getting an emac! So I come here one day and see that they took the emac off the flippin store. That's so nice sarcasm! Can you PLEASE BRING IT BACK!? The same thing h
-
Help, can not be removed
apple software updater cannot be removed
-
I have a JFileChooser that Im using to set as a save location for a file. When the JFileChooser opens the TextArea of "file name:" has got the current directory in, how do I remove this from here so it is just blank?
-
Woudl it be possible to have a feature in the Web Module to allow the user to add buttons to the generated website e.g Home, Galleries etc and allow these to be configurable as in the url and style. This would better facilitate the integration of th