Count and Percentile calculations for various Lines in BEx Query.

Dear Experts
I working on a BEx Query at the moment and the output is required in the format below:
This and another report (which will be displayed above this report) will go into a WAD eventually.
I have Key Figure for 'Document Count' but not sure how to get the percentage displayed in the second line and also for the Top 3 Reason Codes (not having anything displayed across 'Top 3 Reason Codes' though). I have tried Selection and other ways but nothing worked so far.
Do I have to use Cell Editing by any chance or is there a way to work-around this.
Thanks in advance for your help.
Kind regards,
Chandu

You can achieve your report format by creating a Structure in rows with Cell definitions. Define each cell in COunt Document KF according to the row logic.

Similar Messages

  • Custom text component with different start and end points for each line

    I'm trying to create a custom component extending textArea in which each individual line in the textArea would have different start and end points.  For example, the start/end points for line 1 might be 20 pixels in the front and 35 pixels at the end but start/end points for line 2 might be 25 pixels in front and 20 pixels at the end, etc.  These boundary values would be passed in.  The width of the entire textArea component would be a fixed size.  The result would be something like this:
         Jack and Jill
              ran up the hill
      to fetch a pail of water
    depending on the boundary values of each individual line of course.  The custom component would take a string and render it in the text component with the appropriate individual line start and end points.  I'm trying to do this by adding the text component to the display with the passed in string and then adding in spaces in the beginning of each line and adding a "/n" at the end of the line wherever appropriate based on the start and end values for that line.
    Just wondering if I'm on the right track and if anyone has any advice on this.

    > Applying the marker places the same icon on all lines of the graph and I need a different one for each
    What do you have selected when you assign the marker? It
    shouldn't apply to all the markers on the whole graph unless you have all the existing markers selected when you apply the new one.
    Assigning marker designs is exactly analogous to assigning bar graph designs.
    If you have a single marker selected when you assign the new design, it will apply to only that graph data point.
    If you use the group select tool (or option-click with the direct select tool) to reclick on an already-selected marker until all the markers for the same line are selected, and then assign a design, the new design will apply only to the selected line. (You can extend the graph by adding more rows, and the new data points will inherit the marker for the line they are on.)
    The thread linked to below demonstrates in more detail how the marker designs are scaled:
    http://www.adobeforums.com/cgi-bin/webx/.3bc10970/0

  • Cash Discount Calculated for One Line Item and not for Other

    Hi All,
    We have devloped a Z program which is used to Write of InterCompany AR and AP recon Account to another GL Account. In this program to clear line item we have created a BDC which calls t-code FB05. Thsi program is running perfectly fine for all company codes.
    There is new company code SG20 for which it is not clearing the line items. It has created a Session in SM35, when we analysed the seesin we found that for some line items system is calculating Cash Discount and for some other line items it is not but the payment Term is same for all the douments with 3% 14days.
    I need your help in understanding that why for some line items system calculates the Cash Discout where as for others it is not calculation..also the Posting Date is same for all the documents.
    Please advise what could be the reson for this.
    Thanks!
    Regards,
    VIvek Srivastava

    Hi
    Cash discount is calculated based on the combination of baseline date and payment term conditions.
    Hence please check the baseline date for all the documents, in which the cash discount is not appearing.
    In your case, the possible reasons could be that 1) baseline date is different between these documents or 2) payment terms cash % is manually modified in the line item of the documents.
    Regards

  • Difference amount in sales order and billing document (For one line item)

    Hi Experts,
    User created sales order with 3 line items and billing document. but problem is that there is difference in value of sale order and billing only for line item 10. The remaining items values are same in sales order & billing doc.if I check in sales order condition I found that VPRS condition is used and the value is 692.13and the amount is 3245.26in sales order. But if suppose I check the same value in billing doc the value is 0.69 and the amount is 3245.28. Can u suggest me which configuration I have to check for this.
    I also checked change lock but there is no change in sales and billing document & Material
    Regards
    Sunina agarwal

    Morning Sunina
    Now consider this scenario
    Item a - 10
    Item b - 20
    Item c - 30
    and the validity of condition rec for item C is 31st of Jan
    after 31st JAN the record changes or there isn't any.
    In Copy control the pricing type is 'B' i.e., carry out new pricing.
    Now if the document is created in January it will take all the above prices. and this document is then billed in Feb. Now the copycontrol, whilst copying the prices, will predetermine the same.
    Now your task is to check if there was user intervention, check the pricing in order and check what condition types got affected in order and in billing.
    If your scenario is still not amongst the above cases...
    I don't know what to do, if you figure out please let us also know, god know when we would face the same scenario....
    Take care

  • What determines the price and tax calculation for consignment stock?

    Hi All,
    anyone knows how the price and tax are calculated for consignment stock? in other word, among the info record , contract or material master, what determines the price and the tax calculation for consignment stock?
    please advise, your input will be rewarded.
    thanks,

    First preceeding is taken by contract and then info records of consginment

  • Total Line in BEX query output

    Hello,
        I have a requirement, where we have to show just total line in output for BEX query. We want to hide {though hide feature will not work} line items that we process. How can we do it?
       Requirement goes like this:
       Let say for orders, we have order requested date and actual delivered date. The query formula processes all line items for given selection and measures ontime, late and early shipments based on date in variable exit we have. At output (that is in total line)query will write have % ontime late early.
       So for selection calmonth we need to show % ontime late early but for that we need to process all line items to get % calculation. So, how can I keep only total line in query output.
      For example: Output should look like for selection of calmonth, plant - product  or shipping point etc..
      Calmonth plant - % ontime late early or
      Calmonth product - % ontime late early or
      Calmonth shipping point - % ontime late early
      It is working in a way it shows all line items and total line at last. All I want is total line and ignore line items.
      Thanks,
      Aj

    Remove the drilldowns for the "detail" characteristics that you do not want to see. The report will then display only the "totals" that you do want to see.
    Hope this helps...
    Bob

  • How to define variable for value range in Bex Query?

    Hi
    How to define variable for Keyfig. value range on runtime like characteristic in Bex Query?
    Example: On runtime user select one of the following condition:
    1)User want to those records where amount is greater than $1000
    2)User want to those records where amount is greater than $1000 and less than $5000
    3)User want to those records where amount is greater than and equal to $1000

    Hi ,
    Need to Use exceptions & conditions for this scenario's  & need to create variable for exceptions based on condtions.
    Below document provides steps how to make selections at run time for a kfg.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60b33a28-dca2-2d10-f3b2-d2096b460b1e?QuickLink=index&overridelayout=true&48842368468641
    Regards,
    Seshu.P

  • How to edit the properties for existing variables in BEX query, so that I can get multiple input selections

    Dear fellow developers,
    I'm trying to edit an existing variable using BEX query, so that it can allow multiple input selections.
    As you can see in the screenshot attached, the option is selectable during creation.
    However, during editing of an existing field, this field (Details -> Basic Settings -> Variable Represents) is not selectable.
    Does anyone knows why, and how to remedy this?

    Yes you can do it at the table level.
    Go to SE11 enter table name as RSZGLOBV.
    Enter the technical name of variable in VNAM field..You need to change the value in VPARSEL column.
    Please make sure to get the where used list of this variable so that you can know the impact,if something goes wrong.
    Also change it in DEV and then transport across the landscape.
    PS:Same thing has been described in this blog as well
    Changing BI variable parameters
    Regards,
    AL
    Message was edited by: Anshu Lilhori

  • [All Platforms][Playlists] Play count and play history for songs to create personal charts

    Hi guys, I switched from iTunes to Spotify about a year ago and I really do like the service. Lately I checked out Apple Music and in comparison Spotify still kicks ass. However, it was incredible to have access to all of my old iTunes playlists again. Why? Because I created playlists with my personal charts, meaning intelligent playlists which sort songs by play count. I would love to see this feature in Spotify. Additionally you could also track when a song has been played, so I could create a playlist which lists my favorite songs from a specific time frame.  Best wishesDominik

    Sup man! I made the switch from iTunes about 3 years ago, but I have never gone back. Especially since I have a $5 / mo deal for Spotify premium for students, so premium is sick to use on the computer and transfer music painlessly to your electronic device. Cool stuff. Also, the algorithms that Spotify employs have unique shuffling programs implemented internally. They get numerous complaints about similar songs/artists playing in close sequence to one another. When this would happen (the original random number generator would obviously play the same artist within 3-4 songs because of pure chance and logistics), so they implemented a different algorithm as a fix. The new algorithm implemented a fix for this complaint (which was considered to be along the lines of the gambler’s fallacy theory… but that’s another long explanations) so that people wouldn’t complain as much. This switch happened within the past year, so people are just starting to notice how the shuffle feature has “improved”. This whole thing brings on the discussion of “what truly is random?” when it comes to the world of random number generators and the gambler’s fallacy. If you want to check out my Spotify playlists, my acct is: chrisheishman and my most popular playlist actually is “acoustic indie mix” with about 400+ songs and 200+ followers. You should check it out! Cheers & good luck with your music journey! Chris

  • Different value in sales order and billing document for one line item

    Hi Experts,
    User created a sales order with three line items say line item 10, line item 20, line30 and he did the delivery and billing also. Line item 10 value is 5024.26 EUR in Sales order
    At the time of billing the value of a line item 10 is increased by 0.02 i.e. 5024.28
    I asked the user cancel that invoice and the post goods issue. He cancelled the invoice and post goods issue. Then he created the PGI and billing now the value of line item decrease by 0.01(5024.27) again he cancelled the invoice and post goods issue. he created the post goods issue and billing. Now the value is correct i.e. 5024.26.
    User is asking me the reason can any one help me in this
    Note: price is copying from delivery to billing

    Morning Sunina
    Now consider this scenario
    Item a - 10
    Item b - 20
    Item c - 30
    and the validity of condition rec for item C is 31st of Jan
    after 31st JAN the record changes or there isn't any.
    In Copy control the pricing type is 'B' i.e., carry out new pricing.
    Now if the document is created in January it will take all the above prices. and this document is then billed in Feb. Now the copycontrol, whilst copying the prices, will predetermine the same.
    Now your task is to check if there was user intervention, check the pricing in order and check what condition types got affected in order and in billing.
    If your scenario is still not amongst the above cases...
    I don't know what to do, if you figure out please let us also know, god know when we would face the same scenario....
    Take care

  • Remove LIPS and VBUP entry for deleted line item on delivery

    How can we remove an entry in LIPS and VBUP for a delivery line item that has been deleted?  The delivery shows no line items when viewing with VL03N but the line item remains in LIPS and VBUP.  When we try to cancel the entire delivery we receive an ABAP runtime error due to these inconsistent entries.

    Hi Basavaraj,
    Please let me know how can I do it by table level. There is another post regarding having same issues
    http://scn.sap.com/thread/3384628
    But the answer he say use only for very few entries. I have around 100 entries similiar cases.
    Best regards,
    Shahid Malayil

  • Getting counts and divide by sum in a single Pivot query

    Hi,
    I have a pivot query which gives the counts of all codes. I also have to divide the count with the total in the same query.
    e.g
      col1          col2                   col3
    error_1       05-Jun-2012       parts
    error_1      05_june_2012     parts
    error_1      04_june_2012     consumables
    error_2      04_june_2012     consumables
    error_3      03_june_2012     parts
    .Now the output should have the counts/divided by sum multiplied by 100. Basically, the percentage.
    output will be something like
    error                     June-2012                                 May-2012                              Feb-2012 ....      headers
    error_1                    60%                                          0 %                                         0%
    error_2                    20%                                          0                                             0%
    error_3                    20%                                           0%                                         0%Any suggestions please?
    Thanks,
    Sun

    with
    t1 as
    (select 'error_1' col1,trunc(sysdate) - 1 col2 from dual union all
    select 'error_1',trunc(sysdate) - 1 from dual union all
    select 'error_1',trunc(sysdate) + 30 from dual union all
    select 'error_2',trunc(sysdate) + 31 from dual union all
    select 'error_3',trunc(sysdate) - 2 from dual union all
    select 'error_3',trunc(sysdate) + 30 from dual union all
    select 'error_1',trunc(sysdate) - 3 from dual union all
    select 'error_2',trunc(sysdate) - 2 from dual union all
    select 'error_3',trunc(sysdate) + 30 from dual union all
    select 'error_4',trunc(sysdate) - 6 from dual
    select col1,
           count(case to_char(col2,'mon') when 'jul' then 1 end) one,
           100 * ratio_to_report(count(case to_char(col2,'mon') when 'jul' then 1 end)) over () x,
           count(case to_char(col2,'mon') when 'jun' then 1 end) two,    
           100 * ratio_to_report(count(case to_char(col2,'mon') when 'jun' then 1 end)) over () y
      from t1
    group by col1
    order by col1Regards
    Etbin
    Edited by: Etbin on 8.6.2012 14:15
    used next month to keep english and slovenian 'mon' the same ;)

  • How to restrict values and apply condition for a characteristic in a query.

    Hi,
    I have to add two customer class(characteristic) fields to my query which is available as a navigational attribute in my multiprovider ( from which my query is built ).
    One field should give the values directly from master data. The values would be PV, CV, IT, OT. The other field should give only PV and CV based on the condition - Except CV, all others (ie. IT and OT) should be converted as PV.
    I like this to be achieved in the query level since i dont want to disturb the underlying cubes in the multicube.
    So i have two questions.
    1. How to bring two fields in the query for the same characteristic.
    2. How to achieve the condition in a characteristic for second customer class field mentioned above.
    Could somebody help me in solving this?
    Thanks in advance,
    Somenath

    Hi Somenath,
    you are absolutely right;)
    Besides the Third step
    Try to add two new Selections to your Structure as
    New Selection1 -> Set the Customer Class value to fix 'PV'
    New Selection2 -> Set the Customer Class value to fix 'CV'
    <b>you have to add</b>
    New Selection3 -> Set the Customer Class value to fix 'IT'
    New Selection4 -> Set the Customer Class value to fix 'OT'
    Fourth step
    Hide these four selections
    Fifth step: Add a new formula to your Structure
    (Customer Class == New Selection3)* New Selection1(Customer Class == New Selection4)* New Selection1(Customer Class == New Selection1)* New Selection2+Customer Class == New Selection2)* New Selection2
    Hope it helps
    Gabor
    ps: experts maybe suggest easier way...

  • Variable for calender month in BEX Query

    Hi all ,
    I am new to BI .
    Can any one please guide on how to create a month year variable that I can get calculated from a date..
    For Example
    if billing date is 01.02.2009 then my variable should have 02.2009 in Query   .
    Regards,
    Shashank

    Hi Shashank,
        You can achieve this by creating a customer exit variable for calendar month.
    Function module :
    READ TABLE i_t_var_range WITH KEY vnam = 'Date variable name ' INTO loc_var_range.
       IF sy-subrc = 0.
        year = loc_var_range-low(4).
        month = loc_var_range-low+4(2).
         CLEAR l_s_range.
         l_s_range-sign = 'I'.
         l_s_range-opt  = 'EQ'.
         CONCATENATE year month INTO l_s_range-low.
         APPEND l_s_range TO e_t_range.
       ENDIF.
    Hope this will help you. Let me know if you have any questions.
    Regards
    Suvarna

  • User Prompt for Date Range in Bex Query Analyzer

    I have a workbook that has two queries. The queries both require the user to enter a date range upon refresh. I want the user to be able to hit refresh, enter the date input into the dialog box and then both queries to use this date range for their input. I have seen this in other book, but when I click refresh on my book it only runs the first query. How do I get the second query to use the first queries input?

    use the same variable in both the queries. this will let the user enter the date in a single variable and this will refresh both the queries.
    rgds, Ghuru

Maybe you are looking for

  • Report Generation Toolkit - Prints data from a previous report in Word

    I am running an executable from the "system exec.vi" created with Labview 6.1. I am using the Report Generation toolkit vi's to create a report in Word that prints simple Title with test header and then appends a Table with measurement data. The prob

  • Values for a field in table

    Hi Experts          Can you explain me that, in table some of the fields has predefined values, whether its a value table or what.        Pls explain, how to set predefined values for particular fields to our own tables. Thank in advance. Regards Raj

  • Local Director SNMP for CPU and Memory

    Is there any way to get the CPU and memory utilization from a Local Director using SNMP? When I do an SNMP walk, I don't see any objects for CPU and memory. Thank you

  • Session cookie not setting for secure domain in Chrome

    I've been fighting with a login issue for the past few hours thinking it was my fault. I'm tired, so my IQ is cut in half right now. Makes for a very plausible scenario. However, I finally tried it in Firefox without issue. It's just a simple login f

  • Photoshop cs3 cannot open files

    When I try to bring in a file and click on open in photoshop cs3 run on windows xp, the directory of files will flash for a second then disappear and photoshop freezes up.  I have to then go to the task wizard to end it and when I try to end it it sa