Two ranges in a worksheet ?

I have a user that want to do ranges based on the age of students, on the note they got at their exam, and the number (COUNT()) of exams for each of those ranges. Something like :
| | Note |
| Age group | < 30 | 30-39 | 40-49 | 50-100 |
| 10-19 | 01 | 27 | 10 | 20 |
| 20-29 | 10 | 22 | 04 | 40 |
How can I do this report ? I can get the age group with a view that use multiple SELECT ... WHERE age BETWEEN xx AND xx and with UNION, but for fetching each note group per age group, I have no idea how to do it.

Hi,
Normally you would introduce age ranges in the report by creating a calculation like this:
to_char(trunc(age/10)*10)||'-'||TO_char(trunc(age/10)*10+9)and grouping by this age range.
Hope that helps,
Rod West

Similar Messages

  • Month filter between two ranges based on user response inIDT

    Hi,
    I am working on SAP BO4.0.I have a requirement of creating a month filter on a date which will be between two ranges.The first range is the user response and the second range will be 6 months added to that user response.For eg:-If a user enters 1 as the response for month prompt then the date will be filtered between 1 and (1+6)=7.The database used is SAP HANA.
    Please let me know if further clarifications are required.
    Any help on this will be appreciated.
    Thanks in advance.

    Hi Riddhi ,
    afaik this is not doable in UDT/IDT .Only thing we can make is to run the report for last month by using magic dates concept.
    Check below logic if it helps.
    For a requirement to run a report for  fiscal year starting date to last month if nothing selected .
    @Select(Time\Yr-Mth Key)  between@Prompt('From Date','A','Time\Month / Year',mono,primary_key,,{'JUL 2013'}) and   
    (case when @Prompt('To Date','A','Time\Month / Year',mono,primary_key,,{'JAN 1999'})='JAN 1999' then to_char(add_months(sysdate,-1),'YYYYMM')  
    else  
    @Prompt('To Date','A','Time\Month / Year',mono,primary_key,,{'JAN 1999'}) end)
    This is on Oracle Database.
    When you run webi report
    From Date : JUL 2013 (fiscal year start date)
    To date : JAN 1999( without changing this you can refresh the report for last month , else it'll refresh for selected month)

  • Random number within TWO ranges

    Is there anyway to select a random number within TWO ranges ? For example, a random number between the range (10 to 50) OR (100 to 200).
    Thank you !

    This is a simple class that produces a number between a range:
    class RandomRange
    static java.util.Random random= new java.util.Random();
    *    Return an int between n1 and n2
    static int getIntBetween(int n1, int n2) // n2 must be greater than n1 or n2-n1 must be positive
    // get random number between 0 and the range(n2 - n1)
    int result= random.nextInt(n2- n1);
    // plus the offset
    result += n1;
    return result;
    // return random.nextInt(n2 - n1) + n1;
    // the result is n2 exclusive, to make it inclusive return (result + 1)
    *    Return a double between d1 and d2
    static double getDoubleBetween(double d1, double d2)
    return random.nextDouble()*(d2 - d1) + d1;
    // d1 and d2 can be any value
    *    Return a float between f1 and f2
    static float getFloatBetween(float f1, float f2)
    // similar
    }----------------------------------

  • How to make two Range Selection at the same time?

    In a single clip, at the same time, in two locations, I would like to have Range Selection.  Then I would like to switch between the two and play within the range one after the other immedeately. Is this possible?  Thanks.

    success1975 wrote:
    In a single clip, at the same time, in two locations, I would like to have Range Selection. 
    You can mark multiple range selections in a clip by clicking and dragging with the Command key down – or marking in and out points with  Shift+Command.
    I don't know what you mean when you say "at the same time".
    Then I would like to switch between the two and play within the range one after the other immedeately. Is this possible?  Thanks.
    Forward slash plays betweeen the in and out. The only way I know to play them one after the other "immediatelly" is to edit the two selections to the timeline.
    Russ

  • How do i run two queries in one worksheet?

    Hi
    I am new to Disco and am finding some things easy to fathom and others not so.
    I have a table with fields
    callref
    logdate
    closedate
    I want to be able count the number of calls logged each month/year and the number of calls closed.
    So, I want to do 2 counts, each count applying a slightly different condition. I would then end up with data along the lines of:
    Month, Number Logged, Number Closed
    which I could then turn into a graph.
    I am assuming there must be an obvious way ...
    Sapphie
    Edited by: user12160673 on Feb 8, 2010 8:49 AM

    Hi Lee
    There's a couple of ways of doing this. I think the simplest would be create two calculations, one for Number Logged and one for Number Closed.
    For Number Logged presumably this is just the count of all rows returned in the worksheet? You can use COUNT(ROWNUM) for that calculation.
    For the Number Closed you only want to count those that have a closedate - yes? If so, this will work:
    SUM(CASE WHEN closedate is NOT NULL THEN 1 ELSE 0)
    Another way to do this, would be to create two analytic calculations, one for each count. The syntax for an analytic count is as follows:
    COUNT(item) OVER (filters)
    The item will be the thing you are counting. The filters can be left empty, in which case the count will be determined by all rows in the worksheet. If you want the count to be only on a subset of the rows then you need to provide one or more filters. Typical filters are page items and group sorted items.
    An example of a count over the whole query is:
    COUNT(callref) OVER ()
    Best wishes
    Michael

  • Two Queries in one Worksheet

    Hi,
    I'd like to know what the disadvantages are of having two queries in the same worksheet of a workbook. Is it correct that the results of one query can overflow to the area of the second? How about issues with authorization, are there any?
    Thanks!

    HI,
    Yes, result of one can flow over the other if you are using simple report with characteristics and output may vary.
    Actually you apply basic Excel logic and its like 2 diff report on it.
    Mostly you add more Fixed format reports to a single sheet. So that  number of report rows dont increase and also you dont have any free characteristics to drilldown.
    About authorization, that depends on individual reports. If a user doesnt have proper authorization for 1 of the reports then that report would throw error while other would show result.

  • Two Range Expanders - How to enable security?

    I have a linksys router (wrt54g ver 2) and two WRE54G range expanders both version 3.  Everything is working fine but I can't enable security because I can't access the set up webpage of one of the expanders.  Any ideas?  Or maybe I can use Mac Filtering but would I use the mac address of the expanders or the wireless computers? Or any other way to make my little network secure? 
    I have Windows XP and broadband.
    Thanks.

    First of all you need to setup your router, and get your wireless computers working.  Then later, we can work on the range expanders.
    To setup WEP security, do the following:
    Turn off all your computers, except for one computer that it wired to the WRT54G.
    Make sure the computer is wired to one of the numbered ports on the WRT54G, not the Internet port.  Also, make sure the wireless card in the computer is turned off.
    In the computer, temporarily turn off your software firewall.
    Point your browser to 192.168.1.1
    Enter your user name (if any) and password.
    This will take you to the router's setup pages.
    Go to the "Wireless" tab, "Basic Wireless Settings" subtab.
    Change your SSID to a unique name.  Do not use "linksys".  This is the name of your wireless network, and eventually, you will need to enter it into all your network devices (computers, router, expanders, etc.).
    Set "SSID Broadcast" to "enabled".
    Write down the "Wireless channel" that you are using, and save the paper.
    Click on the "Save Settings" button, then wait (3-60 seconds) for the screen to refresh.
    Next go to the "Wireless MAC filter" subtab.
    Set the "Wireless MAC filter" to "disabled" for now.  (If you want to use this feature, we will need to come back later to set it up).
    If you changed anything on this page, click the "Save Setting" button, and again wait for a screen refresh.
    Next go to the "Security" tab, "Wireless Security" subtab.
    Set the "Security Mode" to "WEP".
    Click the "Save Settings" button, and again wait for a screen refresh.  (Note: the "Save Settings" might not work until you do the rest of the stuff in this paragraph.)
    Set the "Default Transmit Key" to "1".
    Set the WEP encryption to "64bit 10 hex digits"
    Insert your passphrase of 8 to 16 characters (no spaces), then click the "Generate" button.
    Copy down "key 1"  (it should be 10 hex digits) on a piece of paper and save it.
    Click on the "Save Settings" button, and again wait for a refresh.
    Exit your browser.
    Power cycle your modem, router, and computer.
    Login to your router again.  Now verify that all of the above settings are still present in the router.  If not, put them in again, and be sure to click on the "Save Settings" button on each page that you update.  After you have your router setup correctly, disconnect the wire between your computer and router, then power cycle your entire system again.
    Now, you must setup your computer for wireless.  This setup varies from system to system.  So you may have to try a few things to get it to work.
    First, in the computer, temporarily turn off your software firewall.
    Next, turn on your wireless card and try to display the available networks in your area.  Look for the network with your SSID.  If you see it, the display will probably also say "encrypted" or "WEP".  Click on your network, then click on "Connect".  The computer will then ask for your password.  At this point, enter your 10 hex digit WEP "key 1", not your WEP password or passphrase.  It should then connect.  If it does connect, verify that you have a properly working wireless Internet connection.
    If it does not connect, then go to your wireless settings and look for something called "Preferred Networks" or "Profiles".  In this area, you will be able to enter the info on your network (SSID, WEP, and your "key 1" ).  Also, setup your network as your default network, with automatic login.  You may need to right click on your network and set this up in "Properties" or perhaps in "settings".  Also, while you are here, delete any networks named "linksys", and also delete any other network that you do not recognize, or that you no longer use.
    Once you get one computer working, then setup your other computers for wireless.  Get all your wireless computers working properly first, and verify that they have a properly working wireless Internet connection.
    When you have this done, let me know, then we can setup the range expanders.
    But you must have a properly working wireless system before you can expand the range.
    Message Edited by toomanydonuts on 08-13-2007 06:30 PM

  • Unable to Copy/Paste Named Range within Same Worksheet

    Excel becomes unresponsive when copying a named range over one column.  I have multiple sheets and it works fine on all but two of them.  This is not just a macro issue as I can't get the paste to work even when doing it manually outside of the
    macro.  I've tried deleting the name and recreating it, but to no avail.  Has anyone else had this issue?
    Code:
        Application.Goto Reference:="Copy_CP"
        Selection.Copy
        Range("B6").Select
        ActiveSheet.Paste
    Thanks,
    C.

    Hi,
    I suggest to copy without selecting the ranges. it will save a lot of time
    Sub Test()
    Application.ScreenUpdating = False
    Range("Copy_CP").Copy Range("B6")
    Application.ScreenUpdating = True
    End Sub
    Guy Zommer

  • Range of Object Worksheet Failed error when creating variable report

    I have BO Planning version 11.6 and am running it in conjunction with Excel 2007. Every time I try to use the Report Wizard I can create a report the first time with no problems. However, when I exit out of that report and then try to create a new report using the Report Wizard I receive the following error "The following error has occurred: Error No. 1004, Method 'Range' of obejct'_Worksheet' failed". Then a report pops up with no data in it. The error keeps occuring when I try to create new reports until I exit out of Business Objects and open it up again. Then I can create 1 report with no problems.

    Please post this query to the Other Business Objects Products forum:
    SAP BusinessObjects BI Legacy Products
    That forum is monitored by qualified technicians and you will get a faster response there.
    Thank you for your understanding,
    Ludek

  • Merging two ranges

    I have a spreadsheet that has sales layed out with one year per row like this:
    Sales Monthly
    Year
    Jan
    Feb
    Mar
    Apr
    May
    Jun
    Jul
    Aug
    Sep
    Oct
    Nov
    Dec
    2012
    100
    125
    30
    90
    100
    174
    123
    251
    122
    135
    123
    345
    2013
    124
    156
    142
    135
    135
    12
    75
    124
    98
    2014
    89
    196
    34
    Indexes
    1
    2
    3
    I would like to use the forecast function to get the forecast for the coming months and years. For example, to get the forecast for October 2013, I am using this:
    =FORECAST(4,Sales Monthly :: E3:J3, Indexes :: $A$1:$C$1)
    My issue comes when I try to use a similar function to get the forecast for April 2014. I'd like to join these ranges for the second argument in the forecast function:
    Sales Monthly :: K3:M3
         and
    Sales Monthly :: B4:D4
    I've tried:
    =FORECAST(4,(Sales Monthly :: K3:M3,Sales Monthly :: B4:D4) , Indexes :: $A$1:$C$1)
    =FORECAST(4,(Sales Monthly :: K3:M3+Sales Monthly :: B4:D4) , Indexes :: $A$1:$C$1)
    =FORECAST(4,(Sales Monthly :: K3:M3&Sales Monthly :: B4:D4) , Indexes :: $A$1:$C$1)

    I think it would be easier to place all the data in a pair of columns (one for date and one for Sales). Add a third column which computes the forecast.
    Make a second table (Maybe called "Summary") which arranges the data as shown in your original post.
    I this example I placed all your data in a new column and added a forecast column.  Place you forecast formula in that column.  I made a summary table which aggregates the data the way you were viewing it before:
    To confirm the formula is correct I placed a pattern in the Forecast column.  All you have to do is build the summary table as follows then update the forecast column with you formula.
    In the Summary table:
    B2=OFFSET(Table 12 :: $C$2, (COLUMN()-2) + 12*(ROW()-2), 0)
    select B2 and fill to the right 12 columns.
    select B2 thru M2 and fill down as many years as you need

  • Identify multiple Excel selection ranges passed to VBA.

    If I select two ranges of a worksheet from within the worksheet/Excel itself and run a VBA (macro) to perform operations in VBA on the ranges, how do I identify those two selections in the VBA code to work with
    them?
    In other words, in the work book drag with the mouse to select a range, then Ctrl+drag a second range then call/run the macro/VBA. (For example, right-click drag cells B11 to B14, release, then Ctrl-right-click cell F1 (or F1 to F7). Then run the macro.)
    How do I reference those two selected ranges (B11:B14 and F1 or F1:F7from the example) in the VBA code?
    I see many example within VBA of selecting multiple ranges, but how do I refer to ones "passed" to the macro? (I'm thinking it would be something like Application.Selection.first and Application.Selection.second, etc but VB doesn't show anything
    to choose past Application.Selection .)
    Is it even possible to identify that two selections exist or is it all one selection, even if they are disjoint ranges?
    If it's all one selection (Application.Selection), how might I identify two non-contiguous ranges from within the selection and "split" them into two?
    I just found out that in Excel I can select three non-adjacent cells from any row or column, but I can only copy those three cells if they are on the same row or column. I didn't try more cells.
    This is all in Excel 2007.

    JimC, you get my ANSWERED vote!
    As near as I can tell, it does almost exactly what I need. I tested with four non-contiguous cell selections and the loop displays each one in the order selected.
    What it doesn't do is give the range of a contiguous area in the order of selection, meaning selecting e20 to a3 (dragging up to the left) gives range a3 to e20. Essentially, a range bigger than one cell is always identified as lowest order cell
    to highest order cell.
    I can handle that if needed by selecting individual cells through the range (as long as it's not too many cells) in the order I want to deal with them.

  • TableStyle Pro not retaining worksheet and cell range information for Excel Links

    I just started working with TableStyles Pro and CellStyles Pro. I am already running into some limitations that I think there are solutions for. The main thing I have encountered is I have a price list file set up in InDesign CS2 for Windows linked to a single Excel file, but different worksheets and named ranges within those worksheets. I have looked into the settings, etc. required to update the Excel data without losing your formatting, but when I update the link it uses some sort of default settings and links to the first worksheet and ignores the worksheet and named range information I had entered when I initially linked the file. I noticed that the links palette only shows the name of the Excel file and doesn't indicate specific sheets or ranges.
    I would like to not have to work around this by separating my Excel file because it would create so much more work when updating the pricing information and having to copy and paste formulas between files, open them all and save them all. I also would like to avoid working around by relinking instead of updating the links as I would have to apply some formatting that is not covered by the TableStyle and CellStyle plugins.
    I hope this issue is just a matter of some sort of setting and I will not be stuck with a work around solution. Please help.
    I did stumble across a posting about another plugin that supports more complex formatting tasks, but I am not sure even this will solve my reformatting issue as it sort of changes from table to table in some cases.

    I may be changing the subject, but I wonder if it is possible to link the cell in InDesign CS (WindowsXPpro) table to a cell in Excel.
    Scenario: I have 100's of tables in our catalog which contain part#, description, and price columns. I want to be able to tell the price cell to go to Excel and bring back the correct price. I can easily do this in Excel and then simply place the whole spreadsheet into InDesign, but I would need to recreate all my tables in Excel. It would be much faster to simply create links from cells in InDesign to cells in Excel.

  • Is it possible to have two ip address ranges on an airport base station

    I have just got two airport extreme base stations for the school that I work in.
    Our School network uses static ip addresses in two ranges - we have a range of 10.11.128.1 to 10.11.129.254 with our servers on 10.11.135.252-254 and a subnet of 255.255.248.0
    This range is for computers that pupils have access to.
    We also have the range 10.9.35.1 - 10.9.35.254 with a subnet of 255.255.255.0 which is for staff and is used for electronic registration and reporting.
    I have set up a base station so that computers on the pupil network can logon to the network via airport but I don't see how I can get the base station to allow computers on the staff network to logon as well. In any classroom there are computers used by pupils but there will always at least one on the staff network for taking registers.
    I would be really grateful if anyone could tell me any way of setting up the base station to cope with both address ranges.

    No.

  • BEx Analyzer - dynamic move range of analysis item

    Hi @ll,
    I`ve an Excel workbook which has two queries in a worksheet. Both Queries have an undefined nubmer of rows.
    Is it possible two adjust the range of the both analysis items without overlapping themselfes.
    Regards,
    Flo

    Hi Cherie
    Update your SAP GUI and FEP to latest version. This should solve the issue.
    Regards
    Lucimar

  • SUMPRODUCT dynamic range

    I wanted to do some number cruching in Numbers with quite a few formulas like (SUMPRODUCT(array1, array2) + SUMPRODUCT(array3, array4)) / SUM(array5) for every worksheet, which is fine except that I've got some ten worksheets. And each worksheet is a bit different in terms of array sizes and locations.
    It'd be more efficient (and less error-prone) if I could get to write generic formulas and let each worksheet derive the final 'array's by referring to values stored in certain cells. Basically make it table-driven formulas if you know what I mean.
    Unfortunately Numbers returns error for say SUMPRODUCT(B2), where the B2 cell has a string like "D10:D144, R10:R144". So it appears Numbers won't happily take Text value for Range value.
    I've checked some online forum. Some mentioned using INDIRECT or INDEX, and my trial result still returned error. Others mentioned table names or VB object attributes (which sound like Excel-only).
    Wondering if anyone ran into similar situation and got answers? It'd be great to be able to learn and move on and not getting stuck here.

    INDIRECT is your friend here.
    B2 contains the SUMPRODUCT formula:
    =SUMPRODUCT(D2:D10,E2:E10)
    B3 contains the same formula, using INDIRECT to construct the two ranges from the contents of cells B1 and C1:
    =SUMPRODUCT(INDIRECT(""&B1),INDIRECT(""&C1))
    Details on INDIRECT (and the other functions supported in Numbers), along with at least one example for each function, may be found in the iWork Formulas and Functions User Guide, which can be downloaded via the Help menu in Numbers '09.
    Also available in the same location is a download link for the Numbers '09 User Guide, a more general guide to the features of Numbers. The first few chapters are strongly recommended as required reading for anyone new to Numbers, and especially to those migrating from another spreadsheet application; the rest may be browsed or devoured when there's a need to know about a specific topic.
    Regards,
    Barry

Maybe you are looking for

  • How to unlock a macbook pro

    Can anyone tell me how to "cure" the spinning color wheel at start up?

  • Need help in exporting my FCP project to work on my laptop

    I'm taking a long trip and I'd like to export all that's needed to work on my FCP project from my PowerMac G5 to my Powerbook Pro. I could really use some advice on this. 1. It's most likely that all of my files will not fit on the Powerbook hard dri

  • What Brand of DL DVD's?

    Last Wednesday I bought a new MacBook Pro (replacing my 2.2Ghz Santa Rosa). On my Santa Rosa, I always used Memorex Dls because they worked. Now, with my new Penryn MBP, the Memorex seem to fail every time in iDVD. It is also really annoying that the

  • Creating New Reports is blocked

    I am trying to create new crystal reports by using u201CStandard Report Wizardu201D on Start Page. But every time when I click the icon the crystal reports window is frozen. The interesting thing is I can open and run old reports without any problems

  • How to make icons of photos bigger when selecting to attach to email?

    how to make icons of photos bigger when selecting to attach to email?