Getting the ROWCOUNT of a section

HI
I have a report with four section--North,South,East,West!
In all those section, i have to columns customer name a revenue.
I want the section with maximum number of rows to appear first and then the next highest second..like this in descending order depending the number of rows that each section has!
Can you please guide me about how do i go about this as the CountAll doesn't seems to be working in webi and once get the rowcount of all section can i sort the section on basis of rowcount to get the result.
Any answer will be highly appreciated!
Many Regards
Rahul

Hello Rahul,
OK I have taken a closer look at the workflow I followed and I still think that you will be able to achieve what you need to do.
Firstly I am using XIR2 SP4 (just incase it makes a difference)
I assume that your report returns a transaction ID (or invoice number) that allows you to identify each individual row of data.
On that assumption you need to do the following:
Create a table with 3 columns: Customer, Transaction ID, Revenue
Select the transaction ID column and add a count to the bottom of the table.
Drag the footer cell with the transaction count off the table and drop it somewhere in the section - this will create a cell with the count within it.
Right click on the new cell and apply the descending sort.
Finally delete the transaction ID column from the table
I do not know why you cant add a sort to a stand alone cell but you seem to be able to apply a sort if the cell is dragged from the table footer.
Let me know if this works - I have used this process to create a WebI report using efashion, so I am pretty sure it will work.
Regards,
Mike
Edited by: Mike Churchill on Jun 26, 2008 5:03 PM

Similar Messages

  • Get the rowcount from a PL/SQL report

    Hi every body,
    I got issues about get the rowcount, or just the number of rows return from a report.
    Because the report is based on some parameters that users provide, so it is not a straghtforward sql syntax.
    The thing is for the PDF printing server I use (Apache FOP), if the total rows return around less than 5000, it work OK, more than that I got the "Java outofmemory"
    I want to find a way that give users a warning message that if
    the report is more than 5000 rows, the PDF print server cannot work.
    Here is my pl/sql for the report
    Thanks in advance.
    declare
    q varchar2(32767);
    begin
    q:= 'SELECT "DAILYLOG"."LOGID" "LOGID", '||
    ' "DAILYLOG"."CLIENTID" "CLIENTID", '||
    ' "DAILYLOG"."CLIENT" "CLIENT", '||
    ' "DAILYLOG"."LOGDATE" "LOGDATE", '||
    ' "DAILYLOG"."STAFF" "STAFF", '||
    ' "DAILYLOG"."ACTIVITY" "Activity", '||
    ' "DAILYLOG"."COMMENTS" "COMMENTS", '||
    ' "DAILYLOG"."INCIDENTS" "INCIDENTS", '||
    ' "DAILYLOG"."SELFHARM" "SELFHARM", '||
    ' "DAILYLOG"."VIOLENCESTAFF" "VIOLENCE STAFF", '||
    ' "DAILYLOG"."VIOLENCEYOUTH" "VIOLENCE YOUTH", '||
    ' "DAILYLOG"."CONTRABAND" "CONTRABAND", '||
    ' "DAILYLOG"."INTERFERENCE" "INTERFERENCE", '||
    ' "DAILYLOG"."PROPERTYABUSE" "PROPERTY ABUSE", '||
    ' "DAILYLOG"."RESTRAINTS" "RESTRAINTS", '||
    ' "DAILYLOG"."MISBEHAVIOUR" "MISBEHAVIOUR", '||
    ' "DAILYLOG"."ABSCONDING" "ABSCONDING"'||
    ' FROM "DAILYLOG"'||
    ' WHERE DAILYLOG.STAFFID= :P14_STAFFLIST ';
    IF trim(:P14_STARTDATE) IS NOT NULL THEN
    q:= q || 'and DAILYLOG.LOGDATE >= TO_DATE(:P14_STARTDATE,''DD/MM/YYYY'')';
    END IF;
    IF trim(:P14_ENDDATE) IS NOT NULL THEN
    q:= q || ' and DAILYLOG.LOGDATE <= TO_DATE(:P14_ENDDATE,''DD/MM/YYYY'')';
    END IF;
    return q;
    end;
    Cheers,
    Ann L.

    I'm not entirely sure of what you want, but...
    if you just want to find out how many rows a query has, you could just select the max(rownum) from the query.
    eg...
    select max(rownum)
    from (
    -- inner query
    )And that'll give you a number that = the number of rows.
    There are a few other ways of doing it :P
    could do a count(*), same thing.

  • How to get the rowcount of a resultset ????

    Hi ,
    Is there anyway to get the rowcount of a resultset in bls without having to scan the resultset with a repeater? here , Resultset is the output of a sql query.
    Thanks & Regards
    Sreekanth

    Thanks Mussarat and Rupesh, for your replies...
         Rupesh,
             The Property RowCount is giving the rowcount ,which we defined in the Query Template but not the RowCount of the Result Set.
    but i got a solution for this
    solution works with the XPath Expression
    The Sql Query Xpath is like
    "someSQL_Query.Results{/Rowsets/Rowset/Row}"
    for this query the number of rows in the result set would be ...
    someSQL_Query.Results{<b>count(/Rowsets/Rowset/Row)</b>}
    This gives the count without having to use the repeater
    Thanks & Regards,
    Sreekanth

  • How do I get the rowcount of target table using Sunopsis API in ODI 10g ?

    Hi guys,
    Actually I want to send an alert mail once interface is run from a package. I have included OdiSendMail alert which sends a mail once interface is run.
    Could anyone please tell how to get the no of rows inserted in the target table from Sunopsis API.
    I tried using <%=odiRef.getNbRows( )%> but this did not work for me. Since I'm a beginner, could you please help me out
    This is my ODI send mail format
    " Data population has been completed successfully at <%=odiRef.getSysDate( )%>
    Total rows in target table are: <-- need some API code --> ''
    Regards,
    Clinton
    Edited by: LawrenceClinton on Feb 25, 2013 8:53 PM

    Hi
    Create project variable with below details
    Variable_name: Total_Row_Count
    Variable Type: Refresh Variable
    Definition Tab:
    Datatype: Numeric
    Action: Not Persistent
    Refreshing Tab:
    Schema: provide your Work Repository Schema and be
    SELECT log.nb_row
    FROM snp_step_log log, snp_scen_step step
    WHERE log.nno = step.nno
    AND step.scen_no =( SELECT scen_no FROM snp_scen_step WHERE step_name='<%=odiRef.getPrevStepLog( "STEP_NAME" )%>' )
    AND log.sess_no = '<%=odiRef.getSession( "SESS_NO" )%>'low code
    AND step.step_name = '<%=odiRef.getPrevStepLog( "STEP_NAME" )%>'
    Note: Add this variable after interface step in your package (after the interface any where you can place), you can add this variable before ODISendEmailNotification Step in your package
    Call this varciable *#Total_Row_Count* in ODISendEmail Notification
    eg:
    Data has been populated successfully at <%=odiRef.getSysDate( )%>
    Total no of rows populated are : *#Total_Row_Count*
    It will work
    Regards,
    Phanikanth
    Edited by: Phanikanth on Feb 28, 2013 1:13 AM
    Edited by: Phanikanth on Feb 28, 2013 1:14 AM

  • How to get the page number in the break section?

    Hi expert,
    The user wants the page number came right after the Break group name if the break section contains more than 1 page. E.g.
    ABC Compnay
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    BCD Company, p 1
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    BCD Company, p 2
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    CDE Company
    XXXXXXXXXXX XXXXXXXX
    XXXXXXXXXX XXXXXXXXXXXX
    How to get the page number in section break level?

    Hi Wes
    * Create a Field on the margin.
    * Set its "Source" to "Page Number"/"Physical Page Number".
    * Click "Page Numbering" button.
    * In "Reset At" list box, choose the Repeating frame that surrounds your detail group in the layout.
    This should cause Reports to increment the page number until the "Company" repeating frame resets.
    Regards
    Sripathy

  • I can't get some song on my iphone they work off of the computer but they wont show up on my phone they are in the "on my iphone" section but they gray and have a gray dotted circle next to them i have tried every thing I just want them on my phone HELP!

    I can't get some song on my iphone they work off of the computer but they wont show up on my phone they are in the "on my iphone" section but they gray and have a gray dotted circle next to them i have tried every thing I just want them on my phone HELP!!!

    You have posted to the iTunes Match forum, which your question does not seem to be related to. Is your question concerning iTunes Match or syncing with iTunes via USB?

  • I am trying to setup my ipad 2 but I can't get back to the wi-fi connections section.  How do I get there, nothing is working.

    I am trying to setup my ipad 2 but I can't get back to the wi-fi connections section.  How do I get there, nothing is working.

    The Wi-Fi connections section is in Settings > Wi-Fi
    If the home screen is not visible tap the Home button, the button on the front of your iPad that has the rounded square in it. Once you reach the Home screen swipe through the screen of apps until you find the Settings app. Tap Settings and go to Wi-Fi.
    If your iPad is completely non responsive, try a restart.
    Press and hold the Home button and the Sleep button simultaneously ignoring the red slider. Keep holding until the Aple logo appears and your iPad will restart.
    The sleep button is on the side of your iPad on the side opposite from the Home button.

  • HT201272 I purchased some music on my iPod touch and want to download them to my iPad mini also but I can't get the purchased section to load at all anyone else had this problem?

    Ok so I have an iPod touch 4th gen and I purchased some music on it. I also have an iPad mini and wanted to download it onto there also. Problem is that no matter how many times I try I can't get my purchased music section to load. I get the big at the top where you can select all or not on this iPad and the alphabet down the left hand side and the little loading thingy appears but nothing ever actually loads no matter how long I wait. It also sometimes just crashes the whole thing and kicks me out the app. Any suggestions? I've tried turning device on and off, it has the latest software iOS 7 and I've tried resetting all the settings already also as well as logging in and out of my Apple ID.

    Hello AstarteLydianna,
    The following article provides some additional troubleshooting steps that can help get the App Store working on your iPod Touch.
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Cheers,
    Allen

  • I am trying to use share a Hitachi TourPro 2tb external hd using my Airport Extreme base station. I can't get the hd to appear in the disks section of the airport utility though.

    I've tried using a powered and non-powered USB hub without success. Plugging the hd directly into the airport didn't work either. The hd functions fine when plugged into a USB port on 3 other computers so it doesn't appear to be a hd issue. I've reset the airport with and without the hd attached but no success in getting the hd to appear in the airport utility. I followed all of the instructions in Apple's Airport support section but no luck.
    All my pc's are running on XP Pro (service pack3). The airport extreame is working flawlessly except for this one particular issue which, unfortunately, was one of the main reasons I purchased it. I've looked through numerous discussions already in the community and tried some suggestions such as attempting to map the drive using the airport's IP address but still no luck.
    Does anyone have any suggestions or can tell me what I'm missing in the set-up process?

    When trying to troubleshoot my problem I discovered a forum that was saying certain NTFS drives work just fine
    Apple support says that an NTFS or exFAT drive cannot be used when connected to the AirPort Extreme.
    I suppose it is possible that someone might have been using some type of special software on the drive that might perform a "conversion", but without more details, it is hard to know.
    Note: ExFAT and NTFS formats aren't supported.
    http://support.apple.com/kb/HT2426

  • When I click "about this mac" to check on my storage, I get a number of different sections music, movies, etc. but also I get a section called backups, where can I find the files in this section?

    When I click "about this mac" to check on my storage, I get a number of different sections music, movies, etc. but also I get a section called backups, where can I find the files in this section?

    Welcome to Apple Support Communities
    All the storage in "Backups" is taken up by local snapshots, which are made automatically in all MacBooks, MacBooks Pro and MacBooks Air with OS X Lion or newer and Time Machine turned on.
    See > http://pondini.org/TM/30.html I recommend you to leave them there, because they will be removed automatically. However, if you want, you can disable or remove them manually if you want, even if there's no reason to do this. Have a look at the link above for more information

  • Help!! working on a movie on Imovie. I had to delete a music file from a clip section and now there are some clips that have no audio!!! don't know how to get the audio back to my clips!!!! Help!!!

    Help!! working on a movie on Imovie. I had to delete a music file from a clip section and now there are some clips that have no audio!!! don't know how to get the audio back to my clips!!!! Help!!!

    You can use some third party software to copy the music from your old iPod back to computer first, and then import the music into iTunes and re-sync them to yournew iPod. Here is a guide about how to transfer iPod music to computer. Hope it helps. Feel free to email me if you need further help.

  • How to get the section value into configurator developer page

    Hi,
    I am working on configurator developer, Can I get the section value into the configurator developer page by any setup. If possible means please help me on that.
    Thanks advance,
    Gopi

    I thought the same.Thanks for confirming...I tried with loop approach.but i am unable to get decimal part...
    eg if my values are 12.25 and 123.12....my below code ignores decimal points..i know since i am using Number, it is happening..but could you please let me know how can i get decimal values also..
    OAViewObject vo = (OAViewObject) am.findViewObject("XXXXInvDistributionsVO1");
    vo.first();
    Number grossamount = 0;
    for (int i=0;i< vo.getRowCount();i++) {
    // BigDecimal grossamount1 = new BigDecimal((vo.getRowAtRangeIndex(i).getAttribute("Amount")));
    grossamount = ((oracle.jbo.domain.Number)vo.getRowAtRangeIndex(i).getAttribute("Amount")).intValue();
    System.out.println("grossamount "+grossamount); // it ignores and prints decimal points
    BigDecimal grossamount1 = new BigDecimal(grossamount.intValue());
    System.out.println("grossamount1 "+grossamount1); // it ignores and prints decimal points
    vo.next();
    Thanks
    Raj

  • When I have a pdf file open, I used to be able to click on "Bookmarks" tab on left side and allow me to click on each individual page and delete if I needed to.  Now when I click on the Bookmarks tab, that section is empty.  How can I get it to show each

    when I have a pdf file open, I used to be able to click on "Bookmarks" tab on left side and allow me to click on each individual page and delete if I needed to.  Now when I click on the Bookmarks tab, that section is empty.  How can I get it to show each page again?

    Hi chrismarks1,
    I think you may be confusing bookmarks with thumbnails. If you click the Page Thumbnails icon (the one above the Bookmarks icon), then you can delete a page by clicking its thumbnail, and clicking the Delete Pages icon (the trashcan icon). Just make sure that you're viewing the PDF file in Acrobat (rather than Acrobat Reader), as you can't delete pages from Reader.
    Best,
    Sara

  • How do I get the keyboard in the notes section of the ipad to pop up? It was working all day today and then stopped working.

    How do I get the keyboard in the notes section of the ipad to pop up? It was working all day today and then stopped. 

    I find it's touchy.  Tap anywhere on the note to bring up the keyboard. If you tap and hold, you won't bring up the keyboard. Just tap momentarily.
    If you can't get it to work, try restarting your iPad.  Press and hold the Sleep/Wake button until a red slider appears, then drag the slider. Then press and hold the Sleep/Wake button until the Apple logo appears.
    If it still doesn't work, try resetting your iPad.  Press and hold both the Sleep/Wake button and the Home button for at least ten seconds, until the Apple logo appears.

  • I can't get all my artists to show in my iTunes but all the songs show in the songs section. How do I get the artist to show?

    I can't get all my artists to show in my iTunes but all the songs show in the songs section. How do I get the artist to show?

    See Missing Artist or Album not with others by same artist.
    tt2

Maybe you are looking for

  • Stock reservtion against Sales order creation

    Hi friends, Presently in our system, after creation of sales order, Stock against sales order has been reserved & same has been shown in MD04. In case of demand for same material from our regular customer ,we can not delivered it to them. In SPRO,WHI

  • Jpa query with parameters in Greek

    Hello I use netbeans 6.9.1 and toplinlk essensials for jpa connected to a mysql database mysql database constants: character_set_database = utf8 character_set_server = utf8 character_set_system = utf8 I have this code Query qItemom = emOpsw.createQue

  • Persistent problem in checkboxes

    Hi, After selecting checkboxes in my basic alv list display, it will goes to detail list. when i come back to the basic alv list,the check boxes are still in checked mode.how could these check boxes can be made it to unselect mode automatically? Than

  • Lists workstations wchich a=have some network printers installed

    Hi to all, I really need help. My boss asks me to write  a powershell script wchich can list all the windows  workstations which a have some network Lexmark printers installed.And where the name of these network  printers start with "BO" for example.

  • Quick rundown

    I'm new to using iDVD and need a quick rundown. Here's what I want to do: I have a bunch of .avi files that I can't play through quicktime so I want to put them onto a DVD so I can watch them through DVD player. I want to make DVDs with several episo