Sum in BEx query

Hi All,
I have Account and amount in my BEx query, Where accounts will start with X or Y or Z. user will enter any of the accounts.
In my output I want see X accounts (assumin that all accounts starting with X belongs to X group, Y belongs to Y group and so on) sum in one row and Y accounts amount sum one more row and so on...
I do not have account group in my flow and dont want to be derived in data flow based on account. Thanks
Please helpe me to achive the same .
Regards,
J B

hi,
You can define 3 RKF which is built on amount and account.
in each the account restriction will change, the restriction will be on a range such as X00001 - X99999 , Y00000 - Y999999 etc.
Now create a structure for the report and use the created RKF's to show the data in format you want to show.
regards,
Arvind.

Similar Messages

  • Difference between  aggregation and calculation tab in BEx Query Designer

    HI,
    I am using BEx Query Designer for my report, for the key figures in the coloumn area i slected one numeric key figures, in  the properties tab i found aggregation tab and calculation tab.
    I need to sum up the total values for that particualar coloumn, when i used calculation tab i found to sum all the values for a particular coloumn, then what is the use the aggreagation tab?
    I not able to used that Aggregation tab it is showing as a hidden fields...
    can any one tell me whats the exact difference between these tabs and when we need to use which tab?
    With Regards,
    Thanesh Kumar.

    Hi Thanesh Kumar,
    I moved this thread from forum Data Warehousing to Business Explorer since it is a query related question (as SDN moderator).
    I could explain to you the difference between these two tabs.
    For "calculation" tab, it changes the display of result and does not change the calculation logic.
    It means that, if this key figure is used further in formula, still the original number (without "calculation" tab setting)  is used for further formula calculation.
    For "aggregation" tab, it changes the real calculation logic.
    The system takes the setting as the aggregation rule for records.
    The most common aggregation rule is of course summation. If you set to e.g. Average here, the system does the
    Average instead of summation when aggregating records. And the Average value will be taken for calculation
    in further formulas or other calculations.
    For "aggregation" tab, you could only use it for CKF (calculated key figure) or formula and you could not use it for
    a basic key figure. That should be the reason why you see it greyed-out.
    Regards,
    Patricia

  • Aggregation Issue when we use Hierarchy InfoObject in the Bex Query.

    Hi All,
          I have created a bex Query having some Char's and one hierarchy Infoobject in Rowa and RKF's. I haven't used any Exception aggreagation Objects in RKF. but, when I execute a query in the Over all result it's showing the Exceptional aggregation based on the Hierarchy Object.
    Briefly Illustrated my problem here.
    OrgUnitHierarchy     EmpID       RKF
    Root                          1                1
    RootA1                     1                1
    RootA2                     1                1
    Root                          2                1
    RootB1                     2                1
    RootB2                     2                1
    Root                          3                1
    RootC1                     3                1
    RootC2                     3                1
    Over all result                              3
    In the above example the Sum of the RKF is 9. but its showing only 3. When I Connect this with crystal report is the sum of RKF is showing 9. Please help me which is the correct one and why it's not aggregating child nodes?
    Is there any Config needs to be done to aggregate all the nodes of the Hierarchy? Thanks for your support in advance
    Regards,
    Shiva

    Hi,
    is this related to BEx Analyzer or BEx Web Reporting ? if so then I would suggest to post the entry into BEx Suite forum as this forum is for the SAP Integration Kit from BusinessObjects.
    Ingo

  • #Multivalue Error on Webi when Using BEx Query

    Hi All,
    I have created a Webi Report on top of SAP BW BEx Query. I have created a variable in Webi on top of a dimension. When I add that variable in the report block some of the Measures are showing as #Multivalue. I know we can get rid of this by creating a universe and then changing the properties of the measure to sum. However we do not plan to have a universe and would want to make the changes in the BEx query or in the Webi Report whereever applicable.
    Kindly suggest the solution at the earliest.
    Regards,
    James

    HI James,
    Creat Variable =
    =sum(Tonumber([Dimension]))
    use this variable in report , it will help you
    Regards,
    Mahi

  • Bex Query - Specific calculation in query result

    Hi experts!
    I've received a requirement and I cannot find any way to delivery it using the stantard operation or configuration into Bex Query.
    We have a query which have three KF with summarization in result. The new requirement is based in the KF "POND" to change the calculation in the result. Below are the actual result and the expected result.
    The actual query result.
    Line
    OP
    QTD
    TMP
    POND
    A1
    1614073
    702
    19
    13338
    Total A
    702
    19
    13338
    B1
    1587949
    840
    235
    197400
    B2
    1610938
    4.240
    28
    118720
    Total B
    5.080
    263
    316120
    Total A + B
    5.782
    282
    329458
    The expect result based on the new requerment
    Linha
    Ordem de Produção
    QTD
    TMP
    POND
    A1
    1614073
    702
    19
    13338
    Total A
    702
    19
    19
    B1
    1587949
    840
    235
    197400
    B2
    1610938
    4.240
    28
    118720
    Total B
    5.080
    263
    62
    TOTAL A + B
    5.782
    282
    57
    Check out the "Total A" result for KF "POND", the new calculation is the sum of KF "POND" divided by the sum of KF "QTD" (13338 / 702 = 19)
    The same to "Total B" result for KF "POND", the calculation is the sum of "POND" divided by sum of KF "QTD" ( (197400 + 118720) / (840 + 4240) = 62).
    I've been using all recourses into Bex query, but I've haven't found any way to deliver this requirement, though.
    I'd really appreciate if anyone could give me some suggestion to deliver this requirement.
    Thank you.
    César Sevilha.

    Hi Suman!
    Thanks for your replay.
    The collision options wont help me because I have calculation on the same structure.
    I need to keep the division POND by QTD in the result. Check out the table below.
    The Formula Bex Query (POND / QTD) is a simple division between  KF POND by KF QTD, the result
    is a totalization of lines A and B.
    The requirement is to keep this division on the result. Check out the column Requirement, this is the result expected.
      Line
      OP
      QTD
      POND
    Formula
    Bex Query (POND / QTD)
    Requirement
    A1
    1614073
    702 KG
    13.338 KG
    19 KG
    19 KG
    Total A
    Result
    702 KG
    13.338 KG
    19 KG
    19 KG
    result (POND) divided by result (QTD)
    B1
    1587949
    848 KG
    197.400 KG
    233 KG
    233 KG
    B2
    1610938
    4.318 KG
    118.720 KG
    27 KG
    27 KG
    Total B
    Result
    5.167 KG
    316.120 KG
    260 KG
    61 KG
    result (POND) divided by result (QTD)
    Total A + B
    Result
    5.869 KG
    329.458 KG
    279 KG
    56 KG
    result (POND) divided by result (QTD)
    I'd like to know how to keep the division in the result.
    Example:
    The result of Total B should be 61 kg which is the result of division between the result of KF POND (316.120) by the result of QTD (5167).The currently formula has as result the totalization  of B1 and B2.
    Thank you in advance.
    César Sevilha.

  • Problem with bex query listing sales "this month" and "same month last year

    Hi,
    I've created a query in BW BEx, where I have a mandatory variable for 0calmonth, and I list 0material and sales (in volume, liter). And I have a restricted key figure giving me sales (volume in liter) restricted with 0calmonth = variable - 12, to give me the sale for the same month the user select, previous year.
    This seems to be working, the sum is correct, but when adding up the number for the sales in the month previous year, the numbers does not fit the sum in the end.
    I think the report only lists materials with sales the month selected in the variable, if a material has not been sold that month, but in the same month last year, it's not listed in the reports, but it's added in the sum in the end.
    Example.
    We have three records like this:
    material - calmonth - volume
    101 - 01.2010 - 5
    101 - 01.2011 - 8
    201 - 01.2010 - 7
    The report will give the following (calmonth variable = 01.2011)
    Material - volume this month - volume same month last year
    101 - 8 - 5
    Sum 8 - 12
    Any way to solve this issue? We noticed because we run BO - Webi on top of the BEx query, and BO sum's the values per material, and in webi the report would give us the sum 8 and 5.
    Any input is appreciated.
    Regards,
    Øystein

    Hi,
    thanks for your reply.
    The error is that the report only seems to list materials that has been sold "this month", and if the same material was sold the same month last year, it will also list the volume for this.
    But if the material is only sold in the same month last year, it's not listed in the report, but it's calculated into the sum at the end.
    The report is listing material, which is why the error presents itself, as you said
    Getting 8 minus 12 is correct unless you drill down by material. In that case, it should be 8 minus 5 and 0 minus 7.
    The row with 0 - 7 is not shown, and my guess is that the report will only list materials that has sales this month (which has been selected in the variable)
    Regards,
    Øystein
    Edited by: Oystein Gundersen on Mar 21, 2011 4:36 PM

  • Performance of the Bex query, buit on infoset is very low

    Dear experts,
    I have a bex query developed on infoset, has hit the performance problem.
    when I am trying to check the query, found warning message as following
    Diagnosis
    InfoProvider ABC does not contain characteristic 0CALYEAR. The exception aggregation for key figure xyz can therefore not be applied.
    System Response
    The key figure will therefore be aggregated using all characteristics of ABC with the generic aggregation SUM.
    but the infoobject 0CALYEAR is active and is in infoset as an attribute to the one of the Master data infoobject.
    Now, could you please help me to improve the performance of the query, which is buit on infoset.
    Thanks,
    Mannu

    Hi,
    If Info set is based on Cube then
    -->Create Aggregate on the cube for those object used in the Query
    -->Compressed the Info Cube
    -->then run the query
    and also in RSRT there are many properties according to the Target please check which property is suitable for you..
    Best Regards
    Obaid

  • Calculated Keyfigures Fromm Bex Query into BO without Unit

    Hello,
    We built a Universe on top of Inventory Query from Bex Query Designer. We have Calculated Key figures defined on both Restricted Key Figures and also just as the sum of one or more InfoObjects.
    In the Universe some Standard Keyfigures based off of InfoObjects are shown as folders with Unit value, but the Calculated Key Figures are simply shown as a Measure - it does not have a folder associated that gives the Unit of Measure.
    If we run the same Query from Bex Analyzer all the Calculated Keyfigures have units associated with them.
    Can you please let me know if any of you have the same issue.
    Thank you,
    Jennifer

    Ingo,
    We are using Business Objects 3.1
    Example:  The universe is built off of a Bex Query that is going against the standard MultiProvider 0IC_MP04.  The query has as part of the key figures the following:
    Standard InfoObjects:  0VALSTCKQTY (valuated stock qty) and 0TRANSSTOCK (Stock in Transit)
    Calculated Key Figure:  CKF_INV_QUANTITY.  This key figure is defined as 0VALSTCKQTY + 0TRANSSTOCK.
    When I look at the Key Figures for the universe that sits on top of this query, the two standard InfoObjects have a folder that contains:  1)  Valuated stock quantity (as a measure) 2) Valuated stock qty Unit (as a dimension) and 3) Valuated Stock qty Formatted (as a dimension).  The Stock in Transit is treated the same way.
    However, for the calculated key figure, CKF_INV_QUANTITY, I only see the measure that pertains to the sum of the two fields.  I do not have a unit associated with that value.
    Thanks,
    Jennifer

  • SUMCT , SUMRT & SUMGT functions of Bex Query not supported in Uinverse,

    Hello Experts,
    I performed the following steps:                                               
    1. Created the Bex Query using the Query Designer with the following functions as                                                                               
    SUM CT                                                                               
    SUMGT                                                                               
    SUMAT                                                                               
    and saving the Query.                                                                               
    When creating the universe connection and try to connect to the above query, it is not showing the dimensions or any objects. It is just blank. It throws the error " error getting dimensions for cube".                                                                               
    But the BEx query works fine in the Query Designer.                                                                               
    When using other functions, and the Universe and Universe connection works fine. Please let me know if this is a limitation or if I am doing anything wrong.                                                                               
    Let me know if you need any further information on this.
    Thanks and Regards,                                                                               
    Jothivel

    Hi Ingo/Stratos,
    I enabled the traces for the universe creation in my test environment( basically I enabled the SOFA and MDX logs using the registry key settings) and got the following :
    Thu Dec 31 09:15:09.390: SAPMODULE: SAPConnection: m_pRfcWrapper->Close( m_hRfcConnection ) 0.015
    Thu Dec 31 09:15:15.609: SAPMODULE: SAPAuthenticationService: Authentication model for SAP connectivity is CREDENTIALS
    Thu Dec 31 09:15:15.609: SAPMODULE: SAPAuthenticationService: Authentication model for SAP connectivity is username and password
    Thu Dec 31 09:15:15.609: SAPMODULE: SAPAuthenticationService: Trying to connect to SAP using this URI : occa:sap://;PROVIDER=sapbw_bapi,ASHOST=10.165.81.246,SYSNR=01,R3NAME=T25,AUTHTYPE=CREDENTIALS,USER="badari",LANG=EN,CLIENT=800,CATALOG="Z_BOBJ_M",CUBE="Z_BOBJ_M/ZZ_IH_OLAP_TEST_RATIO",PASSWD=******
    Thu Dec 31 09:15:17.218: SAPMODULE: SAPAuthenticationService: m_pRfcWrapper->RfcOpenEx() 1.609
    Thu Dec 31 09:15:17.218: SAPMODULE: SAPConnection: Connection to SAP BW server successful
    Thu Dec 31 09:15:17.625: SAPMODULE: CLIENT: MDDataProviderBW.GetCubes 0.407
    Thu Dec 31 09:15:17.625: SAPMODULE: CLIENT: Reserved Structure Z_BOBJ_M/ZZ_IH_OLAP_TEST_RATIO
    Thu Dec 31 09:15:17.640: SAPMODULE: STRUCTURE: Getting dimensions for cube Z_BOBJ_M ...
    Thu Dec 31 09:15:18.343: SAPMODULE: STRUCTURE: RFC function call MDDataProvderBW.GetDimensions failed.  System error in program CL_RSR_MDX_META_DATA and form CONSTRUCTOR-01- (see long text)
    Thu Dec 31 09:15:18.343: SAPMODULE: : Error getting dimensions for cube Z_BOBJ_M/ZZ_IH_OLAP_TEST_RATIO (catalog Z_BOBJ_M): See RFC trace file or SAP system log for more details
    Thu Dec 31 09:15:18.343: SAPMODULE: STRUCTURE: MDDataProviderBW.GetDimensions 0.703
    Thu Dec 31 09:15:18.343: SAPMODULE: : Error getting dimensions for cube Z_BOBJ_M/ZZ_IH_OLAP_TEST_RATIO (catalog Z_BOBJ_M): Unknown error
    I have asked the customer the perform the above steps and let me know the logs.
    Please let me know if the above logs help. I don't have access to my test SAP System logs. Hence unable to check the RFC trace file.
    Thanks and Regards,
    Jothivel

  • Universe on Bex Query with Condition

    Hi,
    I'm working on creating a WebI version of a Bex Report. I've created a universe on top of the Bex Query and then a WebI report based on the Universe. The Bex Query contains 4 conditions. They allow optional filtering of two measures, Less Then or Equal and Greater Then or Equal. The conditions are applied at the employee level of the results set, so for example, if an employee's total sales is greater than 50 and the user enters 50 for the condition then none of that employee's rows of data will appear.
    A single filter was created in teh Universe containing all four conditions. I had to update the syntax as they were all brought in using Equals instead of the GreaterorEqual and LessOrEqual. I also updated the filter key to use the @Select and the correct dimension.
    In the WebI report, only the two using LessOrEqual are functional. The two conditions that utilize GreaterOrEqual will only remove individual rows, not the enter set of rows for that employee. I've set the aggregation to sum instead of Database Delegated for the two affected measures.
    If anyone has any input on how to get the GreaterOrEqual conditions functioning properly, or a workaround that will remove all rows for an employee when their sales are not above a cert number, it would be greatly appreciated.
    Thanks,
    Jeff

    Also here is the syntax for one of the filters that is not functioning properly.
    <OPTIONAL><FILTER KEY="@Select(Total Quantity of Adjustments\Total Quantity of Adjustments)"><CONDITION OPERATORCONDITION="GreaterOrEqual"><CONSTANT CAPTION="@Prompt('Minimum Quantity of Adjustments','N',,mono,free)"/></CONDITION></FILTER></OPTIONAL>

  • 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,
    Arnold

    Hi Arnold,
    Thank you,
    Nanda

  • 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,
    Chandu

    Arun - 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

  • How can we remove the commas from the Formula value in SAP BW BEx query

    Hi All,
    How can we remove the commas from the Formula value in SAP BW BEx query
    We are using the formula replacing with characteristic.The characteristic value needs to be display as number with out commas.
    Regards
    Venkat.

    Do you want to remove the commas when you run the query on Bex Web or in RSRT?
    Regards

  • Field Explorer in Crystal Reports does not show the same names as Bex Query

    Hi
    I have crystal reports, I can retrieve data from BW Bex Query. But in the field explorer it does not show the names as in the Bex query designer.
    In the Bex query designer a field will have the following technical name 0Debitor and the description is Customer.
    It shows in crystal reports in the field explorer twice as D[0DEBITOR]D and D[0DEBITOR]D. It also does not seperate key figures and characteristics.
    I would like it to display the field explorer as shown in this blog.
    /people/ingo.hilgefort/blog/2008/02/19/businessobjects-and-sap-part-2
    Thanks in advance

    Hi,
    take a look here:
    /people/ingo.hilgefort/blog/2008/02/19/businessobjects-and-sap-part-2
    make sure you are using the MDX Driver and what happens is that you will see several fields per characteristic. example: one for the key, one for the description, several if modelled for the display attributes
    Ingo

  • Two problmes between  Crystal Reports 2008 and Bex Query

    Hi Gurus.
    I have two problems with Crystal Reports 2008 when It obtains data from a Bex Query (SAP MDX query connection).
    1)     I have defined some Parameters Fields using the follow options:
    Type: String
    List of Values: Dynamic
    Value Options Level1:
                         Show on (Viewer) Panel :Editable
                          Prompt text: <text>
                          Sort Order: Ascending by value
                          Prompt With description Only : False
                          Optional Prompt: True
                          Allow multiple values: True
                          Allow discrete values: True
                          Allow range values: False
    When I execute the report with the client of Crystal Reports 2008 (the developer tool), in the initial screen shows a list box where I can select the values from the left box and add it to the left box (as a usually filter). When the number of options (LOV) is more than  the maximum of the system, I have a input box bellow the list box, where I can insert any value (manually) and a button to insert it into the left box. When I publish the Report in the infoview, this filter is modified and the input box where I can introduce manually values is not showed and I can insert only the values showed in the list box, it causes that I can`t select a lot of values that is in the master data of SAP BW, because they arenu2019t listed in the list box.
    There is any option to ability this option in the infoview.
    2)     My Bex query, have a date filter with variable in the restricted key figures, when I execute a Crystal Reports, the infoview (and the Crystal Reports 2008 designer) ask me 2 times the same date, first only the date and second the date and the rest of parameters (introduced in the report of Crystal Reports).
    Why I need insert the date 2 times? How can I modify the Crystal Report for ask me only one time all the parameters?.
    Thanks.

    Hi Abhilash.
    Thank you for your information.
    1) Yes, the parameters are created in the Crystal Reports designer. I have created the parameters in the Crystal Report because I use the same Bex Query to create some Crystal Report, in other case, I will need create some Bex Query.
    2)The Bex query has the date filters and I have created some filters in Crystal Reports designer, the date filter from the Bex query is created automatically in the Crystal Report Designer but I don't use it, I haven't created it anytime. I use my filters only in the record selection. The date filters from the Bex query is showed as Static, and I can`t delete it, if I modify the parameter to dynamic or static with values, at first step ask me again static without values and the second step of the report execution ask me the parameter as I have defined in Crystal Reports Designer, my parameters fields are dynamic. A lot of reports have subreport, but I have created one of them without subreport (to trial) and the Crystal Reports ask me the date filters at first execution, and when I insert the date filters, in the second step, ask me the date filters again and my parameters fields again.
    Thank you again.

Maybe you are looking for

  • How Do I Create a New Template for iBooks Author?

    Apple's provided templates are way too narrow for some of the ideas I want to implement. I do not see any real method for creating a template from scratch. I stripped one of the available templates down to nothing and rebuilt some of the pages and th

  • How to see status of emails stopped in queue

    Hello, I'd like ask you how is possible define reason of non-deliveriyng mail mesage. Below is my analyses: 1. list of all messages in queue (similar aoutput as mailq from *nix like systems) (Machine esa1.DOMAIN.XYZ)> showrecipients all Showing messa

  • HELP! Error 8 occurred at TDMS Open

    Hi, I have built 2 vis to run concurrently, 1 vi acquires data from hardware and saves it as a TDMS file on a network drive. The other reads the TDMS file, and displays a graph. In the development environment, both vis run fine. When I build an execu

  • Dreamweare CS5

    Bonjour Je ne comprends pas suffisamment l'anglais. Ce forum peut-il parler français ? Voici mon problème Mais là, j'ai un gros souci avec Dreamweaver et je ne sais pas si je suis sur le bon forum, alors excusez-moi par avance. Depuis que je suis pas

  • Application Distribution

    I hired a company through elance.com to build an application for me. They used AdHoc files to send me updates and request notes. At the end, they sent me their project file but offered to post it to the store for me. I said I'd consider it but that I