Row Numbering in Crosstab

Post Author: SSVXI
CA Forum: Charts and Graphs
CR XII am trying to have row numbers in a crosstab.  I normally do this when not using a crosstab with a running total, but a running total is not available to add to the crosstab ROW listing.  For example, I am listing all the participants, and want to number them 1 thru 10.I have tried everything I can think of - am desperate for some suggestions.

i add the profile id to make a new outer row header and display like this:
123. alex
256. John
324. Bob
after add the formula in DisplayString, it preview as:
1. alex
2. John
3. Bob
anyhow..why it appear as the default field in the web application?
123. alex
256. John
324. Bob
kindly advise.

Similar Messages

  • How to print a report without row numbers or grid lines?

    Is there a way to print a Discoverer report without row numbers or grid lines?
    Thank you.
    Blake

    Hi Blake
    You're not doing anything wrong.
    The settings made when you use Tools | Options | Sheet are global settings that are only applied to new workbooks and worksheets going forwards. These have no impact on existing worksheets or even the one you currently have open. This is because Discoverer does not know whether your original worksheets were setup in a certain way deliberately as opposed to inheriting the global settings as they were at that time. What this also means, reading between the lines, is that these settings must then be stored within the worksheet itself, and this is exactly what happens.
    Thus, to edit an existing worksheet's settings you need to open the worksheet, right-click in the sheet and from the popup select either Format Table or Format Crosstab depending upon the type of worksheet you are working with. After making any necessary changes you will need to save or re-save the workbook in order for those settings to be remembered for the next time.
    Best wishes
    Michael

  • Is there a way to have a Numbers spreadsheet show the row numbers on ipad?

    I am have a spreadsheet I am using for keeping count of the current people registered for an event.
    If there a way to have one of the columns automatically show the row numbers so I can easily see the amount of people confirmed for the event without having to manually count them? Also, I will be adding and deleting lines and need Numbers to automatically show the row numbers without me having to change it.
    Thanks,
    Mike

    I found it out:
    inserted a new column A
    a --
    In A1 type 1
    in A2 type 2
    select the pair A1:A2
    drag the circular handle from the bottom right of A2 thru the very bottom of the column.
    b --
    in A1 type =ROW()
    select the cell A1
    drag the circular handle from the bottom right of A1 thru the very bottom of the column.

  • Using row numbers in sql

    I want to do a select query based on row numbers and was wondering if its possible.
    for example,
    select * from TABLE where rownumber = x;
    Thanks.

    There is one special case where
    SELECT * FROM table WHERE rownum = x
    will work, x = 1. Note, the proper psuedo column name is ROWNUM.
    You can do something like:
    SELECT *
    FROM (SELECT *,rownum rn
          FROM table)
    WHERE rn = xfor any value of rownum up to the number of rows in table.
    TTFN
    John

  • Excel 2010 Row numbers disappearing

    Question: Bit of an odd one here.
    Running Excel 2010 on a WinXP Sp3 box. Issue is only affecting one user and one of his spreadsheets. Sporatically, the actual numbers within the row identifier boxes vanishes, along with the data in the affected rows. The rows are still there, and the rows
    above and below are still numbered in the same sequencial order as if the affected rows were still numbered. If we do not notice this before saving spreadsheet, data is lost. If we unhide all cells, the numbers come back, as does the data. The odd thing is,
    as I said, the rows are NOT actually hidden, only the row identifier numbers and the data are gone.
    Please help! Critical order tracking sheet.

    Using  Windows 7 Professional ver 6.1 (Build 7601 : Service Pack 1) and Excel version 14.0.6112.5000 (32 bit)
    A large spreadsheet some 8MB and formatted as an xls file.
    I experienced a similar problem  with some  row  numbers and data missing together with some rows being expanded to a height of  550 pixels.
    Highlighting the whole row and automatically resetting the height (double clicking bottom edge ) sometimes resets the height, row numbers and data.
    Strangely highlighting the row and clicking the bold button also resets the the height, row numbers and data.
    Unfortunately these remedy’s do not persist after saving the file and reopening it.
    If I resave the "corrupted" xls version  as a Macro-Enabled Worksheet .xlsm file all of the issues above disappear.
    I hope this helps some one

  • How can i get the failed row numbers in batch insertion?

    Afeter execution of batch insert operation into a table, i use OCIAttrGet() to get the error number of insertion, as expected, it returns the correct number. however, when i use OCIParamGet() to get an error handle and then to get the exact failed row numbers , OCIParamGet() returns -2 , means "INVALID_HANDLE". can anyboy tell me why ? how can i get the exact failed rows?
    the snapshot of my code :
    int errNum = 0;
    int nRet = 0;
    nRet = OCIAttrGet((dvoid *)m_pIIOdbc->m_pStmtAll,OCI_HTYPE_STMT,&errNum,
              0,OCI_ATTR_NUM_DML_ERRORS, m_pIIOdbc->m_pErrHandle);
    if (errNum)
         OCIError* pErrHndl;
         int* pRow_off = new int[errNum];
         for (int i = 0; i < errNum; i++)
         nRet = OCIParamGet(m_pIIOdbc->m_pErrHandle,
    OCI_HTYPE_ERROR, m_pIIOdbc->m_pErrHandle, &pErrHndl, i + 1);
         nRet = OCIAttrGet (pErrHndl, OCI_HTYPE_ERROR, &pRow_off, 0,
         OCI_ATTR_DML_ROW_OFFSET, m_pIIOdbc->m_pErrHandle);
              delete []pRow_off;

    now the code is :
    OCIEnv      *m_pEnvHandle;                    
    OCIError      *m_pErrHandle;                         
    OCIError     *m_pErrHandle2;                    
    OCIServer *m_pSrvHandle;                         
    OCISvcCtx *m_pSvcHandle;                         
    OCIStmt *m_pStmtExec;
    OCIStmt *m_pStmtAll;
    OCIError** m_pErrorHndl;     
    int* m_pRowOff; //the array that will contain the failed row numbers
    int     m_nArrayLength; //length of array in once batch operation
    int m_nErrNum; //error number
    int m_nSucCount; //successful record number
    //initialization
    //m_nArrayLength is a parameter passed in, so i can not tell the exact length of the array, dynamic space allocation is needed
    m_pErrorHndl = new OCIError*[m_nArrayLength];
    m_pRowOff = new int[m_nArrayLength];
    //execution
    OCIStmtExecute(
              m_pSvcHandle,
              m_pStmtAll,
              m_pErrHandle,
              (ub4)m_nArrayLength,
              (ub4)0, (OCISnapshot *)NULL, (OCISnapshot *)NULL,
              OCI_BATCH_ERRORS
    //get successful records number
    m_nSucCount = 0;
    OCIAttrGet((dvoid *)m_pStmtAll,OCI_HTYPE_STMT,&m_nSucCount,
              0,OCI_ATTR_ROW_COUNT, m_pErrHandle);
    //get error numbers
    m_nErrNum = 0;
    OCIAttrGet((dvoid *)m_pStmtAll,OCI_HTYPE_STMT,&m_nErrNum,
              0,OCI_ATTR_NUM_DML_ERRORS, m_pErrHandle2);
    //get failed row numbers into the array
    if (m_nErrNum)
              //get failed row numbers into the array
              for (int i = 0; i < m_nErrNum; i++)
                   //initiallize error handles               OCIHandleAlloc((dvoid*)m_pEnvHandle, (dvoid**)&m_pErrorHndl,
                        OCI_HTYPE_ERROR, (size_t)0, (dvoid**)0);
                   OCIParamGet(m_pErrHandle, OCI_HTYPE_ERROR, m_pErrHandle2, (void**)&m_pErrorHndl[i], i);
                   OCIAttrGet (m_pErrorHndl[i], OCI_HTYPE_ERROR, &m_pRowOff[i], 0,
                                            OCI_ATTR_DML_ROW_OFFSET, m_pErrHandle2);
    now, if batch insert is executed, eg, there are 10 records to be inserted, thus m_nArrayLength is set to be 10. There are 5 records of the 10 have exist in database, so some of insert operations will fail. After execution, m_nErrNum is 5, and i can get the failed row numbers.Everything seems go well.
    However, if batch updata is excuted, eg, 10 records to be updated, m_nArrayLength is set to be 10, and also there are 5 records of the 10 have exist in database. After execution, the OCIStmtExecute() returns 1, m_nErrNum got by
    OCIAttrGet((dvoid *)m_pStmtAll,OCI_HTYPE_STMT,&m_nErrNum,
              0,OCI_ATTR_NUM_DML_ERRORS, m_pErrHandle2)
    is 0, and m_nSucNum is 5. Why?? how can I get the rows that fail? i have to know which rows do not exist in database??

  • How do I get row numbers to appear automatically in a Numbers chart.  Just 1,2,3,4, etc.

    How do I get row numbers to appear automatically in a Numbers chart.  Just 1,2,3,4, etc.

    Awesome! I needed a pointer for technical documentation: a thick white stroke, with a thinner black stroke going right down the middle of it. I made a new stripe stroke style: Start: 37%, Width: %26. Then I did a gap color of Paper, gap tint: 100%. Stroke color is black. Round cap.
    Thanks Bob! You rock. This made my day!!!

  • Pulling row numbers out of tables.

    I have been looking for different ways to pull row numbers from tables.  There appears to be two main methods, one of which works for me and the other that does not.  The first is:
    NameDataSet.Tables.Rows(0).Count
    This gives me the number of rows in a table.  The problem is that I have a number of tables and it appears to just pick one of them to display (I set the code above up in a
    MessageBox.Show().
    The second is the one I think I would like to use but I get an error with it.
    DataTable.Rows.Count
    In this case it won't accept the table and states that the table is not declared.
    I have looked up everything I can, but much of it makes no sense to me and that which does I seem to be unable to make work.
    gwboolean

    OK, here is what I want to do.  I have an add record event that has a method inside for creating a directory in a specific location with a name that corresponds to the number of the last record in the table.  So I need to extract that number in
    order to create the directory (actually, it gets created anyway, just the wrong name).  Previously when I clicked the add record button the first line of code was:
    Dim txtFileAdd As String = Me.TblFMFileMasterBaseBindingSource.Position
    This used to work, but now, for whatever reason, this always puts me at the first record (possibly due to the binding navigator, but don't know why).
    So I ended up modifying slightly what you gave me:
    Dim txtFileAdd As String = Me._MasterBase_06DataSet.tblFMFileMasterBase.Rows.Count + 1
    Which gives me the exact count I need to then go ahead and create the directory I want.
    Hope that clears up you confusion, at least a little.
    gwboolean

  • Print row numbers in spreadsheets

    If I want spreadsheet rows numbered do I have to number them manually or can I print the numbers on the working form when I am finished.

    Hi Snowflake,
    I suggest:
    grab the yellow dot and fill down.
    quinn

  • Displaying row numbers in tables

    Is there a way to get JTable to display row numbers on the left-most side of the table? Are there any functions in JTable that will allow you to do this?
    I am thinking that to do this, I will probably need to add a column to my table model and make the first column and uneditable JLabel that shows the row number.
    Thanks for any help.
    Mike Ryan

    Ok , the class i am pulling this code from is 500+ lines of code, so I will try to pull out only the important pieces.
    private DefaultTableModel theNorthernModel;
    private JTable theNorthernTable;
    private DefaultTableCellRenderer[] theRenderer;
    private JScrollPane theNorthernPane;
    private Object[] rowTitles = {"1", "2", "3",  "4", "5",  "6", "7"};//
    private Object[] colTitles  = {"one","two","three","four","five","six"};
         theNorthernModel = new DefaultTableModel(rowTitles.length,colTitles.length);
              theNorthernTable = new JTable(theNorthernModel);
              theNorthernTable.setCellSelectionEnabled(false);
              theNorthernTable.setEnabled(false);
              theNorthernTable.getTableHeader().setReorderingAllowed(false);
              theNorthernPane  = new JScrollPane(theNorthernTable);
              theNorthernPane.setPreferredSize(new Dimension(600, 150));
    //this is the stuff you want          
    ListModel listModel = new AbstractListModel() {
                 public int getSize() {
                         return rowTitles.length;
                public Object getElementAt(int index) {
                     return rowTitles[index];
            JList rowHeader1 = new JList(listModel);
            rowHeader1.setBackground(theNorthernPane.getBackground());
            rowHeader1.setFixedCellWidth(140);
            theNorthernPane.setViewportView(theNorthernTable);
            theNorthernPane.setRowHeaderView(rowHeader1);
            rowHeader1.setCellRenderer(new RowHeaderRenderer(theNorthernTable));
    theRenderer = new DefaultTableCellRenderer[6];
              for(int i = 0; i< 6; i++) {
                   theRenderer[i] = new DefaultTableCellRenderer();     
    theColumnModel = (DefaultTableColumnModel)theNorthernTable.getColumnModel();
    * RowHeaderRenderer renders the panel's rows
    class RowHeaderRenderer extends JLabel implements ListCellRenderer {
         * Constructor creates all cells the same
         * To change look for individual cells put code in
         * getListCellRendererComponent method
        RowHeaderRenderer(JTable table) {
            JTableHeader header = table.getTableHeader();
            setOpaque(true);
            setBorder(UIManager.getBorder("TableHeader.cellBorder"));
            setHorizontalAlignment(CENTER);
            setForeground(header.getForeground());
            setBackground(header.getBackground());
            setFont(header.getFont());
         * Returns the JLabel after setting the text of the cell
        public Component getListCellRendererComponent( JList list,
        Object value, int index, boolean isSelected, boolean cellHasFocus) {
            setText((value == null) ? "" : value.toString());
            return this;
    }

  • Retrieving row numbers in order

    how are rows retrieved in jdbc?
    i want my query to retrieve the row numbers and not the record number.
    if i do this
         ResultSet rs = stmt.executeQuery("SELECT LMNAME FROM T_LINKMANAGER where rownum >= 1 and rownum <=18 and LMFLAG='false' order by lmid asc");it selects 18 rows but the record numbers are 1,2,3,4,36,37,38,58.etc
    i want it to select rows 1-18 and the record numbers should be 1-18 or 1-19, if 18 gets deleted.

    well, i did say that in my post, dint i ? here's it again - Please note:: a condition of rownum >= (any number other than 1) will never work
    here's the reason - rownums are dynamically constructed data - they arent stored anywhere. So lets say you have a query, it selects say 10 rows. now when you add the clause rownum > 1, it picks up the first row. The first row's rownum is 1 and since you have mentioned >1, it discards it. Next it picks up the second row which's rownum is 1 again (since the first one has been discarded). And now the second row gets discarded for the same reason. It would return zero rows which's exactly how it behaved for you. You have to either write it in a sql script or do it via java.
    cheers,
    ram.

  • White row numbers in rowheader when scrolling

    I'm using a JTable as a row header in a JScrollPane. When i scroll the data table, header table scrolls but row numbers looks bad repainted white squares. I found some posts talking about this issue but I didn't find the answer, could anyone tell me if i'm missing something?
    here's my code
    Header class:
    public class JPdfSelectionTableRowHeader extends JTable {
         private static final long serialVersionUID = 9074507882735673054L;
         private JTable mainTable;
         public JPdfSelectionTableRowHeader(JTable table){
              super();
              mainTable = table;
              setAutoCreateColumnsFromModel(false);
              setModel(mainTable.getModel());
              setAutoscrolls(false);
              setFocusable(false);
              setRowSelectionAllowed(false);
              addColumn(new TableColumn());
              getColumnModel().getColumn(0).setCellRenderer(getDefaultRenderer(Integer.class));
              getColumnModel().getColumn(0).setPreferredWidth(20);
              setPreferredScrollableViewportSize(getPreferredSize());
         public boolean isCellEditable(int row, int column){
              return false;
         public Object getValueAt(int row, int column){
              return new Integer(row + 1);
         public int getRowHeight(int row){
              return mainTable.getRowHeight();
         public boolean isFocusTraversable(){
              return false;
    }and how i'm using it:
    JViewport viewPort = new JViewport();
                  viewPort.setView(new JPdfSelectionTableRowHeader(mainTable));
                  tableScrollPane.setRowHeader(viewPort);Thank you

    Well it looks like you copied my "Line Number Table" (without the spaces) example, which works fine for me.
    I have no idea why your code won't work given that the code you posted is not compileable and therefore not executable.

  • Row numbers in Financial reporting Studio report

    Hey I am designing reports in FR Studio that require row numbers next to the line item (Account) description. The problem is that these rows can be dynamically suppressed if they are 0/missing/error. So the question is: how do I get row #s, skipping hidden rows?
    Thanks

    Yes I completely agree, a few extra 'Excel' type functions could make a huge difference!
    Thinking outside the box, one ugly workaround might be ranking??! Could you somehow use ranking on the report to return a row number?
    I'm thinking on the Essbase side you might need to create a member in a dimension other than Accounts that you can store a static value against, incrementing it for each account in your hierarchy, e.g 10, 20, 30 etc. Then in your reports you have a hidden column to return that value and a formual column to rank it in ascending order.
    Like I say not pretty but if you could do it in a dense dim e.g. Period then it shouldn't significantly add to block size / db size as it is only one member, store it against a static member in your other dimensions, e.g. No Year, No Entity assuming you have something similar. You would also need to be careful of your numbering if your row numbers needed to include subtotals so that those values were ranked correctly.
    Its amazing what you can come up with when you have to find a way to do things.
    Hope this helps
    Stuart

  • Row numbers in a report

    I would like to have row numbers in a spool file that I am creating in SQL*Plus. The end user will be bringing the spool file into Excel and needs to have a line number for each row of data. Is that possible? Thanks.

    Something like this ?
    TEST@db102 > select rownum,a.*
      2  from (select empno,ename from emp
      3  order by ename) a;
        ROWNUM      EMPNO ENAME
             1       7876 ADAMS
             2       7499 ALLEN
             3       7698 BLAKE
             4       7782 CLARK
             5       7902 FORD
             6       7900 JAMES
             7       7566 JONES
             8       7839 KING
             9       7654 MARTIN
            10       7934 MILLER
            11       7788 SCOTT
            12       7369 SMITH
            13       7844 TURNER
            14       7521 WARD
    14 rows selected.
    TEST@db102 >

  • How To Get Row numbers in matrix report

    Hi All
    i created an matrix dril down report
    in which i have to get row numbers 
    my requirement is something like
    state          City                           RowNumber                 
    Apr                          May                  
    Jun                Jul        Aug
    AP +            Vij                                 
     1                               300000                
    5666
                      Guntur                            
     2                                70000                    
    8888
                      Hyd                                  
    3                                 0000                    
    555
    MP+               RJA                              
    4                               7770                           
    0
    KL+             Kollam                            
    5                              80000                           
    555
                       Trv                                   6                             
    50000                       666
    SP+              Trj                                  
    7                               666                         
    666
    JP+               mka                                
    8                             6667                           
    66668
    RP+              Rja                                  
    9                               899
    like that above i have to get
    i used                  RowNumber(Nothing)                And Also RowNumber("Group")
    iam not getting like above   iam getting either randomly   or sum of all months
    means for each month it is taking 1
    so total iam getting 12,24,36,48..................like that
    but i want the above requirement
    so any one suggest how get that in matrix report..........

    Hi Mr.SMK,
    Per my understanding you want to get the row number based on the row group of "City", right?
    I have tested on my local environment and you can using the expression below to do this:
    Right click the city column and select the "Insert Column" and select the "Inside group-right"
    Add below expression to get the row number:
    =RunningValue(CountDistinct("DataSetName"),Count,"DataSetName")
    Preview result like below:
    If you still have any problem, please try to provide some sample data and more details information.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

Maybe you are looking for

  • Wireless setup problem for HP Officejet J6480 All - in - One printer

    I can not get my printer setup wirelessly.  When I send a print job to it, the message comes back, printer offline.  I can hook up the USB cable and it prints fine.  I installed the software on my IMac as instructed.  I used the HP Printer manager.  

  • Re: Skype To-Go Rates

    I live in the USA, and 99% of my calls are from upstate NY to New York City - I cant find what the rates are for these calls.  What is the rate for individual call within USA. I have  subscription, and I buy credit on-line.

  • CREMAS or DEBMAs

    Hi friends, I am new to ALE/IDOC Could any one give an step by step illustration on Creating Logical system,Port creation,Partner profies,RFC ,distribution model creation with a real world example on any one IDOC like DEBMAS or CREMAS or DEBMAS. rega

  • Can apple mail be used from the command line?

    Can the Mac Mail application be used from the OSX command line?  Has anyone installed a command-line, Linux-like mail application to run on OSX?

  • ACS 5.1

    Hello Dears, I m facing problem when i try to install the ACS 5.1 on VMware, It give me error COULD NOT FIND KERNEL IMAGE :LINUX when i try to boot from DVD ,it is a  Evaluation version download from Cisco.com Thanks