BEx query problem which based on infoset

Hi, BW experts,
     Now I created a infoset which connect one ODS and one infoObject, ODS structure:  CIO_CO_Area, 0Company, K1, KF1, K2, KF2 ( KF1 and KF2 are data field to store numeric value)
     InfoObject is 0CO_Area (connect to ODS.CIO_CO_Area)
     I can see the value in listcube as following:
0CO_Area ,  0Company, K1, KF1, K2, KF2
0001    ,       0001    ,     A1,  20,    B1,  40
0001    ,       0001    ,     A2,  40,    B2,  100
    but when I create the BEx query with tabular format, the result show as following,
0CO_Area ,  0Company, K1, KF1, K2, KF2
0001    ,       0001    ,     A1,  0,    B1,  0
0001    ,       0001    ,     A2,  0,    B2,  0
  the key figure can not display properly, anyone can help me out?
thanks in advance.

Let me see if this example of what I'm seeing makes more sense:
Order  |  Doc No.  |  Account  |  Type  |  *Amount*  |  *abs(Amount)*  |  *Percent*  | Expected Percent
   1            1          1          A          20            20          200%           40%     
   1            1          2          A         -30            30          300%           60%
                                   +Result+     -10           -10
   1            2          3          A          40            40          100%          100%
   2            3          4          A          50            50          100%          100%
The absolute value of the Amount column is calculating the result of the original values (with the original signs). This result is being used in the Percent (%CT) calculation which is causing the calculated percent to be wrong. I tried changing the "Calculate Result as" setting to Summation which corrected the result row (in the above example it would show 50 for the abs(Amount) column) but the %CT calculation is still incorrect.

Similar Messages

  • BEx Query: Percent Share based on characteristic

    My question is around a query that follows this sort of layout:
    Order  |  Doc No.  |  Account  |  Type  |  *Amount*
       1            1          1          A         20
       1            1          2          A         30
       1            2          3          A         40
       2            3          4          A         50
    I want to calculate the percent share by Doc No. so in this example, I'd want it to show like this:
    Order  |  Doc No.  |  Account  |  Type  |  *Amount*  |  *Percent*
       1            1          1          A          20         40%
       1            1          2          A          30         60%
       1            2          3          A          40        100%
       2            3          4          A          50        100%
    I've tried doing a forumla based on amount with Aggregation of summation on Doc No. and that didn't work. I also tried some of the other percent functions but unless the exact doc no. is drilled down on, they show the percent share for the entire report which doesn't work either. Any ideas? I feel like I've done something like this before but can't seem to get it to work! Points to an answer that yields the result I'm looking for!
    Thanks!
    Edited by: Christopher Deaner on Jan 16, 2012 10:55 PM

    Let me see if this example of what I'm seeing makes more sense:
    Order  |  Doc No.  |  Account  |  Type  |  *Amount*  |  *abs(Amount)*  |  *Percent*  | Expected Percent
       1            1          1          A          20            20          200%           40%     
       1            1          2          A         -30            30          300%           60%
                                       +Result+     -10           -10
       1            2          3          A          40            40          100%          100%
       2            3          4          A          50            50          100%          100%
    The absolute value of the Amount column is calculating the result of the original values (with the original signs). This result is being used in the Percent (%CT) calculation which is causing the calculated percent to be wrong. I tried changing the "Calculate Result as" setting to Summation which corrected the result row (in the above example it would show 50 for the abs(Amount) column) but the %CT calculation is still incorrect.

  • Sql query problem which causes crystal reports in visual studio to freeze

    Anyone know why this query posted here freezes up? if i remove  s.enddate IS NULL from the query is when it freezes up. This is used on an infinite campus database for which i only have read only access so no posting anything that requires write access please!
    IT may just be a flaw in my query which it has been before but it only stops responding if i remove the above query and it only started this after i added the comments subreport if i remove it then the action above doesn't cause it to freeze in visual studio.
    I do have a subreport for comments that is in the report too. Heres the main query:
    SELECT Distinct sc.name,sc.address,sc.city,sc.state,sc.zip,sc.phone,gt.name AS Task, ca.StartDate,
    ca.EndDate, s.lastname','s.firstname AS Student, s.studentnumber,e.grade,t.name AS Term,
    gs.score AS [Current Grade],cg.Cumgpa AS GPA,c.name '-'c.number As Course, se.teacherdisplay,gs.personid,
    MAX(CASE WHEN hl.enddate IS NULL AND ccs.guardian = 1 AND ccs.relatedBy = 'Household' AND ccs.mailing = 1 THEN ccs.addressline1 END) AS AddressLine1,
    MAX(CASE WHEN hl.enddate IS NULL AND ccs.guardian = 1 AND ccs.relatedBy = 'Household' AND ccs.mailing = 1 THEN ccs.addressline2 END) AS [City/State],gs.personid
    FROM GradingScore gs
    LEFT JOIN dbo.student s ON s.personid = gs.personid
    JOIN v_CensusContactSummary ccs ON ccs.personid = s.personid
    JOIN dbo.enrollment e ON e.enrollmentid = s.enrollmentid AND e.calendarid = gs.calendarid
    LEFT JOIN dbo.Term t ON t.termid = gs.termid
    JOIN dbo.section se ON se.sectionid = gs.sectionid
    JOIN v_CumGPA cg on cg.personID = s.personID aND cg.calendarID = s.calendarID
    JOIN gradingtask gt ON gt.taskid = gs.taskID
    JOIN dbo.course c ON c.courseid = se.courseid
    JOIN dbo.roster r ON r.sectionid = se.sectionid
    JOIN calendar ca ON ca.calendarID = gs.calendarID
    JOIN School sc ON sc.schoolID = ca.schoolid
    LEFT JOIN householdlocation hl ON hl.householdid = ccs.householdid
    --Change Term Name to match term name needed or if in a report turn it into a Parameter
    WHERE s.enddate IS NULL AND gs.calendarID IN
    (select calendarid
    from dbo.calendar c
    JOIN dbo.schoolyear sy on sy.endyear = c.endyear
    WHERE  c.schoolID = 2)
    GROUP BY s.studentnumber,s.lastname, s.firstname,e.grade, t.name, gt.name, gs.score, cg.cumgpa, c.name, c.number, se.teacherdisplay, ca.startDate, ca.enddate,
    sc.name, sc.address, sc.city, sc.state, sc.zip, sc.phone,gs.personid
    order by [student],[Term],[Course]
    Edited by: jeffman2 on Oct 6, 2011 3:40 PM
    Edited by: jeffman2 on Oct 6, 2011 3:41 PM
    Edited by: jeffman2 on Oct 6, 2011 3:53 PM
    Edited by: jeffman2 on Oct 6, 2011 3:56 PM
    Edited by: jeffman2 on Oct 6, 2011 3:56 PM

    What happens if you try
    SELECT Distinct sc.name,sc.address,sc.city,sc.state,sc.zip,sc.phone,gt.name AS Task, ca.StartDate,
    ca.EndDate, s.lastname+','+s.firstname AS Student, s.studentnumber,e.grade,t.name AS Term,
    gs.score AS Current Grade,cg.Cumgpa AS GPA,c.name +'-'+c.number As Course, se.teacherdisplay,gs.personid,
    MAX(CASE WHEN hl.enddate IS NULL AND ccs.guardian = 1 AND ccs.relatedBy = 'Household' AND ccs.mailing = 1 THEN ccs.addressline1 END) AS AddressLine1,
    MAX(CASE WHEN hl.enddate IS NULL AND ccs.guardian = 1 AND ccs.relatedBy = 'Household' AND ccs.mailing = 1 THEN ccs.addressline2 END) AS City/State,gs.personid
    FROM GradingScore gs
    LEFT JOIN dbo.student s ON s.personid = gs.personid
    JOIN v_CensusContactSummary ccs ON ccs.personid = s.personid
    JOIN dbo.enrollment e ON e.enrollmentid = s.enrollmentid AND e.calendarid = gs.calendarid
    LEFT JOIN dbo.Term t ON t.termid = gs.termid
    JOIN dbo.section se ON se.sectionid = gs.sectionid
    JOIN v_CumGPA cg on cg.personID = s.personID aND cg.calendarID = s.calendarID
    JOIN gradingtask gt ON gt.taskid = gs.taskID
    JOIN dbo.course c ON c.courseid = se.courseid
    JOIN dbo.roster r ON r.sectionid = se.sectionid
    JOIN calendar ca ON ca.calendarID = gs.calendarID
    JOIN School sc ON sc.schoolID = ca.schoolid
    join (select calendarid
           from dbo.calendar c
           JOIN dbo.schoolyear sy on sy.endyear = c.endyear
           WHERE c.schoolID = 2) ci
           on  gs.calendarID  = ci.calendarid
    LEFT JOIN householdlocation hl ON hl.householdid = ccs.householdid
    --Change Term Name to match term name needed or if in a report turn it into a Parameter
    --WHERE s.enddate IS NULL
    GROUP BY s.studentnumber,s.lastname, s.firstname,e.grade, t.name, gt.name, gs.score, cg.cumgpa, c.name, c.number, se.teacherdisplay, ca.startDate, ca.enddate,
    sc.name, sc.address, sc.city, sc.state, sc.zip, sc.phone,gs.personid
    order by student,Term,Course
    Ian

  • BEx Query Problem with variable

    Hi experts,
    I want to create a report with month variable such that when the user enters (let say)October the report will look like this:
    October    November   December
    I want to see the October column as cumulative(sum of Jan-Oct) and the remainings as single values.How can I achieve this?
    Thanks and regards,
    Sunny

    Hi,
    As far as i understand your problem you need three things to display.
    Suppose you have a key figure sales and you want to display cumulative sales (current year till month entered by user) and another sales of next two months.
    For next months based on user entry you can work around with offset only.Restrict your keyfigure with 0calmonth offset1 and offset2.
    FOr yeat till month requirement you need to make one customer exit variable.Please check the below link for the same.
    Variable Exit
    Hope it helps.
    Regards,
    AL

  • BEx Query-Problem opening query showing restricted key figure is inactive

    Hi  all,
    While activating the Query we are getting error , the object is missing in active version  ?
    And also it is not allowing to open the query  how  to activate the query element now?
    Also restricted key figure is inactive and how to activate the query in background ?

    Hi,
    I have never heard of query activation, we simply create the query and save it. I don't know which activity you are referring to but try to open your query through RSRT and check what is the error it shows?
    And before that make sure that your Infoprovider is in active state.
    Regards,
    Durgesh.

  • Status of data in Bex query shows wrong date

    Dear Experts,
    The Bex qurey after sucessful execution, show the Status of data as old date i.e. feb 2012. but we observed that the data uplaod happens regularly and sucessful.
    we tried executing the same query using RSRT/Bex Analyzer/Portal. the results are same i.e. showing incorrect status of data.
    Note: The Bex query is built on BI Infoset which sources from DSOs and Master Data infoobjects, and  BI version is 7.0.
    Kindly please help for resolving the issue.
    Best Regards,
    Mannu.

    Hi Vijay,
    The data upload has happend today also and it is sucessful, the reporing status is available for requests from respective infoproviders.
    'Status of data' is not a filed. if it an information to tell the status of data in query result.
    Please find the following steps to find the 'status of data'
    go to RSRT->give the query name and execute-> now after query results-> go to last page-> you can find the 'status of data'.
    Best Regards,
    Mannu

  • BEX query runs using parameters entered by user in an Excel spreadsheet

    I'm trying to write a macro to automate certain functions for our users.</br>
    </br>
    Essentially, the users would enter numbers (relating to clients) in column A and e-mail adresses in column B.  A set of reports would run based on the first number entered, then the workbook would be saved and e-mailed to the first address in column B.  This would be repeated for the 2nd number/address and so on...  All Bex reports are in the same workbook.  At this point, I'm having a lot of problems finding code that will fill in the Bex query parameters automatically based on inputs in the spreadsheet.  Here is what I've worked up so far for the macro:</br>
    </br>
    Option Explicit</br>
    </br>
    'Macro step 1 u2013 run workbook for client number input and continue</br>
    'EXAMPLE u2013 cell A3 = 1008, cell A4 = 1240</br>
    'All BW queries should run based on the input given in column A (beginning wth A3).</br>
    </br>
    </br>
    'Macro step 2 u2013 create directory for the new files and save the first file</br>
    '     This step will allow the user to save the new files in a new folder in an existing directory, or even to create a new directory:</br>
    </br>
    Function GetFolderPath() As String</br>
        Dim oShell As Object</br>
        Set oShell = CreateObject("Shell.Application"). _</br>
        BrowseForFolder(0, "Please select folder", 0, "c:
    ")</br>
        If Not oShell Is Nothing Then</br>
            GetFolderPath = oShell.Items.Item.Path</br>
        Else</br>
            GetFolderPath = vbNullString</br>
        End If</br>
        Set oShell = Nothing</br>
    End Function</br>
    </br>
    Sub Testxl()</br>
        Dim FName As String</br>
        Dim WbName As String</br>
        Dim Search As String</br>
        Dim Prompt As String</br>
        Dim Title As String</br>
        Dim MyDir1 As String</br>
        Dim MyDir2 As String</br>
        Dim Passed As Long</br>
         </br>
    On Error GoTo Err:</br>
         </br>
        FName = GetFolderPath</br>
        If FName <> vbNullString Then</br>
            Prompt = "Please Select a FileName"</br>
            Title = "Name"</br>
            Search = InputBox(Prompt, Title)</br>
            If Search = "" Then Exit Sub</br>
        End If</br>
        FName = FName & "\" & Search</br>
        MkDir FName</br>
        ActiveWorkbook.SaveAs FName & "\" & Search & ".xls"</br>
         </br>
         'Test for existence of new folders.files</br>
        Passed = 1</br>
        GetAttr (FName)</br>
        Passed = 2</br>
        GetAttr (FName & "\" & Search & ".xls")</br>
        Passed = 3</br>
        GetAttr (ActiveWorkbook.Path & MyDir1)</br>
        Passed = 4</br>
        GetAttr (ActiveWorkbook.Path & MyDir2)</br>
    </br>
        End</br>
         'Sheets("Sheet1").Range("B1").Value = Search **Add if you require the name to be recorded in your spreadsheet</br>
    Err:</br>
        Select Case Err</br>
        Case 53:           MsgBox "File/Folder not created. Failed at step " & Passed</br>
        Case 75:    MsgBox "Folder already exists"</br>
        End Select</br>
    End Sub</br>
    </br>
    'Macro step 3 u2013 save workbook</br>
    ActiveWorkbook.Save</br>
    </br>
    'Macro step 4 u2013 e-mail workbook</br>
    'EXAMPLE u2013 cell B3 = amay@email, cell B4 = bmay@email</br>
    'The workbook should e-mail based on the input given in column B (beginning wth B3).</br>
    wb.SendMail  u201Ccell B3u201D</br>
    </br>
    'Macro step 5 u2013repeat until no inputs remain</br>
    'EXAMPLE u2013 cell A3 = 1008, cell A4 = 1240</br>
    'Steps 1-4 should repeat for cell A4, then A5 (if necessary) and so on until no more inputs remain.  </br>
    </br>
    </br>
    If anyone has any advice I'd love to try it out.</br>
    </br>
    Thank you for your time.</br>
    Andy
    Edited by: AndyMay on Jul 14, 2009 5:08 PM - I inserted html breaks

    Option Explicit</br>
    </br>
    Sub KeyClient()</br>
    </br>
    'Macro step 1 - filter workbook for client number input and continue</br>
    'EXAMPLE - cell B3 = 1008, cell B4 = 2048</br>
    'All BW queries should run based on the input given in column B (beginning wth B3).</br>
    </br>
    'define x and begin loop</br>
    Dim i, x As Integer</br>
    Dim curCell As Range</br>
        For x = 3 To 22</br>
        Set curCell = Worksheets("Input").Cells(x, 2)</br>
    </br>
    'stop BW from refreshing until we are finished</br>
        Run "SAPBEX.XLA!SAPBEXPauseOn"</br>
        Run "SAPBEx.XLA!SAPBEXsetFilterValue", curCell, "", Sheets("Client Contribution").Range("C9")</br>
    'BW resumes refreshing</br>
        Run "SAPBEX.XLA!SAPBEXPauseOff"</br>

  • Bex Query calc key figures in Crystal report not showing technical names.

    Hi,
    I have created calculated key figures in a BEx query for which the data comes from a SAP BW cube. I have assigned each of the calculated key figures a proper technical name which I expect to see when I bring it to crystal report. When I bring that query in Crystal as a data source the calculated key figures show a wier network id names instead of the technical names. I am having a problem in using those wierd technical name in my report and my formula's as I am not able to identify what is what.
    Please urgent help requested.
    Thanks
    Mahendra

    I dont have an account on such website. I will explain u the problem in detail.
    When I create a calculate key figure in SAP BEx query designer I assigned a technical name to it, a meaningful one. In my case one such example is Actual_revenue is the name that i have assigned and the description is Actual revenue. When I create a crystal report from it and in that report if i create a formula.
    I get this {ZIC_COPA_Z_SALES.[Measures]-[25V1KYL4VE92X0T4OMHVYM90V]}
    If u see it its a wier 25 digit name.
    Instead of this I want to see
    {ZIC_COPA_Z_SALES.[Measures]-[ACTUAL_REVENUE]} which is what I have given in the query. I am using the SAP BW MDX driver to connect to Bex query.

  • Output mismatch between BEx query output and WebI Report output

    Hi All,
    I have a BEx query in which there are only characteristics placed in rows.
    There are combinations of the values of the characteristics giving different records in the query output.
    Date is one of the characterisctics in the query output.
    There is an output mismatch between the query output and the WebI report output in the following case:
    When there are 'Not Assigned' or '#' or blank values, there are additional entries(rows) in the WebI report, giving repeating or wrong entries in the Date field. This is incorrect data.
    Is this because of the  'Not Assigned' or '#' or blank values of the Characteristics or is there any other reason?
    How do I fix this?
    Please helo me with this.
    Thanks and Regards,
    Srilakshmi B

    Hi Rajesh,
    I need to verify the WebI report output for records with # and 'Not assigned' values for the cHracteristics in the report.
    So I cannot check the WebI report by hiding the # or Not assigned values.
    The problem is that in the Query output the records are like these shown below:
    Char1                    CHar2                          CHar3                       Date field
    A                             B                                 C                                Date1
    #(Not assgined)      #(Not assgined)      #(Not assgined)             No value
    Where as the WebI report output is as below:
    Char1                    CHar2                          CHar3                       Date field
    A                             B                                 C                                Date1
    #(Not assgined)      #(Not assgined)      #(Not assgined)            Date1
    As shown here, there are wrong/repeating entries for the Date field in the WebI report output.
    Please check this and let me know what could be the issue and how do I fix it.
    Thanks and Regards,
    Srilakshmi B

  • Bex query is getting hanged, when trying to drill down only for one hierarchy node.

    Hi All,
    We have a bex query, in which we have multiple nodes. And we are able to expand almost all nodes except one hierarchy node called "BD1".
    when we trying expand the BD1 node, the report is executing on and on and getting hanged up.
    In RSRT the read mode is "H"
    The report is based on a multiprovider and it has 7 cubes of which 6 of them have aggregates.
    The characteristic for which we have issue is also having BWA.
    So, I am not sure why the issue is with only 1 node in the entire report. Can someone let me know the possible reasons and solutions.

    Hi Shilpa,
    The only way to show  long text is to maintain only long text for the info object.  Otherwise system always defaults to short text.
    Jaya.

  • Universe Designer not pulling Long Text from BEx Query / Info Object

    In the BEx query on which my universe is built, all the characteristics display with Long Text. In each of the info objects (RSD1), the long text option is selected in the BEx properties. However, when the Universe builds, it pulls the short text for the names of the classes, dimensions, and details that get created. I don't want to have to manually change every line to the long text, so I would love to hear if there's some setting in the designer that is causing this to happen.
    Anyone know how to fix this?
    Thank you!
    AZ

    Another interesting data point to add to this:
    The long description is transfered for Key Figures, but not for Characteristics.

  • I am facing a problem in a crystal report which is based on Infoset query

    Hi All,
    I am facing a problem in a crystal report which is based on Infoset query.in the Cost Analysis - Planned vs. Actual Order Costs
    There are two querys like Query: CO_OM_CA_20_Q1 and InfoSet: ZBPBI131_INFO_ODVR. I build infoset query based on sap best practice user guide but problem is not able to find CO_OM_CA_20_Q1
    Best Regards,
    Srinivas

    Hi,
    I would first of all suggest you don't open the same question twice. this looks like a duplicate to this entry:
    Best Practices v3.31 - SAP InfoSet Query connection
    Did you assign the queries and the infosets to an InfoSet user group and you assign the SAP account to it as well ?
    Ingo

  • I am facing a problem in a crystal report which is based on Infoset query.i

    Hi All,
    I am facing a problem in a crystal report which is based on Infoset query.in the Cost Analysis - Planned vs. Actual Order Costs
    There are two querys like Query: CO_OM_CA_20_Q1 and InfoSet: ZBPBI131_INFO_ODVR. I build infoset query based on sap best practice user guide but problem is not able to find CO_OM_CA_20_Q1

    Please re-post if this is still an issue to the Business Objects Integration Kits - SAP Forum or purchase a case and have a dedicated support engineer work with you directly

  • Regarding Filter in Webi Report which is based on BEx query

    Hi,
    I am developing Webi report, in which using universe which is baed on BEx query.
    Suppose BEx query contains filter on fiscal year 2010.
    And I am developing Webi report on that query. So I want to know, whether my Web i report output will contain data of only fiscal year 2010, as filter is applied in BEx query.
    Thanks,
    Pradip Nikam

    Hi,
    if this is a fixed filter the data will be filtered.
    if this is a variable in the BW query the user will get prompted.
    ingo

  • 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

Maybe you are looking for

  • HT4207 how can I remove a specific gmail account from my ipad 4?

    How can I remove a specific Gmail account from my ipad 4?

  • How to populate a table with ORDSYS.ORDImage item by BLOB item?

    Hi, I have a table, that contain blob column and another table with ORDSYS.ORDImage column and I would like to populate ORDSYS.ORDImage item in table by BLOB item, in which I have store some images?

  • OAM Integration

    Hi, I'm new to the OIM/OAM technologies. Since there is a paper about how to integrate APEX with OAM, could anyone explain what specific components of OIM/OAM do I need for this integration? In terms of user management, I need a database repository t

  • Imported photos and got duplicate "original" pictures

    I have been reading the forum most of the night and decided that at least I could not find a post that was specific to my issue, please forgive if this is redundant. I have a new mac like many people and am run iphoto 7.x. created a new photo library

  • FULL RECOMMENDED BACKUP METHOD

    I did the following: Logged out of both Skype accounts, quit both, and checked no Skype process running. Copied everything from C:\Users\[my name]\AppData\Roaming\Skype to my external drive, including the main.db files for both accounts. Uninstalled