Ranges (intervals) in query

Dear Experts,
There is a requirement to design a Query with Graph where I want to show on X-Axis the value range from zero to ten (0-10), then ten to twenty (10-20) and so on. The intervals are not constant for example, after 10-20, next interval could be 20-25, and then 25-30,....... And, the "Number of Records" (which is a key-figure) should be summarised within these above intervals.
Kindly care to share your invaluable thoughts on how to achieve this.
Thanks,
Shalini.

Hi Khaled,
I have to build a graph where x axis represents interval values say 0-10, 10 20 so on and in y axis i have to show source percentage. To achieve this i have to first design in bex query.These intervals shuld summarise the number of cases done i.e., if number of cases done is 9 it shuld show "9" within the interval of 0-10 and so on. Source % means number of cases done divided by grand total. It will come in "y" Axis.
Hope i made my self clear
Thanks for your reply
Shalini

Similar Messages

  • Changing the Number range intervals

    Hi Gurus,
    I have query on changing number range intervals in PA. Earlier number ranges has been set at the time of implementation and recently they added one more company and they ask me to set a number ranges for new employees with the new series.
    While inserting new number ranges for personnel number it is saying that transport need to be done manually, and it is giving the following message.
    *In the target system, all intervals*
    *of selected number range object are*
    *deleted first so that only the exported*
    *intervals exist after the import.*
    *The number statuses are imported with*
    *the value that they had when exported*
    *Dependent tables are not transported or*
    *converted.*
    If it delete first then export means will it affect the exisiting number in the productions system. Because already other employees are numbers are maintained in the same server it should get affected.
    Kindly clarify the same.

    Hi Sikindar,
    Thanks for the info,
    But the problem is in production client if i enter the transaction code PA04 it is giving a error as " you are not authorized to use transaction PA04"
    What should i do if it throw this kind of error. Even i am not able to use SPRO option in production server.
    Please help"
    Regards,
    Pradeep Krish

  • Several ranges in a query

    Is it possible to allow the end user to specify several ranges in a query variable? Standard variable types are : single value, several values and range, so I think it could not be done directly. But maybe this problem is common and a good solution already exists?
    Thanks in advance.

    Hi Andrey,
    I assume that you mean you want to set filter values on a characteristic.  You want several filters, some or all of which are ranges (between filters).
    I can tell you how to do this in BEx Analyzer (queries embedded in Excel workbooks).  Users can do this manually using the Set Filter interface and selecting the Value Ranges from the drop down box at the top left.  If both ends of the range are in the master data, they can select each end of the range.  If the ranges they want are not in the master data, then they simply type in the range with a semicolon ( between the two values.
    If you want to do this programmatically, so the user does not have to use the Set Filter interface, it is possible, but problematic.  It requires quite a bit of Visual Basic coding and is not recommended.  See https://websmp201.sap-ag.de/~sapidb/011000358700011836292001
    which includes a warning against implementing just this sort of thing (see page 2).
    If you want to do this for a Web report, I'm not an expert in that area.  Hopefully someone else who is can respond.
    - Pete

  • Can I use SYSDATE in the WHERE clause to limit the date range of a query

    Hi,
    Basicaly the subject title(Can I use SYSDATE in the WHERE clause to limit the date range of a query) is my question.
    Is this possible and if it is how can I use it. Do I need to join the table to DUAL?
    Thanks in advance.
    Stelios

    As previous poster said, no data is null value, no value. If you want something, you have nvl function to replace null value by an other more significative value in your query.<br>
    <br>
    Nicolas.

  • Can we create range variable for Query Key Date

    Hello Gurus,
    Can we create a range variable for Query Key Date ? when I tried to give a range of values for Query Key Date, I am unable to find Range Values option. I found only Single Values.
    so, Please let me know if we can use Range variables for Query Key Date ??
    Thanks in advance,
    Regards,
    Aarthi

    Hi Aarthi,
    This is relevant for the time dependant master data that is being pulled in thw query. Like if you are using a nav attr in the query and this nav attr is time dependant, then which record (from the char master data) is to be pulled into the report, depends upon the key date that you specify.
    The default key date value is the date on which the query is executed, that is <Today>.
    Hope this helps...

  • Mass deletion of document number ranges intervals for several company codes

    Dear experts,
    We are running version ECC6 and are about to go-live a lot of company codes simultaneously. We would like to delete satndard number ranges intervals for these company codes.
    Is there a way to delete the number ranges intervals (which have not been used) for several company codes at the same time ? I'm looking for a transaction or a program similar to OBH1 (used for the creation of number ranges ).
    Thanks in advance for your help.
    Best Regards,
    Steven

    Hi
    I am also not aware of such T.code to delete number ranges for a company code.
    Alternatively, you can go to FBN1 in change intervals mode.
    From the Menu Select all and Press Shift + F2 (Delete interval).
    Ofcourse, this have to be done individually for each co. code.
    Regards

  • Calculated Age and Age Ranges in a Query

    Hello,
    We are using 3.5 Query Designer.
    I am trying to create age ranges in a query. The InfoProvider at this point (I've gone very simple) is InfoObject, 0PERSON.
    I've created a calculated key figure (CKF) called age which I have used a formula to define. The age is calculating correctly. Age has  'Calculate Result As...' = Summation. And in the 'Enhance', 'Time of Calculation' is set to Before aggregation. Number of decimal places set to 0. Now I've created a CKF, AGE_GE_40 which has as its formula 'COUNT(('Age' >= 40)). I've created an additional CKF, AGE_LE_39 which has a formula 'COUNT(('Age'<=39))'. Both of these have the 'Summation' set in the calculation section. The query contains 0GENDER, 0PERSON with AGE_GE_40 and AGE_LE_39 and Number of records as the key figures in the columns. When executed initially, all of the result rows are correct. The problem is when I remove 0PERSON, the result rows only give me 1 per gender. This seems like an easy thing to do, why is it not working?
    Thanks for any help,
    Diane Merrill

    Diane,
    For each row in the query data, there is only one age value calculated, which is the aggregration of all records which fulfills the row's characteristic value combination. Thus, when there is Gender & Person columns in the query, each row calculates an age value for the Gender/Person combination, which is essentially the same as for each person, because each person has one gender value. However, when you remove person from the columns, there will be only two values for gender, and the age is calculated as the sum of ages for all records with the same gender value. To reveal more on this, you can add the Age key figure into the query columns, and run the query with only the gender (i.e. without person). Once you see the age value for each row, it should be clear to you.
    Please reward points if this is helpful.
    Wayne

  • Date Range Selection in Query Templates

    Hi,
    Can someone please tell me how to use <b>Date Range Selection</b> Tab details in SQL Query and TAG Query (Using Examples).
    Thanks in advance
    Muzammil P.T

    >>>>>>>>>>
    Re: Date Range Selection in Query Templates   
    Posted: Feb 15, 2007 6:43 AM    in response to: Muzammil Ahamed       Reply      E-mail this post 
    Hi Muzammil,
    In data range section you can have multiple options like setting start datetime and end datetime.. And you can set the shift (or) time period and also the format of the time periods.
    Primarily we use the start date and end date querying to fetch data between two time labels. I can explain this one with example..
    You have batch production table with columns Production Time, Batch Id, Production Qty. Then you want all the details between the 02/02/2007 to 05/02/2007.
    Solution :
    1.Map 02/02/2007 with Start date.
    2.Map 05/02/2007 with end dare.
    Now these two become the variables [SD] and [ED].
    Now you have mentioned the date range, but you need to mention for which column these things to be applied. For that
    3.In Query tab enter Production Time column name in Date column at the bottom.
    Now you have written query like Select * from batch prodcution where production time > 02/02/2007 and production time < 05/02/2007.
    4. Even those values you mapped (SD and ED) you can change from the front page through Java script.
    Like wise you have so many other advantages also.
    If you have any other specific doubt let me know.
    Thanks,
    Rajesh.
    PS : Please ward points if answer is useful. <<<<<<<<
    Message was edited by:
            David Dreyer

  • Transporting Number range Intervals

    Dear SRMers
    System Information: ECC 6.0,
    We created Z Number range objects in ECC system A and transported them to ECC System B.
    The custom objects were transported, but the number range intervals did not transport to the target system. My question is do we need to transport the number range intervals for the custom objects seperately?
    Points will be rewarded for answers.
    Thanks in advance,
    Best Regards,
    Bob

    Hi,
    Usually best practice is to not transport number range but to recreate it in the target system.
    However, technically it is possible.
    Kind regards,
    Yann

  • Number range Intervals

    Hi!
    Where can I see the Number range Intervals for NR Object
    "Business Partner"  ?
    Bye
    Sas

    Hi,
    Please refer to the TCode SNRO.
    Thanks,
    Sriram Ponna.

  • 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

  • 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

  • Passing the Date range within the query

    Hi ,
    In my query , I have two date characteristic, and while doing the selection I have to do selection on only one date field.
    This selection is a date range selection , So I have used a selection variable for this.
    Can anyone please let me know if it is possible to pass the selection range to other variable. Is it possible to use Customer exit to pass the complete range.
    Thanks
    Altair

    Hi,
    You can do it in the user exit.And that is the only approach to transfer the values of one variable to other variable .
    Search this forum for the code. you will find  lot of postings.
    With rgds,
    Anil Kumar Sharma .P

  • Opendoc date range into Bex query

    We are having an issue when trying to pass a date range in an Opendoc link. The report is built off a BEx query,  within the report we have an Opendoc link into a child version of the report. I can pass all the other prompts with no issue except for one which is the date range.
    I am defining the date range as "[19000101]..[19000101]" but we keep getting this error message:
    Has anyone lese had this issue?
    Thanks

    Hi,
    Try This
    "[Date(2014,04,01)]..[Date(2014,04,11)]"
    "[Date(yyyy,MM,dd)]..[Date(yyyy,MM,dd)]"
    http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_opendocument_en.pdf#page=26
    http://<servername>:<port>/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=Aa6GrrM79cRAmaOSMGoadKI&sID
    Type=CUID&sRefresh=Y&lsRTime+Period:=[2000..2004)
    http://<servername>:<port>/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=Aa6GrrM79cRAmaOSMGoadKI&sID
    Type=CUID&sRefresh=Y&lsRparamStringDR=[h..i]&lsRparamNumberDR=[7..8]&lsRparamCurrencyDR=[3..4]&lsRparamDat
    eDR=[Date(2003,6,7)..Date(2003,6,8)]&lsRparamDateTimeDR=[DateTime(2003,6,1,7,1,1)..Date
    Time(2003,6,1,8,1,1)]&lsRparamTimeDR=[Time(1,1,7)..Time(1,1,8)]&lsRparamUnbound1=(..6)&lsRpara
    mUnbound2=[6..)&lsRparamStringR=[a..d]&lsRparamNumberR=[1..3]&lsRparamCurrencyR=[1..3]&lsRparam

  • Transport Number range intervals

    Hi,
    I have created a custom number range with intervals (from & to number range values) i need to transport this to production and unit testing boxes. how to create a transport for this.
    and also it is advisable to transport number ranges?
    Thanks
    Sa_R

    Hi,
    Thanks for your reply.
    But my doubt is , the number range is newly created. have 250 subjects inside , User already maintained the intervals in the config box. So i need to transport this higher box. If i am transport this , whether all other number ranges get deleted? including SAP standard also?
    Thanks
    Sa_R

Maybe you are looking for