Record count per group

When building a report in APEX, and using the break columns setup, how can you show a count at the bottom of each group showing the number of rows?
I had thought I have done this in the past, but can not find an example of doing it now..
Any ideas or suggestions?
Thank you,
Tony Miller
UTMB/EHN

Ummmmm...no I didn't, hate to admit it.
Added the declaration to the 2 percentage formulas. Now I do get results for the percentage...they are just wrong. Only pattern I've found is that if the running total of Int or Ext is 1, the percentage is 11.39. If it is 2, the percentage is 22.78 and so on.
Each percentage is a multiple of 11.39 depending on the respective running total calculation. Maybe you can see what I have obviously missed.
NAME........TOTAL.......TOTAL Int........% Int........TOTAL Ext........%Ext
Burberry........20..............4..................45.56.............16 ..............182.23
Cellarosi.......11..............1 .................11.39.............10................113.90
Chalkley.......19..............2..................22.78.............17................193.62

Similar Messages

  • Record count per page , total record count per report in BI Publisher

    hi,
    In Oracle BI Publisher tool , can you please tell me how to display total record count of a report ? as well as how to display record count per page ?
    Thanks for your help
    Regards
    Gayathri

    check inbox. forwarded the updated template

  • Count(*) giving different record count than Group by

    I have a table which is giving me different record counts as below:
    SELECT COUNT(1) FROM tbl_A --45104 records
    SELECT ID,COUNT(*) FROM tbl_A GROUP BY ID ORDER BY 1   --42084 records(ID is the primary key)
    Any idea why this will happen?

    Can you quickly show us what the below are returning?
    SELECT COUNT(ID) FROM tbl_A
    SELECT ID,COUNT(ID) FROM tbl_A GROUP BY ID ORDER BY 1

  • How to get a total record count before grouping?

    I need to group a report on a formula that does roughly the following:
    [record count] / ( [total record count] / 20 )
    What this acheives is to label each record with a number of 1 - 20 which I want to group on. Getting this figure is the easy part, what is not working is the fact that I cannot group from a formula that is calculated after grouping. I overcame a portion of this by using "Whilereadingrecords" (rather than "count", running totals, or while printing records) to acheive a record count.
    I can't figure out how to get a total record count done before grouping. Is there a way to do this with "WhileReadingRecords"?? Is this even possible?
    Thanks
    John

    Hi John, 
    The order of how Crystal does things dictates the order of which features you can use.  Crystal has a two pass method.  In the first pass it does things like passing the query, grouping, summarizing.  In the second pass it does formulas, formatting, etc. 
    Unfortunately Crystal does the Grouping before summarizing so what you want to do can't be done in Crystal.  The best way to get around this to either create a SQL Command or view/stored procedure that will do the summarizing for you.  Then in the report you can use it. 
    Hope this helps,
    Brian

  • Record count per message

    How do we count the number of records send in a message. the scenario is from FTP to Proxy. No graphical mapping involved. Need to count the number of records that XI processed for a particular message.

    Kumar,
    On receiver end you have proxy's..right? you can code to count number of records  per messages inside proxys. I think this would be the simplest way.
    Nilesh

  • Count the number of records in a group

    Hi ,
    My requirement is to display in the BI reprt - records in Order Entry Line Items based on several conditions on the fields.
    If the above conditions do not returm any records ,show an error message - NO DATA FOUND.
    1.checked in standard RTF templates where its a simple example as if :not(//servicereq).
    But ,my RTF has serveral conditions on the group.
    2.Is there a way to take a count of records in the group which statisfy the given condotions,so that I can checkif count = 0 .dislay message.
    Apreciate your help.
    Regards.

    Ummmmm...no I didn't, hate to admit it.
    Added the declaration to the 2 percentage formulas. Now I do get results for the percentage...they are just wrong. Only pattern I've found is that if the running total of Int or Ext is 1, the percentage is 11.39. If it is 2, the percentage is 22.78 and so on.
    Each percentage is a multiple of 11.39 depending on the respective running total calculation. Maybe you can see what I have obviously missed.
    NAME........TOTAL.......TOTAL Int........% Int........TOTAL Ext........%Ext
    Burberry........20..............4..................45.56.............16 ..............182.23
    Cellarosi.......11..............1 .................11.39.............10................113.90
    Chalkley.......19..............2..................22.78.............17................193.62

  • Select latest two records per group

    hi there,
    i've been googling around and still can't really find an appropriate solution to retrieve two most recent records per group in one sql. Is this even possible?
    Let's say there is a MyLife table :
    ID, Event , RecordedDate
    1. 1, 'Fell down the stairs', '20-DEC-07'
    2. 1, 'Fell down the stairs', '22-DEC-07'
    3. 1, 'Fell down the stairs', '23-DEC-07'
    4. 2, 'Tried to kiss santa', '23-DEC-07'
    5. 3, 'Reindeer stolen', '24-DEC-07'
    6. 4, 'Chimney Broke', '25-DEC-07'
    Output should be :
    2. 1, 'Fell down the stairs', '22-DEC-07'
    3. 1, 'Fell down the stairs', '23-DEC-07'
    4. 2, 'Tried to kiss santa', '23-DEC-07'
    5. 3, 'Reindeer stolen', '24-DEC-07'
    6. 4, 'Chimney Broke', '25-DEC-07'

    I believe that something along these lines would be portable to most other databases.
    SQL> SELECT id, event, recordeddate
      2  FROM mylife o
      3  WHERE recordeddate = (SELECT MAX(recordeddate) FROM mylife i
      4                        WHERE o.id = i.id)
      5  UNION ALL
      6  SELECT id, event, recordeddate
      7  FROM mylife o
      8  WHERE recordeddate = (SELECT MAX(recordeddate) FROM mylife i
      9                        WHERE o.id = i.id and
    10                              i.recordeddate < (SELECT MAX(recordeddate)
    11                                                FROM mylife ii
    12                                                WHERE i.id = ii.id))
    13  ORDER BY id, recordeddate;
            ID EVENT                     RECORDEDDAT
             1 Fell down the stairs      22-DEC-2007
             1 Fell down the stairs      23-DEC-2007
             2 Tried to kiss santa       23-DEC-2007
             3 Reindeer stolen           24-DEC-2007
             4 Chimney Broke             25-DEC-2007John

  • Record counts by hour,day - report

    Record count, grouped by day, hour
    Intended output:
    DATE | 00:00 | 01:00 | 02:00 | .....
    07-21-2011 | 100 | 200 | 300
    07-22-2011 | 500 | 0 | 200
    The below returns a version, but it doesn't account for when there are no records for a given hour.
    I've created a successful script, but it involves too many subqueries, and is an abmonination
    Any help would be awesome!
    (any table with a date field will work)
    with
    hrly_ttls as
    select to_char(sdate,'YYYY-MM-DD') as dte, to_char(sdate,'HH24') as hr,
    count(*) as cnt from df_audit_batches
    group by to_char(sdate,'YYYY-MM-DD'),to_char(sdate,'HH24')
    select dte,
    max(ltrim(sys_connect_by_path(cnt,' '),' ')) keep
    (dense_rank last order by level) as Ttls
    from (
    select hrly_ttls.*, row_number() over(partition by dte order by hr) as rn
    from hrly_ttls
    start with rn = 1
    connect by prior dte = dte
    and prior rn = rn - 1
    group by dte;
    ==> returns
    DTE TTLS
    2011-07-01     2 1 1 1
    2011-07-02     1 2 1 1

    Hi,
    Welcome to the forum!
    Whenever you post a question, please include CREATE TABLE and INSERT statements for some sample data. That way, people who want to help you can re-create the problem and test their ideas. Also post the results you want from that data. Simplify if possible. For example, if you need a query for all 24 hours in a day, you can post a question that only has data and results for maybe 3 hours. Adapting the result should be easy.
    Always say which version of oracle you're using.
    Since this is your first post, I'll post some sample data for you:
    CREATE TABLE     df_audit_branches
    (     sdate     DATE
    INSERT INTO df_audit_branches (sdate) VALUES (TO_DATE ('21-Jul-2011 00:00', 'DD-Mon-YYYY HH24:MI'));
    INSERT INTO df_audit_branches (sdate) VALUES (TO_DATE ('21-Jul-2011 00:01', 'DD-Mon-YYYY HH24:MI'));
    INSERT INTO df_audit_branches (sdate) VALUES (TO_DATE ('21-Jul-2011 02:02', 'DD-Mon-YYYY HH24:MI'));
    INSERT INTO df_audit_branches (sdate) VALUES (TO_DATE ('22-Jul-2011 01:40', 'DD-Mon-YYYY HH24:MI'));And the results you want from that data might look like this:
    DAY         TXT
    21-Jul-2011    2   0   1
    22-Jul-2011    0   1   0In the real problem, of course, you would need 24 "columns" in txt, not just 3.
    To include all hours, even if there is no data for a particular hour, do an outer join to a "table" (I used a sub-query, all_hours, not a real table) that has one row per hour.
    Here's one way to do that:
    WITH     got_cnt          AS
         SELECT       TRUNC (sdate)               AS day
         ,       TO_CHAR (sdate, 'HH24')     as hour
         ,       COUNT (*)               AS cnt
         FROM       df_audit_branches
         GROUP BY  TRUNC (sdate)
         ,       TO_CHAR (sdate, 'HH24')
    ,     all_hours     AS
         SELECT     LEVEL               AS n
         ,     TO_CHAR ( LEVEL - 1
                   , 'FM00'
                   )          AS hour
         FROM     dual
         CONNECT BY     LEVEL <= 3     -- or 24, for the real query
    SELECT       c.day
    ,       REPLACE ( SYS_CONNECT_BY_PATH ( TO_CHAR ( NVL (c.cnt, 0)
                                    , '999'
                )          AS txt
    FROM            all_hours     h
    LEFT OUTER JOIN     got_cnt          c       PARTITION BY (day)
                             ON     c.hour     = h.hour
    WHERE     CONNECT_BY_ISLEAF     = 1
    START WITH     h.n     = 1
    CONNECT BY     h.n     = PRIOR h.n + 1
         AND     c.day     = PRIOR     c.day
    ORDER BY  c.day
    ;This will work in Oracle 10.1 (and up).

  • Invalid record count - grey screen- Target Mode Cures

    Hi there,
    I have a common problem: I was doing nothing particular that I remember: No fancy file uploads, doanloads, creation, erasing - nothing special:
    Anyway after a customary week, or few days of leaving the macbook permanently on, I think "let's give it a rest".
    Then switch back on:
    - Grey screen, spinning grey progress wheel fine.
    - Takes a while. Strange. After say a minute - it just switches off wordlessly.
    - Reset PRAM: No solution. Take a look with single-user startup in console: Files are all there, OK. Disk not dead.
    - Start up from OS X 10.5 disk:
    Permissions repair fine. Good.
    Verify disk: FAIL! +*Invalid Record Count.Volume check failed.*+
    Next: *Try target disk mode to back up essentials* - that works fine: I now have Time Machine AND a smaller important essentials backup.
    But finally, here's the surprise: Just for kicks, I *shut the macbook down, try a reboot - and it works!*
    But I note that root system files are unchanged since the problem occurred: ".hotfiles.btree" for example (I don't know what that is but suspect it's relevant).
    Then: I tried restarting again - and back to square one, it won't boot.
    Do the "Target disk" firewire mode trick again, and browse a few folders: And it boots (slowly).
    If I just leave the Macbook on permanently - everything seems fine. Not even sluggish.
    So:
    - Why can connecting a disk with an incorrect file system in target disk make the system forget about these problems when booting?
    - Why does the problem return on a successive reboot?
    - Is it related to some system files being ignored if booting straight after a target mode session?
    - What is ".hotfiles.btree", and should it not exist ?
    And the big one:
    - +Can extended Applecare, wot cost me loads of money, help me?+

    Hi Cornelius:
    Having been a faithful Apple-groupie for a while, and despite some problems over the years (hard drive failing, screen going, etc.) this is the first time I'm disappointed with them, because theor Micromat Applecare deal is a ripoff:
    You fork out for Applecare extension: All you get is something that say "Yep, you've got a problem. Now go and buy techtoolpro".
    That is, the TechTool Deluxe is practically useless. Argh.
    Worse: They keep that rather quiet. If you run TechTool deluxe, and it fails: It points you to the Techtool site to
    "download the TechTool Deluxe software with diagnostic and repair capabilities".
    You think "Aha, right, I need an update, or a DMG rather than just the executable".
    Download another 1.25Gb.
    So you try again: Same thing.
    The chiselling little crooks, to quote Ken Livingstone, won't even come out and say "Buy TechTool Pro to fix it". The website as reported above is wrong.
    Result: I'm not happy with them. And I'll never buy anything off Micromat.
    In the meantime, I've got a bootable backup thanks to CC-Cloner (excellent, I'll send him some money), and I'm waiting until I don't have any critical deadlines to allow myself time to restore a daily bootable backup.
    The dodgy files seem to be the Sun Developper Java suite according to CC Cloner.

  • How to find Maximum Record Count in a particular section

    Hi ALL
    My report has  3 detail sections. I am showing different set of data in each section.
    Example:
    Details a
    Details b
    Details c
    In the Details c section  I have 5 columns.
    I want to find out MAXIMUM RECORD COUNT in  only Details c.
    Actually I have done a running total on column1 field which gives me the records number in that section only. But I am not able to find the MAXIMUM record count.
    Rtotal   Colum1   Column 2 Column3
    1          Data1     Data2      Data3
    2          Data1     Data2      Data3
    3          Data1     Data2      Data3
    4          Data1     Data2      Data3
    Now I need the Maximum record count=4
    Thanks.

    If I have understood correctly you want to count the amount of records in each section.
    In this case, go to "Insert > Summary", choose your ID field, and choose "Count" in "Calculate this summary:". You can put the summary in your group footer.
    If you want the maximum (the highest number value in that column), you can choose "Maximum" instead of "Count".

  • File content conversion record set per message

    Dear All,
    Problem:- File is of huge size because of which file content conversion is taking longer time and is failing.
    File format:-
    Header
    Detail
    Detail
    Header
    Detail
    Detail
    Detail
    Detail
    Header
    Detail
    Detail
    Trailer
    Trailer has total count of all detail record,header record and there are few checks as well as wrt other fields.
    We need to do all the above validation on the file and if it successful it shud process it otherwise alert shud be raised.
    As a step:-
    I have used record set per message for splitting up the file because of huge size this functionality is working fine but because of spitting of file i am not able to do trailer validation as XI is creating multiple records with different message ID's
    Is any other approch which will help to achieve both Spliting as well as validation
    chirag

    Chirag,
    simplest scenario I can think of is splitting the 2 reqs.
    1. create 2 folders, one for "in process" files and other for "validated" files.
    2. create 2 scenarios:
    2.1. your current sender system to in process folder (whatever to File).
           => In this you just do the validation, without FCC. You could create a simple module for that or even do it at mapping runtime, as you said (mapping may be easier to handle errors), and throw a runtime exception (which will eventually trigger an alert).
           => At the end, only files that go successfully throug the validation will be located in the "In Process" folder.
    2.2. do a simple file to file scenario (from "In Process" to "Validated" folder), this time executing FCC & splitting messages if necessary.
    Of course, this will only work if the module/mapping is able to process the large file anyway (hopefully yes, since it will still be a flat file and not XML yet).
    BR,
    Henrique.

  • Oracle 10g - Insert in to Temporary Table - Record count mismatch between s

    We are trying insert records from a select query in to temporary table, some of the records is missing in the temporary table. The select statement is having multiple joins and union all which it little complex query. In simple terms the script contains 2 part 1st Part Insert in to temporary table 2nd part Select query with multiple joins, inline sub queries, unions and group by classes and conditions
    Eg. If we execute select statement alone it returns some count for example => 60000 After inserting into the temp table, in temp table the count is around 42000 why is the difference?
    It is simple bulk inserts... insert in to temp table select from xxx. also, there is no commit in between. The problem is all the records populated by the select statement are not inserted in to temp table. some records are not inserted.*
    Also, we had some other observation. It only happens in its 2nd execution and not its first run. Hope there might be some cache problem
    Even, we also did not believe that. We are wondering. In TOAD, we tested however at times it happens. In application jar file, after "insert in to temp select * from xxx" we take the i. record count of temp table and ii. record count of "select * from xxx" separately but both doesn't match. Match only at 1st time.
    Thank you in advance for your efforts and help.
    Shiva.

    The code looks like
    sql = "insert in to temptable select x,y,z,.... from xxx,abc,pqr..where...."; (logial but not real is very complex around 700 lines with multiple joins, inline sub queries, group by etc. )
    stmt = conn.createStatement();
    rCount= stmt.executeUpdate(sql);
    Actual issue is
    rCount = xxxx = Count(temptable) < count(select x,y,z,.... from xxx,abc,pqr..where....)
    why this diffference ? some records populated in the select but not inserted in to temp table
    Anyone can explain?

  • Invalid Leaf Record Count??

    After Software Update installed new versions of QuickTime and iTunes, my computer hung while doing the required restart. It got stuck at the point where the spinning clock thing appears. I had to force a shutdown by pressing and holding the power button. Now when I run Disk Utility (from an OS X install CD) to repair the disk, I get the following error message:
    Invalid leaf record count.
    It should be 7, instead of 66.
    The repair ends with a message that the disk could not be repaired. However, when I start-up in single-user mode and do a disk repair by typing in “fsck –yf”, I get no error messages, and it says the hard disk appears to be OK. I also ran DiskWarrior, but that did not fix the “invalid leaf record count” problem.
    I would be interested to know what “invalid leaf record count” means and if I should be concerned.
    Thanks.
    Lou

    You can get this error if you use an older Panther CD instead of the Tiger DVD on your 10.4 as per this article.
    http://docs.info.apple.com/article.html?artnum=301266

  • How to limit row number per group without change new page in crystal report

    Hi All Expert,
    Is there any way to limit row number per group without change new page in crystal report 2008. The reason i do that is due to customer using printer EPSON LQ 300 (dot matrix) always will print in landscape if detech my layout in landscape. Because they need the record always print in 1 page (Letter size) for 2 groups and each group must show 5 records. Example:
    But, in CR2008, if you set the row per group from group section expert, definitely it will change to new page, but I do not want it change to new page. Any Idea?
    In one page (Letter size):
    Group Name: Customer-ABC
    NO  INVOICE  AMOUNT
    1)   INV001     USD100
    2)   INV002     USD100
    3)   INV003     USD100
    4)   INV004     USD100
    5)   INV005     USD100
    Group Name: Customer-ABC
    NO  INVOICE  AMOUNT
    6)   INV006     USD100
    7)   INV007     USD100
    8)   INV008     USD100
    9)   INV009     USD100
    10)  INV010     USD100

    Hi Angie.....
    I guess it is not possible.
    Because if you have one common group for all the 10 records then in one page it will show 10 records under one group.
    I mean i think it is not possible but m not completely sure......
    Lets wait for expert advise....
    Regards,
    Rahul

  • How to get count of group of current login user if AD Group is added in SharePoint Group?

    My Client has 2 SharePoint Application. For the AD Users they have created AD Group and added users in that AD Group as per requirement. Later AD Group is added in SharePoint Group. When I'm trying to fetch Current User Group count, I can able to get the
    count of Groups using below statement.
    int groupCount = SPContext.Current.Web.CurrentUser.Groups.Count;
    Above Statement, returns always 0 value if I tried with User who are added in AD Group and if I add AD User and then it will return the exact count.
    Please suggest solution to get Count of Group of Current User. My Application contains more than 60 SharePoint group.

    Hello,
    I believe your code doesn't count those AD group users until they login at least once. If this is the case then try to use "SPUtility.GetPrincipalsInGroup" as suggested in below post:
    http://stackoverflow.com/questions/4314767/getting-members-of-an-ad-domain-group-using-sharepoint-api
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for

  • Placing multiple page PDF as anchiored objects in text

    I am trying to place a multilple page pdf as an anchored object in text. Ideally I'd like it to flow in and size to the column width. Is this possible? Im running ID 5.5 on windows 7. Ive tried the script for MultiPageImporter-but I cant seem to get

  • ITunes cant connect to the internet to retrive 1.2 iPod update

    iTunes says that i need to update my 30GB video to version 1.2 but when i try it says im not connected to the internet, even though i can use the itunes store just fine. this is the itunes diagnostic of my network connection... Network Connection Inf

  • HTTP Error 401: Unauthorized on testing content repository connection

    Hi, I am facing one problem while testing connection of repository created through TCode OAC0. Its giving error "HTTP error: 401 Unauthorized". Please if anyone has solution let me know.. Reward Points will be given... Regards Hardik

  • Charts Issue in 10g

    Hi expers, When I tick "Chart Pivot Results" check box, I can use chart in the pivot view, however,I am facing two issue. Firstly, when I use pie chart for showing data, I want to truncate label name . For example, there are two columns named Date an

  • Safari 4.03 won't install -does not recognize 10.6 was installed

    I installed Snow Leopard and then tried to update Safari. The install utility does not recognize I installed 10.6. The error message: "Safari can't be installed on this disk. This update requires Mac OS 10.5.8 or newer".