BEx Query - Stop Aggregation of Key Figure upon Drill

Hi,
I have a situation wherein I am joining Header and Line Item details using a BW InfoSet (Header - DSO1 and Line Item DSO2). A query is built off this InfoSet providing a single view of both the Header and Line Item information. This works great and users love it. Note that this information is coming from a 3rd part application sitting in ECC and is data before posting into SAP.
Using BEx Analyzer, we have Header and Line Item fields in the rows along with the Line Item Amount and the Header Amount. If I remove the Line Item characteristics from the rows, the Amounts get aggregated(SUM UP). This is OK for the Line Item Amount (sum up all the different lines), but not so good when the Header Amounts sum together providing an incorrect header amount.
Ex: Document Number 123 has 3 distribution lines. Total Header Amount is $100.
Doc Number(DSO1) |     Line Item Number(DSO2) |      Line Item Amount(DSO1) | Header Amount (DSO2)   
123                                   1                                             $20                                   $100                      
123                                   2                                             $20                                   $100                      
123                                   3                                             $50                                   $100                      
This view looks good. Say, we remove Line Item Number from the rows, we now get:
Doc Number |      Line Item Amount  |      Header Amount
123                              $90                       $300                       
The Header Amount is incorrect as it should be $100.  My initial plan was to use Line Item Amount as it would aggregate up and provide the detail at the line item level and sum up to the header level.
As this information is before posting into SAP. None of the SAP validations are called up for this data and the sum of the line item amounts will not always tie to the header amount  (there could be tax and freight amounts at the header level in different key figures). As seen in my example above, Line Item Amount sum up to $90 whereas the Header Amount is $100.
I guess the simplest solution would be to set the Header Amount on this report to not change with any navigation/filtering etc. As in the example, the header amount remains $100. Any way this can be achieved?
Any ideas/suggestions are welcome. Thanks in advance.
-Vivek

Hi Yasemin,
Thank you for the prompt reply. I like your idea of counting line item numbers and dividing the header amounts with the count. For my situation though, Akshay and Anshu's answer worked best and like the fact that I can leverage BEx functionality out of the box.
Akshay & Anshu,
Thank for the prompt reply. Your suggested solution worked great.
Many Thanks,
Vivek

Similar Messages

  • Query with a hidden key figure

    I would like to build a query which will include just one key figure which will be hidden is this possible?  Thanks

    Hi akreddy,
    There will be no results if the query has only one key figure and it is hidden.
    Such query makes no sense to me.
    The only logical way I can think of having this query is:  have this only key figure properties as Hidden (Can be Seen).
    so users can change the local setting of the query when they want to see the report results.
    Feng

  • BO( WEBI,QAAWS ) can't sustain bw query : create new calculate Key Figure ?

    BO( WEBI,QAAWS ) can't sustain bw query : create new calculate Key Figure ?
    I create three new calculate  Key Figure : TotalQty1,Rate1,TotalRate1  on bw query. Return values:
    TSAS defect1     Qty     TotalQty1     Rate1     TotalRate1
    weight inaccuracy     33.000     33.000     37.500 %     37.500 %
    poor function     10.000     43.000     11.364 %     48.864 %
    gap out of spec     9.000     52.000     10.227 %     59.091 %
    scratch  /crack/ dam     8.000     60.000     9.091 %     68.182 %
    broken glass/mat     5.000     65.000     5.682 %     73.864 %
    missing display     6.000     71.000     6.818 %     80.682 %
    assembly defect     4.000     75.000     4.545 %     85.227 %
    plastic deformed     4.000     79.000     4.545 %     89.773 %
    no function     4.000     83.000     4.545 %     94.318 %
    poor  printing     5.000     88.000     5.682 %     100.000 %
    But Create on universe  connect  to this bw query, I used QAAWS and WEBI to runat , TotalQty1,Rate1,TotalRate1   key figure values are Qty value, that is error:
    TSAS defect1     Qty     TotalQty1     Rate1     TotalRate1
    weight inaccuracy     33     33     33     33
    poor function     10     10     10     10
    gap out of spec     9     9     9     9
    scratch  /crack/ dam     8     8     8     8
    broken glass/mat     5     5     5     5
    missing display     6     6     6     6
    assembly defect     4     4     4     4
    plastic deformed     4     4     4     4
    no function     4     4     4     4
    poor  printing     5     5     5     5
    pho:
    BW QUERY: [http://space.itpub.net/attachments/2010/04/10339719_201004211645561.thumb.jpg|http://space.itpub.net/attachments/2010/04/10339719_201004211645561.thumb.jpg]
    WEBI:[http://space.itpub.net/attachments/2010/04/10339719_201004211637351.thumb.jpg|http://space.itpub.net/attachments/2010/04/10339719_201004211637351.thumb.jpg]
    QAAWS:[http://space.itpub.net/attachments/2010/04/10339719_201004211637591.thumb.jpg|http://space.itpub.net/attachments/2010/04/10339719_201004211637591.thumb.jpg]
    Why? BO can't sustain bw query : create new calculate Key Figure ?
    Who to figure out this question?
    Because I can't to do create new calculate Key Figure   in webi or Xcelsius ,So ,I create new calulate Key Figure  on BW QUERY.
    Thank you.
    BestRegards,
    Howard.
    Edited by: flying on Apr 21, 2010 10:48 AM

    HI Ingo,
        Didier Mazoue  say universe accept bw query Restricted KF and calculated KF :
       [ Restricted and calculation keyfigures| Restricted and calculation keyfigures]
       Why I create new Restricted KF and calculated KF for bw query, QAAWS,WEBI are can't return ok datas for new Restricted KF and calculated KF ?
      I create KF on Universe :
        select ued : <EXPRESSION>@Select (Key Figures\Qty)</EXPRESSION>   OR <EXPRESSION>SUM(@Select (Key Figures\Qty))</EXPRESSION>  
    parse error: Parse failed:Invalid definition(UNV0023)
       Thank you.
    Regards,
    Howard.
    Edited by: flying on Apr 23, 2010 6:00 AM

  • Query on 0IC_C03 with key figures 0valstckqty and 0valstckval

    Hello Gurus,
    I want to make a query on  0IC_C03 with key figures 0valstckqty and 0valstckval for a single month eg October 2011. I have 0plant in rows. The problem is that I just see the key figures for planst which have movements in October 2011.
    I dont want choose all months in global filter to get key figures for all plants.
    How can I solve this problem?
    Jesper

    Jesper-
    You're looking at a "Transactional" info cube. That means that the query you create will ONLY provide data for a selected period in which data exists. Plants with no movements will not appear. That's how it's supposed to work.
    Now... you can create a hidden selection in your columns. For example:
    First column (hidden)... 0valstckqty + 0valstckval. No other restrictions
    Second column (visible) 0valstckqty  restricted to the date range of interest
    Third column (visible) 0valstckval restricted to the date range of interest
    be sure to NOT suppress Zero rows.
    Plants that never had a transaction will, however, not appear at all. The query will also take a long time to execute because it's extracting all data.
    The best solution is to explain to your user that it's working the way it's supposed to.. if a plant has no values then there were no transactions.

  • Bex report does not display key figures

    Friends,
    Need help urgently.
    We have a report of a multicube(MC1). key figures of one of the infocube(IC1) in the multicube(MC1) does not showup on the report.
    If reported independly on that IC1 it does show all values. This sounds really weird but its taking up all my time.
    Please friends, need your inputs on what else could have gone wrong.
    FYI...earlier we had same problem but creating new report on this multicube resolved problem. But this time, we have a new KF added to the infocube(IC1). But no change to the reports are made. Even though problem occurs.  I even transported all the rules, multicube and infocube.
    Please help me identify what could be the cause for it.
    -Raj

    Gupta,
    Thanks, this resolved my problem.
    But here;s another issue that came up now.
    I have a keyfigure (conversion factoor to EA) as attribute to master data infoobject (zmatnr). I have this included in the multicube. On the query, I have created a replacement path variable for conv. factor and this works well with all reports except this sales report which has key figures included from multicube(from multiple infocubes in muticube. Any idea what is that i am doing wrong?
    thanks

  • Query problem with accumulated key figures

    Hi BI Gurus!
    I have a report problem that I hope you can help me with!
    In my report I have 2 key figures. One for accumulated revenue previous year (KF1) and one for accumulated revenue current year (KF2). Both key figures should be presented in a graph in monthly buckets.
    January figures from both the key figures shoule be presented in the same bucket. Therfore I can't use 0CALYEAR since we have the "year" information in there. Instead I'm using 0CALMONTH2 which is only two digits, 01 for January. That way I can map figures from both previous year and current year in the same bucket.
    I need the figures to be accumulated and this is what I have problem with. When I run the report today in February 2010 it looks like this:
    Month   KF1   KF2
    01        10     15
    02        10     20
    03        15    
    04        10    
    05        20    
    06        10    
    07        10    
    08        15    
    09        15    
    10        20    
    11        20    
    12        10    
    This is how I would like the report to look like:
    Month   KF1   KF2
    01        10     15
    02        20     35
    03        35    
    04        45    
    05        65    
    06        75    
    07        85    
    08        100    
    09        115    
    10        135    
    11        155    
    12        165
    I have tried to use the setting "accumulated" for the key figures but then I get this result:
    Month   KF1   KF2
    01        10     15
    02        20     35
    03        35     35
    04        45     35
    05        65     35
    06        75     35
    07        85     35
    08        100   35
    09        115   35
    10        135   35
    11        155   35
    12        165   35
    Since the KF2 is revenue for current year and I run the report in February I don't want any figures to be displayed in Mars...
    I have tried to restrict the key figures by 0CALMONTH2 and 0CALYEAR. The KF1 is havein a restriction to only show values for 0CALYEAR - 1 and an interval for 0CALMONTH2 from JAN - DEC.
    The KF2 is having a restriction to only show values in the interval "first month in year - current month" (in this example JAN - FEB) for 0CALMONTH2. And current year for 0CALYEAR.
    Despite my restrictions for KF2 the numpers repeats itself for every month...
    Any suggestion how I can resolve this?
    Best regards
    Anders Florin

    Hi Khaled and thank you for trying to help me!
    I agree with you and think the users should accept the report as it is. But they are claiming that top management will not accept this and they would really want this to be fixed the whay that they want. I have tried to push back on this and said that I'm not sure that it can be resoleved and that it could cost them a lot of money if I try.
    But I will try to resolve it for them if I have spare time in the end of the project. I have not promised them anything but it would really be nice if I could fix it.
    So when you say I need to use a structure and a calculated key figure. How should the calculated key figure and the structure be configured?
    If I use a structure in the rows I guess I can't use same object in calc.key.figure right? Like if I use 0CALMONTH2 in the structure I'm not able to restrict the key figure with the same object? If that is correct I also have a ZMONTH object, different story why I have that... , that I can use in the same way as 0CALMONTH2. Or is this only a problem when I use "local" formulas within the query and not using a "global" calculated key figure? Cause I have only used the "loacal" formula calculated key figure in this report....
    Br
    Anders

  • Query design question - Adding Key Figures (NW04s)

    I have a simple query defined as follows:
    -- Rows:
    2 characteristics with result 'Always suppress'
    -- Columns:
    1 characteristic (posting period)
    1 Structure with 2 calculated key figures
    I want to add a formula that adds all the CKF's on each row and displays only once on the far right of row. Best method?

    Hi,
    You can go ahead with restrictions for keyfigures with two variables. One variable is for ready for input and another variable with customer exit which should pick the first month of the year entered in the previous variable.
    Ex: if a user enter a month for 02.2008, then the customer exit will pick the year based on the enterd month and finds first month of that year and display the data with month ranges.
    In the variable you have take value ranges.
    Reg
    Pra

  • Error CL_RSD_MULTIPROV  in Query Designer while restricting Key Figures

    Hello,
    I am trying to create Query on Multiprovider in Production envirnoment.
    I drag  key figure in row and try to restrict it to Product Hierarchies as I don't want to create restricted  Key figure.
    While Saving Query I am getting following  Error Massage.
    'System error in Program CL_RSD_MULTIPROV and Form GET_PART_IOBJNM_CMP-01'.
    When I save Query without giving any restriction in Key Figure . I could save it.
    Please suggest in above error.
    Thanks and Regards,

    Hi,
    Check the note 1090490.
    hope this helps,
    Regards,
    Rama Murthy.

  • Query regarding characteristics and key figures

    Hi All,
    Can anybody pls tell me in what scenarios a key figure can be used as a attribute of a characteristic?
    what are the scenarios in which each type of DSO can be use?

    Hi,
    Can anybody pls tell me in what scenarios a key figure can be used as a attribute of a characteristic?
    if  your key figure in trasnctional data level it's give you the Fact.
    If you use your key figure in your master data lvel it's give you the present truth.
    Like this you have 0Material and Material price has the attribute of 0Material.
    read below link
    http://help.sap.com/saphelp_nw04/helpdata/en/dd/f470375fbf307ee10000009b38f8cf/content.htm
    what are the scenarios in which each type of DSO can be use?
    We have 3 DSO in BI 7.
    1. Standard DSO : it's contaions 3 tables (New,Active,Change log tables) : If you want overwrite funcationality go for this dso
    2. Direct Update DSO : It's Contaion only Active Table : If you want write some data using with  APD and BAPI go for this dso.
    3. Write Optimized DSO : It's Contaion only Active Table : If you want load mass uploads and stageing purpose we use this dso.
    Hope it helps you.
    Regards,
    Venkat.

  • How to add the required characterists and key figures to drill down report?

    hi,
    i am creating a drill down report using t.code FKI4. however i noticed that some of the characteristics and key figures required by me is not listed in the report catalog. how can i add the required characteristis and key figures to the report catalog?

    Hi Inna,
    Based on my research, a drilldown report is a layout design that at first hides complexity and enables the user to toggle conditionally hidden report items to control how much detail data they want to see. Drilldown reports are used to change the report
    layout interactively. So it wouldn’t affect the rows displayed in the outmost group. Though some rows are hidden when the report is initially run, it will still count them. This is by design.
    Furthermore, if I understand correctly, you also expect the outmost group is a dynamic group depends on the drilldown action, right? As per my understanding, this function still cannot be achieved at this moment.
    Thanks for your understanding.
    Regards,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • 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.

  • Problem with aggregation of Key figure

    Hi All,
    I am having aggregation problem with the KF, i have created a RKF AvgVeh with a constant selection on part#, and now i am using this in my CKF Rxz = avgveh * part#, the char in the cube are Supplier and VL the the value of Rxy is correct when it drilldown by VL(for each individual VL but the result row is different) but when it's aggregated by Supplier its showing a different value its showing the result row value but actually it should show the sum of all the values for each VL, can any one help with this.
    VL          Rxz
    VL1          58,558.71
    VL2          154,629.00
    VL3          101,090.40
    VL4          659,843.80
    VL5          47,715.03
    VL6          19,286.52
    VL7          31,367.04
    VL8          15,041.50
    VL9          142,018.05
    VL10          68,092.36
    VL11          991.25
    Result Row      17,179,838.75 (This should actually be 1298633.66 sum of the above values, but shows different value which is same if there is no constant selection)
    supplier     Rxz
    Company A    17,179,838.75(this should be 1298633.66)
    Company B    890899
    Thanks in advance,
    shetty.

    HI.
    We have a simiarl problem.  Have you found any resolution?
    Regards
    Uday

  • Calculated Key Figures Corrupted in a BEX Query

    Hello SDN's,
    We are facing an weird issue in BEX Query. As part of Enhancing the query, We have created a new CKF and added in the Columns for the required CKF. It prompted for a Transport request and saved the Query elements for more than hour. Now the Query is throwing an Error messages where in more than some 30 CKF's got corrupted. When i check the CKF definition for all the corrupted key figures there is not Formula or Calculation.
    Below is the message which we can see in the BEX query for Corrupted Calculate Key Figure.
    Diagnosis
    Element ' XXX ' cannot be analyzed by the analytic engine without a definition.
    System Response
    Without a valid definition, the element will be ignored by the analytic engine.
    Procedure
    Provide a valid definition for element 'XXX'.
    Could anyone please help me to retrieve query back to normal ???. Your are inputs are appreciated
    Thanks,
    HA

    yo could try rsrt in bw and try to regenrate the query thats all i got. .otherwise always make a copy before you start working on a query. if it still is coruupted then you will have to recrate it. if the query is in your bwq maybe the basis can do a transport( not recomended)back. good luck..

  • No values when using key figure with constant selection?

    Hi experts,
    I have built a Webi on top of a universe that is sitting on top of a Bex query.
    In my Bex query I have a bunch of key figures defined that are restricted on time and category.
    This Webi works fine.
    Then I added an additional key figure that required a constant selection on time and on category.
    When I first added this to my Webi report it was fine. But once I refreshed my report showed no values.
    The report still seems to know that it is meant to retrieve values because it is bringing back the correct records - just no values. (ie I am showing time in my columns and it's showing the correct periods that are meant to have data)
    I refreshed a number of times and sometimes it would bring "#TOREFRESH" in some cells but once I refreshed again the cells are blank. Sometimes it would even show me a value in a couple of cells and others would show the "#TOREFRESH"
    I went back to my Bex query and removed the key figure with constant selection and the report is working again?
    Has anyone experienced something similar? Is there a way to make this work?
    Thank you!
    Sabine

    #TOREFRESH error message appears for smart measures (measure object with aggregation type Database Delegated) when the context for the measure is changed. Refreshing data will solve the issue. Database delegated measures are used for some non-additive aggregation which webi is not able to handle properly. If you are not using such aggregation, then tou can change the aggregation type to something other than database delegated to avoid #TOREFRESH.

  • Key figure is displayed as 2.007 not 2007, any solution?

    Dear Sirs,
    I have a key figure called Year, of type Int 4. This is being filled from a day using the DATE_YEAR function in the update rule.
    When it is displayed in Bex Web it is shown as 2. 007 (with a dot and a space). As far as I can see it also saved in this format in the actual data.
    How can I display this as 2007 and not 2. 007 ?
    I have tried different things, using the nodim() and the trunc() in the update rule. I have also tried to change the scaling factor in Bex Query designer on the key figure. 
    I am aware that changing the display format in SU3 could solve it, but I would like to solve it independant of the different users, and make it only valid for this key figure.
    Can anyone help me?
    best regards,
    Jørgen Ruud

    Hello,
    this will not help as the dot in the number represent the thousand notation, so by multiplying it with 1000, it will become 2. 007. 000.
    So I guess my question can be summed up as: how do i remove the thousand notation for a given key figure?
    regards,
    Jørgen
    Edited by: Jørgen Ruud on Jan 8, 2008 9:38 AM

Maybe you are looking for

  • Photoshop CS2 and Windows 7

    I have Photoshop CS2 and recently acquired Windows 7.  I want to bring images in directly to Photoshop but the images go through Photo Gallery in Windows.  I can import them into PS, but i want them to come into PS directly.  Also I cannot include im

  • Universe hints not working

    Hi, I am facing performance issue while execute BO report against universe using Oracle database. I have applied hints to universe at connection level as custom parameter. But when i try to create any report. hints is not appearing in report queries.

  • SQL server requirement for sharepoint 2013

    Hello All, currently i have installed SharePoint2013 in server farm mode, and i have used SQL Server 2008 R2 for DB. Can i use SQL Server 2012 for SharePoint 2013? Thanks

  • Silent installation of Cloud agent 12c failed on a windows 2003 host

    Hello All, I've done multiple installations by silently installing the cloud agent 12c using a response file. However, the configuration portion failed on this one windows 2003 host. Has anyone seen this? I've searched on metalink and see other probl

  • PS CC, loads but then crashes before i can do anything. any ideas as to what i could do?

    I havent run PS CC for a couple weeks, and I have not changed anything on my computer that i am aware of (is a brand new build). Today, I went to mess around with PS and possibly edit some images but it woulndt load properly. Well, it loads but then