Display row count of dataset after grouping in report header?

My dataset has 500 rows, but if I group that data by field DeptId, there are only 20 rows.
I used something like the following, but it tells me that I can't use RowNumber in the page header:
=RowNumber(Fields!DeptId.Value, "DataSetTeachers")
I also tried something like CountRows("DataSetTeachers"), but that give me the total rows, which isn't what I want.
Thanks.

Hi,
You can use CountDistinct function. This is the expression that I used in the page header:
="Number of rows: " & Countdistinct(Fields!Date.Value,"DataSet1")
See the result:
Hope it helps.
Tracy Cai
TechNet Community Support

Similar Messages

  • OVS display row counts

    Hi,
    When i search for records via OVS and display, i want to set the display row count to 5 rows. I donot find an option within OVS auto generated code to set it. Is there any way to do that ?
    Thanks in advance,
    Gaurav.

    Hi,
    Under phase indicator,
    In Case if_wd_ovs=>co_phase_0,
          ovs_callback_object->set_configuration(
                    window_title = lv_group_header
                    col_count    = 3
                    row_count    = lv_line ). Hre u can mention the no. of rows to be displayed.
    Thanks,
    Divya.S

  • Deleting Rows From A Table After Running a Report

    I've created a report that inserts rows into a table on the asp page then calls a BI Publisher report to display the data. After running the report in BI Publisher I need to delete the rows from the table that had just been inserted. How is the best way to go about this in BI Publisher?

    The best way I know of would be to use an "afterReport trigger".
    An afterReport trigger fires after the XML output has been generated.
    Thanks,
    Bipuser

  • How to display different text for labels in Group Above Report Oracle Repor

    Hello,
    Is there a way to change the text that is displayed in Labels in a Group Above Report? For example, I have a Group Above report with my columns of data and above the columns I have my column labels, but I would like to be able to display various text, i.e. different labels based on condition. In other words, Column1 label could say Column 1 or This is Column1, based on a condition. This is Oracle Report Builder 10.1.2.0.2.
    Thank you.

    968277 wrote:
    I'm thinking it is possible with a Format Trigger, but I've only ever returned (TRUE) or (FALSE). I am very new to Oracle Reports Builder. Thanks.Hi,
    Yes it's possible. and your are in the right place. use this true and false. For example
    /*true means display, false means don't display */
    if your_criteria_or_condition is ok then
    return (TRUE);
    else
    return (FALSE);
    end if;create as many label as your need and control with the code..
    Hope this works..
    Hamid
    Mark correct/helpful to help others to get right answer(s).*

  • Display a count of data in a single report table based on date

    Hello, I need a report that will display the name of the SOURCES, and compare the number of sources received TODAY and YESTERDAY
    My table CELLS holds the name of the SOURCE, and their SAMPLED_DATE so I need to distinguish how many I reveived today and yesterdat.
    eg.
    SOURCE|TODAY|YESTERDAY
    A | 10 |8
    B | 7 |4
    I am thinking of something like the below:
    SELECT DISTINCT source, COUNT(source) TODAY, COUNT(CASE
    WHEN sampled_date = TO_CHAR(SYSDATE-1, 'DD/MM/YY')
    THEN 1 END) YESTERDAY
    FROM cells
    WHERE sampled_date = TO_CHAR(SYSDATE, 'DD/MM/YY')
    GROUP BY.... CUBE
    Any help will be much appreciated.

    drbiloukos wrote:
    Hello, I need a report that will display the name of the SOURCES, and compare the number of sources received TODAY and YESTERDAY
    My table CELLS holds the name of the SOURCE, and their SAMPLED_DATE so I need to distinguish how many I reveived today and yesterdat.
    eg.
    SOURCE|TODAY|YESTERDAY
    A | 10 |8
    B | 7 |4
    I am thinking of something like the below:
    SELECT DISTINCT source, COUNT(source) TODAY, COUNT(CASE
    WHEN sampled_date = TO_CHAR(SYSDATE-1, 'DD/MM/YY')
    THEN 1 END) YESTERDAY
    FROM cells
    WHERE sampled_date = TO_CHAR(SYSDATE, 'DD/MM/YY')
    GROUP BY.... CUBE
    Any help will be much appreciated.Regardless of your final solution, if "sampled_date" is a character string, I'd convert it to a DATE (use TO_DATE) to compare against SYSDATE, rather than convert SYSDATE to a string for the comparison.

  • Display rows of associative entity as columns in report

    I have 3 tables as:
    PROJECT: PROJECT_ID, PROJECT_NAME
    Sample data:
    1, Project 1
    2, Project 2
    3, Project 3
    MEMBER: MEMBER_ID, MEMBER_NAME
    Sample data:
    1, John
    2, Jane
    3, Mary
    4, Tom
    PROJECT_ROLE: ROLE_ID, ROLE_NAME, PROJECT_ID, MEMBER_ID
    (PROJECT_ID and MEMBER_ID are foreign keys posted here)
    Sample data:
    1, Manager, 1, 1
    2, Lead, 1, 2
    3, Member, 1, 4
    4, Manager, 2, 3
    5, Lead, 2, 2
    6, Member, 2, 1
    In the Dashboard Answer, the data needs to be displayed as:
    PROJECT_NAME MANAGER LEAD MEMBER
    Sample data
    Project 1 John Jane Tom
    Project 2 Mary Jane Tom
    The question is: where and how can this best be modelled in the repository - in the logical layer or presentation layer, or elsewhere?
    Thanks for your help.

    Hi,
    I can create the 3 columns separately using the CASE. However, when I put them together with the PROJECT_NAME, the ORacle BI Answer returns 3 rows for the 3 roles. This is happening because of the inner join between PROJECT and PROJECT_ROLE.
    Ideally I need the equivalent of the following SQL query that works just fine. If only I could use this directly somewhere in the Server Administration tool or the Answer.
    SELECT
         PROJECT.PROJECT_NAME,
         MANAGERS.MEMBER_NAME AS MANAGER,
         LEADS.MEMBER_NAME AS LEAD,
         MEMBERS.MEMBER_NAME AS MEMBER
    FROM PROJECT,
    (SELECT M1.MEMBER_ID, M1.MEMBER_NAME, R1.PROJECT_ID FROM MEMBER M1, PROJECT_ROLE R1
         WHERE M1.MEMBER_ID = R1.MEMBER_ID
              AND R1.ROLE_NAME = 'Manager') MANAGERS,
    (SELECT M2.MEMBER_ID, M2.MEMBER_NAME, R2.PROJECT_ID FROM MEMBER M2, PROJECT_ROLE R2
         WHERE M2.MEMBER_ID = R2.MEMBER_ID
              AND R2.ROLE_NAME = 'Lead') LEADS,
    (SELECT M3.MEMBER_ID, M3.MEMBER_NAME, R3.PROJECT_ID FROM MEMBER M3, PROJECT_ROLE R3
         WHERE M3.MEMBER_ID = R3.MEMBER_ID
              AND R3.ROLE_NAME = 'Member') MEMBERS
    WHERE PROJECT.PROJECT_ID = MANAGERS.PROJECT_ID
         AND PROJECT.PROJECT_ID = LEADS.PROJECT_ID
         AND PROJECT.PROJECT_ID = MEMBERS.PROJECT_ID
    Thanks.

  • Attempting to Display Total/Percentage in Answers when grouped by Attribute

    Hi all,
    I'm relatively new to BI and attempting the following setup. (I'm simplifying the model somewhat of course).
    I have a Fact called Job which has an attribute called Type ( along with others such as Create Date , Delivered Date , Length , Score etc ).
    What I need to display , is the following columns together in Answers.
    Type | Count of Type | Percentage of Total Number of Jobs.
    Count of Type is just the number of times the Type shows up for a specific type value.
    I can easily do a "Count of Type" as a Logical Column in the Business Model and Mapping for the Fact Table using a Default Aggregation Rule of Count.
    Percentage of Total Number of Jobs is supposed to be the Percentage that the specific Type Count is of the total number of jobs . i.e. Count of Type / Total number of all Jobs as %age.
    This is where I have my issue. I can create a logical column called Total Number of Jobs using default aggregation rule of count on Job ID and create a Percentage using Calculation Wizard just fine.
    But when I try to have this column in Answers against the first two columns I don't get the right result - I get 100% for every row in the third column - because of course it is grouping the results by Type so it is calculating the "Total Number of Jobs" and consequently the Percentage measure for each individual Type. Thus I get something like
    Type | Count of Type | Percentage of Total Number of Jobs
    1 | 5 | 100%
    2 | 5 | 100%
    When I really want to get
    Type | Count of Type | Percentage of Total Number of Jobs
    1 | 5 | 50%
    2 | 5 | 50%
    Is there any way I can "store" the total number of jobs in the Business Model and Mapping Layer as a logical column in the Job Fact so that it does not display the count aggregate for the grouping (Type) but instead just the total count ?
    I'll be glad to clarify if this sounds too fuzzy.
    Thanks in advance.
    AB.

    Hi ,
    Thanks for the reply , that is successful at getting past the issue of having 100% as the result in every row which would happen if we used a measure built in the Business Model and Mapping layer.
    I'm running into some other minor issues but I think they are data row count related .. I will update this if they are not.
    Additional clarification if it helps anyone else with similar issues.
    Basically Type is an attribute of the Job Detail Fact ( 0 to many rows per job ) . There is also a Job Fact that is at a higher level of granularity ( one row per job ).
    What I am trying to do is display the Percentage or even the Total Number of Jobs ( row count of Job Fact ) in each row along with the Type and Count of Type of Job Detail.
    This is of course made complex because not all Jobs have a Job Detail row and some have many.
    In my Job Detail logical table source , I have the Logical Table Job Detail mapped to both the Job and Job detail physical tables . ( I have tried connecting both via Inner and Left Outer joins) .
    So ideally I would see something like
    Type of Job Detail | Count of Type of Job Detail | Total Number of Jobs | Percentage of Total Number of Jobs
    1 | 5 | 50 | 10%
    2 | 5 | 50 | 10%
    Where the percentage and total are of Jobs and the total is less than 100% .

  • Dynamic row counter column in Adobe Forms

    Hi Guys,
    My table in Adobe Forms is dynamically created with Conditional Breaks. I want to display 1st column as Sr.No. displaying row counter for tables on each page.
    Anyone have idea how to achieve the same.
    Sr.No
    Name
    Address
    1 (generated in adobe forms dynamically)
    xyz
    awsaxa sadsad
    2 (generated in adobe forms dynamically)
    abc
    asds  sad ads
    so on......
    Regards,
    Naveen

    Hi Guys,
    Not able to find any counter variable for table. So what I did is inserted the counter logically before calling Adobe forms driver program.
    FYI.
    Regards,
    Naveen

  • Can't View All Records if Max Row Count is null

    Hi,
    There are over 2500 records in a table and if Max Row Count is set to nothing in report attributes, the user is restricted to view only 500 records. And If Max Row Count is set more than 2500 then user is able to view all records but taking more time to display report.
    What to do to minimise process time and allow user to view all the records. ?
    Pagination Scheme : Row Ranges X to Y of Z (with pagination)
    Number of Rows : 100
    Number of Rows (Item) :     <empty>
    Max Row Count :           <empty>
    Thanks,
    Ven.

    Hi Ven,
    Apex restricts the number of rows returned by a report to 500 by default. You can change this by setting the Max Row Count. Apex does this so that the amount of data returned over the network to the browser is kept to a reasonable amount. The reason it is done this way is because a user in apex does not maintain a stateful connection to the database and as a result, rows returned from a query can not be cached in the database and fetched as required.
    From a usability point of view, I'm not sure why a user would want 2500+ rows returned to a screen. They would have to scroll and paginate to find anything of use and network bandwidth would get chewed up in the process. Why not provide the users with query options so that the number rows returned to the browser is restricted to a more manageable amount? If the users require a full hardcopy of the data then you can handle this with csv and pdf options.
    Regards
    Andre

  • ALV OO get displayed rows

    Hello,
    I need to get the displayed rows at my ALV after the user uses filters, etc...
    There is a method CL_GUI_ALV_GRID->GET_FILTERED_ENTRIES that returns the filtered entries, I need exactly the opposite method, to get the unfiltered entries, is there a fast way to get that?
    Thanks

    Hi Marshal,
    This logic wont work, when you delete the record in internal table the index will be chaged for the rest of the records,and for the next loop it will pickup wrong record so it will get incorrect results.
    LOOP AT it_filtered_entries.
       DELETE it_alv INDEX it_filtered_entries-id.
    ENDLOOP
    Thanks.
    Kevin

  • Row count in Pivotal View (10 rows per page)

    Hi
    I tried following options to restrict row count in Pivotal view of a report, however the out put is inconsistent in pivotal view.
    1. CEILING((RCOUNT(1))/10.0)
    2. TRUNCATE((RCOUNT(1)-1)/10, 0) +1
    3. Even Case statement also
    Appreciate the help extended

    just a note now its ok..i think its a transactional database ....some how the data has changed it modified the query and ur getting correct results am i correct ?
    think of a solution to get a bug free report ;)
    thanks,
    Saichand.v

  • Next/Prev in Report row counter

    How do you have the Next/Prev selectors appear with the row counter section at the bottom of reports.
    I created an SQL report, and although I selected use report pagination, the Next/Prev selectors are missing at the bottom of the report with the row counter.
    If I manually create an Next/Prev process, this build buttons outside the report row counter in the report region. Since all my other reports have the selectors inside the report with the counters, it looks goofy to sudddenly have Next/Prev buttons outside the report.
    Thanks

    Kevin,
    Edit the report's attributes and verify that pagination is indeed turned on. Also, are you using HTML DB 1.6?
    Sergio

  • Group above report problem

    hi,
    To get clear idea i am using emp table as an example.
    I am creating a report using style GroupAbove and save it in .jsp file.
    I took empno as group .
    My report was displayed in this way:
    page 1:
    empno 7369
    ename job sal comm deptno
    simth clerk 800 0 20
    empno 7499
    ename job sal comm deptno
    allen sales 1600 30 30
    ramu manager 4000 0 20
    and so on...
    page2 :
    empno 7499
    ename job sal comm deptno
    raju clerk 500 0 10
    empno 7599
    ename job sal comm deptno
    ramu worker 300 0 40
    ..... so on
    But My result should be in this way :
    page 1:
    empno 7369
    ename job sal comm deptno
    simth clerk 800 0 20
    empno 7499(problem :Here i dont want to display heading of ename.... and so on)
    allen sales 1600 30 30
    ramu manager 4000 0 20
    page 2:(if next page starts then should start with heading of ename... and so on)
    ename job sal comm deptno
    raju clerk 500 0 10
    empno 7599
    ramu worker 300 0 40
    ..... so on
    If any one know this probelm help me soon
    it's very urgent
    with regard's
    vijay

    You may have been better to use deptno as the group column in your example, since I'm not sure that grouping on empno makes sense (and hence makes the example difficult to picture).
    That said, it seems that the problem is that you only want the details headings to be displayed once per page (for a group above report). This isn't going to be too easy, and will require some coding, but bear with me.
    The first thing to do is to create a PL/SQL package with a single boolean variable in it. This will be used a flag to determine whether the headers should be displayed.
    In the before report trigger, set this variable to TRUE.
    In the format trigger for the frame containing all the boilerplate labels, check to see if the variable is TRUE. If it is then set it to FALSE, and return TRUE.
    If it's not then return FALSE (to suppress the display).
    In the between pages trigger set the variable to TRUE.
    Hope this helps (and that I've understood the problem),
    Danny

  • Ho to count the total number of rows Sql Reporting Services Report Builder's Dataset after filteration based on parameter

    Hi to all,
                 I have parameter and data-set i.e consists of SharePoint List items,Data-set get's  filters and I need to count the total rows of the data-set i.e I get after filtration.
    Thanks, Quality Communication Provides Quality Work. Mohammad Siddiqali.

    Hi siddiqali,
    Thanks for the question and Destin Joy’s reply. Please try to add the filter in the dataset level rather than the data region
    level. Detail steps as below.
    1.      
    Double-click the dataset name in the Report Data window, click Filters in the left panel.
    2.      
    Click Add button, choose Admission Date in the Expression drop-down list. Type in the Value textbox with the parameter name: @selectDate.
    3.      
    Right-click the cell that your identified by the red circle, select Expression, type in it with:
    =CountRows("DataSetName")
    Thanks,
    Sharp Wang
    Please remember to mark the replies as answers if they help you and unmark them if they provide no help.

  • Conditional display based on row count

    I have a report region with sql query (PL/SQL function body returning sql query). In this region i have text item above the report. I would like to have a condition on this item that it should only show if there exists records in the report (row count > 0).
    How can this be done?
    Best regards
    Erik

    There are many options available for conditional display. You can use this one here:
    http://apex.oracle.com/pls/otn/f?p=31517:7
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

Maybe you are looking for

  • Exchange Admin Center 2013 SP1 worked for a day and then stopped working, possible OAB problems

    Here is a problem that has me confused. On a fresh Windows Server 2012 R2, I installed Exchange 2013 SP1. It was successful and for the first day everything was working well. I then installed all security updates. The next day, I could no longer log

  • High memory usage problem

    Firefox regularly creeps up to about 350 mb of memory usage. It runs poorly, crashes, etc. I read some other posts about how to reduce the its memory usage via about:config tweaks. I made adjustments to browser.cache.disk.capacity (was set to over 1,

  • Need a way to pass object to another application

    Hello Everyone, I need to pass an object from one application to another. I wanted to do that using request.setAttribute(Object) but this works only on RequestDispatcher.forward(URL) method and can be used only within the application you are currentl

  • Pinch and Zoom PDFs for phones and tablets

    Hi, I can pinch and zoom PDF files on my phone / tablet. However when doing this I would like the document to automatically reformat to fit the screen horizontally. This would enable me to read a PDF enlarged to a text size comfortable to me AND only

  • Installing FlashPlayer 11......"failed to register"

    This is the 2nd update that I have not been able to download and install. When is this going to be sorted out?????? I have tried EVERYTHING before...(see the thread).