Grouping of measures in a range

Hello -
I want to create a report in 11g such that if the report looks like this:
  Region
  District
  Market
  Sales
  Eastern
  Region
  YoungsTown
  District
  YoungsTown
  10
  Eastern
  Region
  New
  York District
  New
  York
  12
  Central
  Region
  Chicago
  District
  Chicago
  25
  Western
  Region
  Denver
  District
  Denver
  18
  Western
  Region
  Dallas
  District
  Dallas
  45
  Western
  Region
  Denver
  District
  Applewood
  35
  Western
  Region
  Dallas
  District
  Houston
  90
Then my actual report should look like this:
  Region
  Sales Range
  Sales Count
  Eastern
  Region
  1-10
  1
  Eastern
  Region
  10-20
  1
  Central
  Region
  20-30
  1
  Western
  Region
  10-20
  1
  Western
  Region
  30+
  3
Thanks in advance

Srini -
The dash is a way of addressing, normally one would use comma, I use dash. I am not sure how it did offend.
The table view does not work either. The data aggregates and the range is being calculated on the aggregate rather than the grain. In this scenario, the sales would be 235 so the range shows as 30+
Thanks !

Similar Messages

  • Grouping of measures in accounts dimension Essbase

    I am new to essbase .
    I am developing a cube for one of the requirements which has got
    following measures in accounts dimension
    1) Allocated quantity
    2) Picked Quantity
    3) Shipped Quantity
    4) Allocated Amount
    5) Picked Amount
    6) Shipped Amount
    Now I want to group these measures in 2 groups viz a) Qtys b) Amounts
    means
    Qtys : Allocated quantity
    Picked Quantity
    Shipped Quantity
    Amounts : Allocated Amount
    Picked Amount
    Shipped Amount
    wanted to show these groups along with its measures in Excel add in report .
    I am using Essbase Integration Services 11 to develop the metaoutline
    How to define these groups in accounts dimension
    Regards
    Amit

    If you have a way to differeniate these measures you can add user defined measures in EIS. One way you could differeniate them is to put in filtering sql the uses like clauses to select members with Quantity or amount in them and have them put under the headings you want

  • Can I measure AC voltage using FP-AI-102? I want to measure in the range of 0-120 VAC

    Can I measure AC voltage using FP-AI-102? I want to measure in the range of 0-120 VAC

    Hello Luis,
    The update rate on the AI-102 module is 360Hz, which means that you can only accurately acquire waveforms with frequencies below 180Hz. 
    FieldPoint wasn't made for high speed measurements, so you will have to make sure that you are able to acquire the waveform you want to with the hardware that you have.
    If you want to know how you would do the acquisition, I urge you to take a look at the LabVIEW shipping examples.
    Help»Find Examples... and browse to Hardware Input and Output»FieldPoint»Analog IO
    As for writing to the file, you can take a look at examples under Fundamentals»File Input and Output.  You can use the functions included in the Functions Palette under Programming»File I/O.
    I hope that this helps!
    Kameralina
    Ask NI (ni.com/ask)
    Search The KnowledgeBase
    NI Developer Zone
    Measure It. Fix It. ni.com/greenengineering/
    NI Vision ni.com/vision/

  • [svn] 4547: Change Group's measured minimum size computation.

    Revision: 4547
    Author: [email protected]
    Date: 2009-01-15 16:23:22 -0800 (Thu, 15 Jan 2009)
    Log Message:
    Change Group's measured minimum size computation.
    In this change:
    If a Group clips content or resizeMode is scale, then measured minimum is zeroed out.
    QE Notes: A couple of FxContainer and FxDataContainer tests will fail. Other tests that depend on measured minimum size of a Group with clipContent="true" or resizeMode="scale" will fail and need to be updated.
    Doc Notes:
    Bugs: None
    Reviewer: Hans
    tests: compile, checkintests, mustella (gumbo/core/..., gumbo/components/FxContainer, gumbo/components/FxDataContainer)
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as

    FYI - This regression has been filed here: http://bugs.adobe.com/jira/browse/SDK-31989

  • High frequency measurement 2 counters range

    Hello,
    I know this info is somewhere but I can't find it.
    When using a Counter/timer to measure frequency there are multiple methods.
    i.e. Low Frequency with 1 counter and high frequency with 2 counters.
    What is the definition of a "low frequency" and what is the definition of a "high frequency"?  i.e. low frequency = frequencies below 100 Hz 
    Also what is the definition of a "large range"?
    Thanks
    Dan

    Hi Dan
    There isn't a specific bandwidth that is defined for use with either the one-counter or two-counter method. However, located in the NI-DAQmx help file there is a section detailing the quantization errors that arise when using either method with a variety of input frequencies. By referring to this information you should be able to determine which method will produce the smallest error in your application and hence which method will be preferable. This help file also explains the errors associated with the large-range two-counter method.
    To locate the help file, you should select Start»All Programs»National Instruments»NI-DAQ»NI-DAQmx Help, and search for 'quantization error'.
    I hope this helps, just let me know if you'd like anything clarified or if you have any other questions on the matter.
    Regards
    Jeremy T
    Technical Marketing Engineer
    National Instruments UK & Ireland

  • GL Group Account customizations - alpha-num range in "natural" segment

    OBIEE 11g
    BIA 7.9.6.3
    EBS 12.1.3
    Trying to configure custom GL Group Accounts per the BIA documentation and not all of our custom groups are being populated in w_gl_group_account_d. Basically none of the out of the box group numbers are meaningful to us, so we configured the 3 csv files with 29 custom group accounts - only 10 are being populated in the group account table, and I am still looking for the relevant log file to determine why only the 10 (a few of them do have alpha-numeric values).
    Chart of accounts is 9 segments. Segment 4 ("Category") is set up in EBS as the "natural" segment - however, it has both numeric and alpha-numeric values, i.e.:
    101,140,140,FED REV
    101,199,199,FED REV
    101,F101,F108,FED REV
    101,F110,F115,FED REV
    101,212,212,FIXED CHARGES
    101,213,213,FOOD SRVC
    101,203,203,INSTR
    101,B120,B142,LOC REV
    Question 1: Will mapping non-numeric ranges in the file_group_acct_codes csv file even work? Has anyone done this successfully?
    Question 2: If it is not possible to use alpha-numeric ranges in this csv file, that forces us to use another gl segment - will using another segment that is not set up as the "natural" segment in EBS work? Segment 7 ("Object") is numeric, and can also be mapped to custom gl group names.
    Thanks in advance for any assistance.
    Rhonda

    As it turns out, the main problem we had was that the account ranges have leading zeros, and those leading zeros got stripped when the csv files were opened in Excel then saved to the server. The account ranges now look like this:
    101,0140,0140,FED REV
    101,0199,0199,FED REV
    101,F101,F108,FED REV
    101,F110,F115,FED REV
    101,0212,0212,FIXED CHARGES
    101,0213,0213,FOOD SRVC
    101,0203,0203,INSTR
    101,B120,B142,LOC REV
    After re-running a full load it looks like things are populated correctly in both the dim and fact tables. We are still in the process of verifying that the alpha-numeric codes are working properly but at first glance it appears so.
    I'd still like to know the answer to my second question though, whether you can map gl account nums to a segment that is not the "natural" segment in EBS.
    Thanks for the assistance.
    Rhonda

  • Group by week between date range

    Hi,
    i'm having a table for documents. The documents are received from diffeent dates. I've to calculate number of documents received on weekly basis.
    I need an sql to count the number of documents between two given dates grouping by weekly.
    My week starts on Sunday and ends with Saturday.
    I've tried group by with to_char(documentdate,'IW') , but this will take Monday to Sunday as a week & the incomlete weeks i'm not able to calculate. ie : in the below output the date range 1/28/2007 - 1/31/2007 is not a complete week . ( ie saturday to wednesday)
    I need out put should be like this for Date Range: 12/31/2006 to 1/31/2007
    week               count of documents
    12/31/2006 - 1/6/2007 10
    1/7/2007 - 1/13/2007     40
    1/14/2007 - 1/20/2007     30
    1/21/2007 - 1/27/2007     20
    1/28/2007 - 1/31/2007 10
    Please help me to get this.....
    (columns in documents table is documentid and documentdate)

    your're very close with IW. you just need to shift the data to get it to fall within the correct range. btw, you don't need julian dates. it's overkill
    trunc(date+1,'IW') will push the date into the correct week range (IW will put sunday one week earlier than you want, so push it ahead a day before truncating).
    then subtract 1 day from the result to get it to display with sunday's date instead of monday
    trunc(mydate+1, 'IW')-1
    and the week end date is simply trunc(mydate+1, 'IW')_5
    select mydate, to_char(mydate,'Dy') dy,
    trunc(mydate+1,'IW')-1 wk_Start,
    trunc(mydate+1,'IW')+5 wk_end
    from (select sysdate-rownum mydate from dual connect by level < 20)
    order by 1

  • GROUP BY generating addition time ranges

    Hello guys,
    I have a little problem that I've been working on since this morning and I can't find any solution... So, I'm asking for your help!
    I'm using Oracle 10g, and I'm trying to have a full calendar even when records are missing in the base table. For example, let's take this scenario:
    CREATE TABLE requests
      code VARCHAR2(100),
      request_time DATE
    INSERT INTO requests(code, request_time) VALUES('A', TO_DATE('01/02/2012 13:50', 'DD/MM/YYYY HH24:MI'));
    INSERT INTO requests(code, request_time) VALUES('A', TO_DATE('01/02/2012 16:35', 'DD/MM/YYYY HH24:MI'));
    INSERT INTO requests(code, request_time) VALUES('A', TO_DATE('01/02/2012 19:11', 'DD/MM/YYYY HH24:MI'));
    INSERT INTO requests(code, request_time) VALUES('B', TO_DATE('01/02/2012 19:12', 'DD/MM/YYYY HH24:MI'));
    INSERT INTO requests(code, request_time) VALUES('B', TO_DATE('01/02/2012 23:12', 'DD/MM/YYYY HH24:MI'));
    INSERT INTO requests(code, request_time) VALUES('C', TO_DATE('03/02/2012 10:05', 'DD/MM/YYYY HH24:MI'));It's a simple table with a code and a request time. Every time a request is processed by a server, we insert a record in that table. What I would like to produce is something like this:
    For every day where a request has been processed, I should have a result like this:
    A  01/02/2012 00:00 NULL
    A  01/02/2012 01:00 NULL
    A  01/02/2012 02:00 NULL
    A  01/02/2012 03:00 NULL
    A  01/02/2012 13:00 1
    A  01/02/2012 14:00 NULL
    A  01/02/2012 15:00 NULL
    A  01/02/2012 16:00 1
    A  01/02/2012 17:00 NULL
    A  01/02/2012 18:00 NULL
    A  01/02/2012 19:00 1
    A  01/02/2012 20:00 NULL
    A  01/02/2012 21:00 NULL
    A  01/02/2012 22:00 NULL
    A  01/02/2012 23:00 NULL  -- 24 records per code and per day with requests.
    -- same for B
    B  01/02/2012 00:00 NULL
    B  01/02/2012 01:00 NULL
    B  01/02/2012 02:00 NULL
    B  01/02/2012 19:00 1
    B  01/02/2012 20:00 NULL
    B  01/02/2012 23:00 NULL  -- 24 records for the 01/02
    -- no request the 02/02 so no records for that day
    C  03/02/2012 00:00 NULL
    C  03/02/2012 01:00 NULL
    C  03/02/2012 10:00 1
    C  03/02/2012 22:00 NULL
    C  03/02/2012 23:00 NULLI should have 24 records per code (by day) where a request has been logged. So, if we have 2 different codes, I should have 48 records. The problem is that I don't have records all day long. Sometimes, some ranges are empty and I need these empty ranges in the final result.
    Anyone can help?? Honestly, I tried but I can't find any solution...
    Thanks,

    Hi,
    user13117585 wrote:
    ... For example, let's take this scenario:
    CREATE TABLE requests
    code VARCHAR2(100),
    request_time DATE
    INSERT INTO requests(code, request_time) VALUES('A', TO_DATE('01/02/2012 13:50', 'DD/MM/YYYY HH24:MI')); ...
    Thanks for including the CREATE TABLE and INSERT statements; that's very helpful!
    ... The problem is that I don't have records all day long...Exactly! You want to display times that aren't in the requests table. You have to SELECT them from some table (or result set, but I'll just say "table"). What table will that be? You can derive such a table from requests. This is called a Counter Table because it "counts" 0, 1, 2, 3, ..., x, up as high as you need. In this case, you don't actually need numbers 0, 1, 2, ..., x; you need DATEs b + 0 hours, b + 1 hour, b + 2 hours, b + 3 hours, ..., b + x hours, where b is a base DATE (midnight of the first date in your table), and x is 24 times the number of days.
    Here's one way to do that:
    WITH   all_times        AS
         SELECT     start_time + ( (LEVEL - 1)
                        / 24
                        )          AS a_time
         ,     start_time + ( LEVEL
                        / 24
                        )          AS next_time
         FROM     (
                  SELECT  TRUNC (MIN (request_time))          AS start_time
                  ,         TRUNC (MAX (request_time)) + 1     AS end_time
                  FROM    requests
         CONNECT BY     LEVEL     <= 24 * (end_time - start_time)
    SELECT       r.code
    ,       a.a_time
    ,       NULLIF ( COUNT (r.request_time)
                 , 0
               )     AS request_cnt
    FROM           all_times  a
    LEFT OUTER JOIN      requests   r  PARTITION BY (r.code)
                                   ON  r.request_time  >= a.a_time
                                   AND r.request_time  <  a.next_time
    GROUP BY  r.code
    ,            a.a_time
    ORDER BY  r.code
    ,            a.a_time
    ;Edited by: Frank Kulash on Aug 3, 2012 5:41 AM
    Added explanation

  • Create New Material Group included in Fiscal Year Range

    Hi,
    I have Report Maerial Group, Material & for each one having Fiscal Year
    I want to create new Material Group XXX and be included in the range of fiscal year K1 & K2
    How do I connect these two fiscal year to the new Material Group
    Thx

    Hi
    I hope  there is no assignment of GL account to material group. If you want that, you can assign Valuation class to material group in OMQW transaction.
    Because of the valuation class, the system can find the assigned G/L account number in OBYC. In this case Transaction Key GBB and General modification VBR.
    is it fine for you?
    regards
    Srinivas
    Message was edited by:
            Srinivas Ponangi

  • Grouping by month within date range

    Hi,
    I have a date range which I like to group by months, but not from the 1st to last date of the calendar month but by given start date.  For example the table below represents the date range with some values in a table.  So the
    first month range in the group should be from 06/06/2013 to 08/07/2013.  The 06/07/2013 is absent because it's Saturday.  In fact the data is populated with working days only.  
    Table below shows what I really would like to get:
    There is a simple calculation for each month anniversary date, if the value from the start date, 06/06/2013, here 12 is less than the next month anniversary date, 08/07/2013, which is 9, then it should ignore it.  And only show the value from the month
    who's anniversary date value is less than the first date value, 12.  So the example above shows value 14 for the second month's anniversary date, 06/08/2013.  If the value has been found in any month the show, and ignore the rest. 
    I am just interested if there are any and report which number of month and the value. 
    I can implement this in procedural way, such as in VBA, but because the above looped many times it will take hours to run the process.  I have tried in SQL Server, but first problem I came up with is that I can't group by month from the given start
    date.
     Is this possible to do in T-SQL ?

    I'm not sure I entirely understand your question.  So I'll break the answer into two parts.
    First, as I understand it, you are looking for a way to group data by months, but not all dates in June, 2013 as one group, all dates in July, 2013 as the next group, etc.  Instead you want all dates from June 6, 2013 to July 5, 2013 as the first month,
    all dates from July 6, 2013 to August 5 as the second month etc.  The way to do that is use
    DATEDIFF(month, '20130606', <your date column>) + CASE WHEN DAY(<your date column>) < 6 THEN -1 ELSE 0 END
    So you can assign the month number you want to every row when you select from your table by
    SELECT DATE, VALUE, DATEDIFF(month, '20130606', DATE) + CASE WHEN DAY(DATE) < 6 THEN -1 ELSE 0 END AS MonthNumber
    FROM <your table name>
    Now as I understand it (but am not sure), you want the first value in each "month" (as you are defining "month" which is greater than the value contained in your start date and if no value in a particular month is greater than that value,
    you don't want any row for that month.  For that you could do something like
    Declare @StartDate date;
    Declare @StartValue int;
    Set @StartDate = '20130606';
    Select @StartValue = Value From <your table name>
    Where Date = @StartDate;
    ;With cteMonthNumber As
    (SELECT DATE, VALUE, DATEDIFF(month, @StartDate, DATE) + CASE WHEN DAY(DATE) < DAY(@StartDate) THEN -1 ELSE 0 END AS MonthNumber
    FROM <your table name>
    WHERE DATE > @Date AND VALUE > @Value),
    cteOrdered As
    (Select DATE, VALUE, MonthNumber,
    ROW_NUMBER() OVER (PARTITION BY MonthNumber ORDER BY DATE) As rn
    From cteMonthNumber)
    Select MonthNumber, Value As KickOutValue
    From cteOrdered
    Where rn = 1;
    Tom
    P.S.  Notice that I wrote my date literal as YYYYMMDD.  This is a good idea in SQL Server since '20130806" will always be interpreted as August 6.  But depending on the settings on your server and/or client '06/08/2013' might be dd/mm/yyyy
    and so be August 6, but it might be interpreted as mm/dd/yyyy and be June 8.
    It is also a good idea to express date literals in this forum as yyyymmdd.  There are a lot of us on the forum from the United States and we think 06/08/2013 is June 6 and a lot of us from other places who think 06/08/2013 is Aug 8.  If you give
    your dates as yyyymmdd we don't have to try to figure out what format you are using.

  • Same number range for two different series groups?

    Dear all,
    There are two scenarios
    1.Normal export under bond case, series group is 20 and number range maintained,running number is 300016
    2.Another scenario,where ARE1 document generation for Deemed exp customer(already customised) , series group is 30.
    But, client requirement is , for this second scenario also, system should pickup running number range of series group 20(under bond case)  as per excise legal requirement
    Ie running number is for series group 20 is 300016
    For the above deemed exp case (second scenario)it should pickup 300017
    And again when they do under bond case(first scenario), it should pick up 300018 like that
    Is it possible to maintain the same number range for two different series groups(20 and 30)?
    Even if you maintain the same number range for 30, as per running number range of 20
    Will the system update simultaneously the same number range for 20 and 30 series groups?
    Please suggest the way.

    With two different series groups, it is not possible to have the same number range. Even if you maintain it, they will be treated independently.
    Normally, you should not use different series groups if the same number range has to be used. In fact, the concept of series group has been developed to ensure that number ranges can be maintained separately.
    Regards,
    Aroop

  • How to transport number range group Configuration in Material Master

    Hi,
    I have this query regarding how to transport number range group in material master from one server to another.
    Problem: There was no number range assignment done for a particular material type. So, i assigned the particular mat. type to a group which had some number range intervals with the help of T-Code MMNR.
    But when i want to transport this config. to other sever, it is only transporting the interval but not the assignment done to that group. In the menu bar only Interval transport option is there.
    Can anybody help me with this I hope the query is clear.
    Regards
    Vivek

    Hi,
    Number range objects can be transported using Workbench requests.
    Thanks
    Kishore

  • Number range and group assignment

    When I checked the number ranges for the material types
    In my system there are 2 groups with the same number range.
    how is this possible?
    Edited by: vishnu alapati on Dec 2, 2008 9:54 AM

    plz check the one will be with tick of external
    check MMNR here check that is there any tick of external
    regards
    kunal

  • Error in BP Number Range due to Grouping

    HI Experts,
    I have a scenario in which we need to assign grouping to BP and this grouping will decide the number range assigned to the BP.
    We configure every thing and is working fine in the GUI (T.Code BP) but when i go to WebUI, system is taking default number range and not considering the Grouping selected on WebUI.
    I try to do little debugging and my findings are:
    1. First system is reading the Identification profile and its Functional profile.
    2.  Now based on the functional profile system is reading the BP group value from table CRMC_IC_BPIDENT.
    Now what ever value is there in this table, system is creating the BP in that group. Its not at all reading the value from the UI and resetting the value of grouping on UI with the values of the table.
    It seems strange to me why system is not considering the values available on UI.
    Any Idea? I have seen similiar thread on SDN with same error but there is no resolution in them so i think this is the common problem.
    Dave

    Solved it by myself.
    Didn't find any std solution for this so enhance the component and put a check point before calling the std code to retrieve the Grouping information.
    Dave

  • Allow two no.ranges for a one account group

    Hi everybody,
    Please suggest the way out to have two no ranges for one vendor account group.
    Because First no. range defined for that account group got exhausted. Hence we used another range to define same account group.
    We need to use both the ranges for vendor codes of the same account group.
    at present we are changing the no. ranges through xkn1 and completed the creation.
    Please advice any way out to allow two no. ranges for a vendor group.
    Regards,
    Charmaine Martin

    Hi,
    You cann't use the two no ranges to one group.
    You can do one thing,
    in XKN1 select the no range that was assigned to that vendor group,
    create a new interval and asssign that new interval to the first no range.
    BR,

Maybe you are looking for