Add each column record with next column record

Dear all,
I have created a crosstab with the column "Order Numbers". Each Order number is calculated per day.
I would like to know how can I create a formula so that each record in the column field is calculated by adding the next column field.
For example
Order numbers
1
2
3
4
5
Formula should display the records like this
Order Numbers
1
3 (12)+
6 (123)
10 (1234)+
15 (12345)
So in other words each record in each field of the column is adding the next field.
Something like ColumnRecord= Column Record+Next column Record.
How can we achieve this?
Many thanks
Regards
Jehanzeb

Hellooo,
I have sorted it.
here is what I did
Firstly I selected the Column field (percentage field).
Clicked format -
> then Suppress and clicked on x+2
added the following formula
whileprintingrecords;
numbervar x := x + currentfieldvalue;
false
Then I clicked on Display String x+2 and entered this.
whileprintingrecords;
numbervar x;
totext(x,2)+"%"
Then I clicked on border->background> and added this formula
whileprintingrecords;
numbervar x := 0;
defaultattribute
all set and it is working perfectly.
I hope this helps someone who is seeking this type of formula
Regards
Jehanzeb

Similar Messages

  • How to add a column to a list created with the Dynamic List Wizard to display the values of the fiel

    Hi,
    ADDT, Vista, WAMP5.0
    We have 2 tables: clients_cli (id_cli, name_cli, tel_cli, and several more fields) and cases_cas (id_cas, idcli_cas, court_cas, and a lot of other fields).
    Clients may have many cases, so table cases_cas have a foreign key named idcli_cas, just to determine which case belongs to which client.
    We designed the lists of the two tables with the Dynamic List Wizard and the corresponding forms with Dynamic Form Wizard.
    These two forms are linked with the Convert Dynamic List and Form Wizards, which added a button to clients list named "add case".
    We add a client and then the system returns to the clients list displaying all clients, we look for the new client just added and then press "add case", which opens the Dynamic Form for cases, enter all case details and everything processes ok.
    However, when we view the cases list it display all the details of the case, including the column and values for the foreign key idcli_cas. As you can image, it is quite difficult for a human to remember the clients ids.
    So, in the cases list we added a another column, named it Name, to display the names of the clients along with cases details. We also created another recordset rsCli, selected the clients_cli table, displaying all columns, set filter id_cli = Form Variable = idcli_cas then press the Test button and everything displays perfect. Press ok.
    Then, we position the cursor inside the corresponding cell of the new Name column, go to Bindings, click on name_cli and then click on insert. The dynamic field is inserted into the table cell as expected, Save the page, and test in browser.
    The browser call the cases list but fails to display the values of the Name column. The Name column is simply empty.
    This issue creates a huge problem that makes our application too difficult to use.
    What are we doing wrong?
    Please help.
    Charles

    1.     Start transaction PM01, Create Infotype, by entering the transaction code.
    You access the Create Infotype screen.
    2.     Choose List Screen.
    3.     In the Infotype no. field, enter the four-digit number of the infotype you want to create.
    When you specify the infotype number, please remember to enter any leading zeros.
    4.     In the Screen Number field, enter the screen number of the list screen you want to enhance.
    5.     Choose Create.
    The Dictionary: Initial screen appears:
    6.     Create the list screen structure.
    7.     Choose Activate.
    8.     Return to the Enhance List Screen in the Enhance Infotypes transaction (PM01).
    9.     Choose Create All.
    The additional fields are displayed on the list screen, however, they contain no data.
    The fields can be filled in the FORM routine FILL-LISTSTRUCT in the generated program ZPnnnn00. The FORM routine is called for each data record in the list.
    Structure ZPLIS is identified when it is generated with a TABLES statement in the program ZPnnnn00.
    The fields can be filled from the Pnnnn structure or by reading text tables.

  • Is there a way to add a column after a filled DataTable from SQL with the same rows?

    My problem is that not to add rows like filled by SQLDataAdapter at the same row in DataGridView. How to make that? I showed below the details with my code also a screen shot, which shows the rows differences from the origin one.
    I don't want to add an expression as column behave in my sql script to get what I need with query result. I don't want to obtain that way.
    using (SqlConnection c = new SqlConnection(ConnStrMSSQL))
    c.Open();
    // 2
    // Create new DataAdapter
    using (SqlDataAdapter a = new SqlDataAdapter("SELECT SIPNO, SERINO, TARIH FROM SNOHAREKETLER WHERE Cast(TARIH as DATE) BETWEEN '2015/03/20' AND '2015/03/20' AND (TEZNO = 'T23' OR TEZNO = 'T31') AND CIKTI is null", c))
    // 3
    // Use DataAdapter to fill DataTable
    DataTable t = new DataTable();
    a.Fill(t);
    t.Columns.Add("MyColumn", typeof(string));
    DataRow workRow;
    int iGetCount = t.Rows.Count;
    for (int i = 0; i <= iGetCount - 1; i++)
    workRow = t.NewRow();
    workRow["MyColumn"] = i;
    t.Rows.Add(workRow);
    dataGridView1.DataSource = t;

    The extra column isn't applied to only certain rows.  The columns of a table identify what data each row will contain.  Hence adding a column to the table automatically adds them to the rows.  What you're seeing is that all the initial rows
    aren't being assigned a value so they retain their default value of null.  Later you enumerate the rows of the existing table and call AddRow which adds new rows.  This isn't adding columns, but rows.
    To generate values for the existing rows you should ideally simply pass the data back from the database.  DT computed columns can be difficult to set up as it is limited to what it can do.  If you want to use a computed column on the Datatable
    itself then define the column as a computed column and every row will calculate its own value.
    DataTable data = GetData();
    //Add elapsed time column
    var col = new DataColumn("ElapsedTime", typeof(TimeSpan), "expr");
    data.Columns.Add(col);
    dataGridView1.DataSource = data;
    The issue you will run into however is that calculating a diff on DateTime doesn't work in a computed column as the expression doesn't support the necessary functions.  You can google for how people solved this if you are interested in alternatives. 
    Most people just tend to add the column and then hook into the various change events to update the value as needed.

  • Download int table into csv file with each column in separate column in csv

    Hi All,
    I want to download the data in internal table to CSV file. but each column in the table should come as separate column in csv format.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          FILENAME                = GD_FILE
          FILETYPE                = 'ASC'
          WRITE_FIELD_SEPARATOR   = 'X'
        tables
          DATA_TAB                = I_LINES_NEW
        EXCEPTIONS
          FILE_OPEN_ERROR         = 1
          FILE_READ_ERROR         = 2
          NO_BATCH                = 3
          GUI_REFUSE_FILETRANSFER = 4
          INVALID_TYPE            = 5
          NO_AUTHORITY            = 6
          UNKNOWN_ERROR           = 7
          BAD_DATA_FORMAT         = 8
          HEADER_NOT_ALLOWED      = 9
          SEPARATOR_NOT_ALLOWED   = 10
          HEADER_TOO_LONG         = 11
          UNKNOWN_DP_ERROR        = 12
          ACCESS_DENIED           = 13
          DP_OUT_OF_MEMORY        = 14
          DISK_FULL               = 15
          DP_TIMEOUT              = 16
          OTHERS                  = 17.
      IF SY-SUBRC NE 0.
        WRITE: 'Error ', SY-SUBRC, 'returned from GUI_DOWNLOAD SAP OUTBOUND'.
        SKIP.
      ENDIF.
    with the above values passd , I am getting csv file but all the columns in one column separated by some square symbol.
    How to separate them into different columns.
    Thanks in advance
    rgds,
    Madhuri

    Below example might help you understand on dowloading CSV file:
    TYPE-POOLS: truxs.
    DATA: i_t001 TYPE STANDARD TABLE OF t001,
          i_data TYPE truxs_t_text_data.
    SELECT * FROM t001 INTO TABLE i_t001 UP TO 20 ROWS.
    CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'
      EXPORTING
        i_field_seperator          = ','
    *   I_LINE_HEADER              =
    *   I_FILENAME                 =
    *   I_APPL_KEEP                = ' '
      TABLES
        i_tab_sap_data             = i_t001
    CHANGING
       i_tab_converted_data       = i_data
    EXCEPTIONS
       conversion_failed          = 1
       OTHERS                     = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    DATA: file TYPE string VALUE 'C:\testing.csv'.
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
        filename                = file
      CHANGING
        data_tab                = i_data[]
      EXCEPTIONS
        file_write_error        = 1
        no_batch                = 2
        gui_refuse_filetransfer = 3
        invalid_type            = 4
        no_authority            = 5
        unknown_error           = 6
        header_not_allowed      = 7
        separator_not_allowed   = 8
        filesize_not_allowed    = 9
        header_too_long         = 10
        dp_error_create         = 11
        dp_error_send           = 12
        dp_error_write          = 13
        unknown_dp_error        = 14
        access_denied           = 15
        dp_out_of_memory        = 16
        disk_full               = 17
        dp_timeout              = 18
        file_not_found          = 19
        dataprovider_exception  = 20
        control_flush_error     = 21
        not_supported_by_gui    = 22
        error_no_gui            = 23
        OTHERS                  = 24.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Regards
    Eswar

  • How to add one column value with grand total

    hi,
    this is my perform.i am just here multipling  menge and gpres value and stores into G_total variable and displing into output.
    this is my output in main window.
    ex:mat. 1           77.00(g_total value)
        mat  2             55.00(g_total value)
    now the requirement is to add the column and display the output as grand total ex: 77.00 +55.00 = 132.00
    how to do the syntax please help me......???
    FORM get_total  TABLES   in_tab STRUCTURE itcsy
                              out_tab STRUCTURE itcsy.
      DATA: lv_menge(20),
            lv_gpreis(20),
            g_total(20),
            g_total1(20).
      DATA:lc1 TYPE string,
           lc2 TYPE string,
          ls_tab      TYPE itcsy,
         l_tabix        TYPE sy-tabix.
      READ TABLE in_tab WITH KEY name = 'RESBD-MENGE'.
      IF sy-subrc EQ 0.
        lv_menge = in_tab-value.
      ENDIF.
      READ TABLE in_tab WITH KEY name = 'RESBD-GPREIS'.
      IF sy-subrc EQ 0.
        lv_gpreis = in_tab-value.
      ENDIF.
      REPLACE  ',' INTO  lv_gpreis WITH ''.
      CONDENSE lv_gpreis NO-GAPS.
      READ TABLE out_tab WITH KEY name = 'G_TOTAL'.
      IF sy-subrc EQ 0.
        g_total = lv_menge * lv_gpreis.
        out_tab-value = g_total.
        CONDENSE g_total.
        lc1 = g_total+0(2).
        lc2 = g_total+2(3).
        CONCATENATE lc1  lc2  INTO g_total SEPARATED BY ','.
        out_tab-value = g_total.
    CLEAR ls_tab.
        LOOP AT out_tab INTO ls_tab.
          l_tabix = sy-tabix.
          CASE ls_tab-name.
            WHEN 'G_TOTAL'.
              ls_tab-value = G_TOTAL.
          MODIFY out_tab FROM ls_tab INDEX l_tabix.
    ENDCASE.
        ENDLOOP.

    >
    asissahu wrote:
    > hi.
    >
    > nobody is replying my question???
    >
    > please help me
    Hi, Asissahu
    Because may be some one have problem to read your code
    Please have a look at the following link and past code this way.
    [How to post code in SCN|How to post code in SCN, and some things NOT to do...;
    @Naga Please you too
    Regards,
    Faisal

  • Is it possible to add new columns with format "Text" once a table is linked to a form

    Is it possible to add new columns with format "Text" once a table is linked to a form in Numbers for iPhone or is it impossible and thus a serious bug?(Rating stars and numeric vales seem to work.)
    Those bugs happen both for new speadsheets as well as existing onces, like the demo. When you are in the form only the numeric keyboard shows up.
    Pat from the Apple Store Rosenstrasse/Germany approved that it looks like a Bug during the Numbers Workshop I was in: It is not possible to add new columns with format "Text". I reported the error for Version 1.4 but there is no update nor do I get statement of understanding the issue.

    Hi Knochenhort,
    I see what you are talking about now. Without knowing how the program actually works, I think this is what's going on:
    When you add a new column to an already existing table (with already existing formats), the new cells come already formatted like the previous column. So when you add a column to the end of the demo table, the cells are already formatted like stars, and when you add a column to the beginning, they're already formatted like number.
    I think this is why it's different when if you add columns to a table with blank (unformatted) columns. In that case, the new cells aren't already "tainted" with a set format, so you can change to text format without issue.
    It seems like the problem is that you can't format cells that are already formatted as "number" as "text" format (even if it doesn't look like they are, because they are blank). IMO, this is a bug! This is why you don't see this issue when adding columns to a new table, because the new cells don't already come with a format.
    To workaround, you can highlight the body cells after adding the new column, and delete the cells. This will "clear" the formatting, so you can then go in the inspector, format them as text, and the correct keyboard will pop up.
    Hope that helps!

  • "Add a column to show each of these additional fields: " doesn't support person feild

    "Add a column to show each of these additional fields: "  doesn't support person feild
    I've seen that its not supported in 2010 version of sharepoint but I was hoping in the last 3 years  its been fixed for the 2013 
    Any idea if this will be fixed or not?

    Given that it hasn't been fixed so far, i doubt it.
    The reason it doesn't work for some columns is that they themselves  are a form of lookup column. I suspect MS have disallowed it to prevent looping, where a lookup column eventually starts trying to look up on itself. There may be other technical challenges
    to making a double hop lookup column.

  • I use Function Sum to add a column and a new column pops up filled with 0s

    In one of my spreadsheets, every time I try to add a column of numbers using the Sum Function, a new column is added filled with 0s. What's happening? And How do I get it to just add the column?

    can't you just write an SQL script to update the new column?
    Perhaps you can use the integration_id for this? or just another column(s)..

  • How to add custom columns with BO data from GP to UWL

    Hi
    We have CE 7.1 in our project UWL taskitems only have GP workflow tasks.
    In UWL we can see that by default there are standard columns but now we need to add custom columns with data from ours BO associated to process instance
    For that we need to develop one custom connector for UWL where we can retrieve the values from custom conenctor to UWL.
    Currently our NWDS 7.1 does not have plugins for UWL Connector can anybody tell me where can I download this plugins?
    thanks in advance!
    Regards
    Cristian

    Hi,
    plz refer the following link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ee5047-c7a0-2a10-70b7-9557e3e4d440
    Regards
    Manohar

  • Plotting 2 Columns of Data Against Each Other, Not With Time

    I have several data columns, one with current, one with voltage, one with time. I am trying to make and IV curve, plotting the current and voltage against each other, preferably with the voltage as the Y axis and current as the X axis. However, every time
    I try to select the two columns and scatterplot them, excel automatically makes it either a stacked graph of current with time and voltage with time, or just gives me voltage with time. How do I get excel to simply graph the two columns that I select?

    Try the following:
    If you have a chart with 2 series V and I both plotted on the Y axis, against 1, 2, 3, ...:
    Select the chart.
    On the Design tab of the ribbon, click Select Data.
    Select one of the two series (it doesn't matter which).
    Click Edit.
    Select the text displayed in the 'Series Y values' box, and copy it (Ctrl+C).
    Click Cancel.
    With the same series still selected, click Remove.
    Select the remaining series, then click Edit.
    Click in the 'Series X values' box, then paste (Ctrl+V).
    Click OK, then OK again.
    If you have a chart with only one series (either V or I) plotted against 1, 2, 3, ...:
    Select the chart.
    On the Design tab of the ribbon, click Select Data.
    Select the series.
    Click Edit.
    If there is anything in the 'Series X values' box, clear it.
    With this box still selected, use the mouse to select the data range of cells for the other quantity you want to plot.
    Click OK, then OK again.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Hi I'm a total novice, as you will see. But Iam trying to use template of an employee schedule but when I try to add extra columns it does not add the preset formula with it, so it works out total hours and total pay?   If any one can help please.

    Hi I'm a total novice, as you will see. But Iam trying to use template of an employee schedule but when I try to add extra columns it does not add the preset formula with it, so it works out total hours and total pay?   If any one can help please before I throw it through the window!

    Grum12 wrote:
    Hi I'm a total novice, as you will see. But Iam trying to use template of an employee schedule but when I try to add extra columns it does not add the preset formula with it, so it works out total hours and total pay?   If any one can help please before I throw it through the window!
    Hi Grum,
    If the formulas aren't filling to the new column, you must have changed something in the template since you first opened it. Numbers is rather fussy about filling row content in columns as they are added. Only rows with the same expression in every Body Column will fill when a column is added. Just as an experiment, start a new Employee Schedule document from the Template Chooser and then add a column by clicking the Add Column handle in the upper right corner of the table. If that works, as it should, then think about what might have changed in your working document to disconnect that feature. Maybe we can figure it out together.
    Jerry

  • Matrix with different dimensions for each column

    Hi,
    I would like to have a matrix with different dimensions (rows) for each
    column, for example, I want the first column has 3 rows, the second one
    5 rows, the third one 10 rows, and so on.....
    With a simple array it is not possible, and then I make an array (for
    my columns) of clusters and each cluster has another array (rows for
    that column). Is it the best way to do it? Is it correct?
    Thanks,
    ToNi.

    Yes, everything we told you in this old thread  is still true!
    LabVIEW Champion . Do more with less code and in less time .

  • Reporting data with quotes around each column, separating with ,

    I want to report data with quotes (") around the data and make is CSV.
    I use colsep , to allow the comma separator, but how can I get " around each column?
    I do not know the column I am dealing with, since it's over several tables from a dynamic script.
    EG
    set pagesize 90 linesize 1000 colsep ,                                     
    spool FND_SESSION_REP.csv  
    with mycount as (select count(*) numrows from FND_SESSION_REP) select vi.instance_name, vi.version, moredata.* from (select rownum r,mycount.numrows, data.* from FND_SESSION_REP data, mycount where mycount.numrows>0) moredata,v$instance vi where r>numrows-10;                                                  
    spool off       And I'd like
    "col1","col2","col3"
    etc
    Possible?

    SQL> select '"'||empno||'","'||ename||'"' from scott.emp;
    '"'||EMPNO||'","'||ENAME||'"'
    "7369","SMITH"
    "7499","ALLEN"
    "7521","WARD"
    "7566","JONES"
    "7654","MARTIN"
    "7698","BLAKE"
    "7782","CLARK"
    "7788","SCOTT"
    "7839","KING"
    "7844","TURNER"
    "7876","ADAMS"
    "7900","JAMES"
    "7902","FORD"
    "7934","MILLER"
    14 rows selected
    SQL>

  • How to add a column in Item Master form with chooselist

    Hi Experts
    I add a column in Item Master Form in Stock Data Tab. In this column I want to add Choose list. For this I use AfterFormLoad event. It gives Error "Matrix Line Exist" . My code is given below
    If pVal.FormType = "150" Then
                    form = B1Connections.theAppl.Forms.GetForm(150, pVal.FormTypeCount)
                    form.PaneLevel = 3
                    oItem = form.Items.Item("28")
                    oMatrix = oItem.Specific
                    Dim chooseObj As ChooseListClass
                    chooseObj = New ChooseListClass
                    chooseObj.AddChooseFromListBinCode(form.UniqueID)
                    oColumns = oMatrix.Columns
                    oColumn = oColumns.Add("BINCODE", BoFormItemTypes.it_EDIT)
                    oColumn.Width = 100
                    oColumn.DataBind.SetBound(True, "OITW", "U_BINCODE")
                    oColumn.TitleObject.Caption = "Def BinCode"
                    oColumn.Editable = True
                    oColumn.ChooseFromListUID = "CFL5"
                    oColumn.ChooseFromListAlias = "U_BinCode"
                    oColumn = oColumns.Item("U_BINCODE")
                    oColumn.Visible = False
                End If
    please give your suggestion
    Regards
    Jitender

    Hi Noor
    Thanks for reply
    I tried your suggestion but problem still there. I am using after form load event. Here matrix has 9 lines (all warehouse). If remove the line then how can I reload warehouse data. Can you suggest in more detail.
    my code is given below
    form = B1Connections.theAppl.Forms.GetForm(150, pVal.FormTypeCount)
                    form.PaneLevel = 3
                    oItem = form.Items.Item("28")
                    oMatrix = oItem.Specific
                    MsgBox(oMatrix.RowCount)
                    oMatrix.DeleteRow(1)
                    Dim chooseObj As ChooseListClass
                    chooseObj = New ChooseListClass
                    chooseObj.AddChooseFromListBinCode(form.UniqueID)
                    oColumns = oMatrix.Columns
                    oColumn = oColumns.Add("BINCODE", BoFormItemTypes.it_EDIT)
                    oColumn.Width = 100
                    oColumn.DataBind.SetBound(True, "OITW", "U_BINCODE")
                    oColumn.TitleObject.Caption = "Def BinCode"
                    oColumn.Editable = True
                    oColumn.ChooseFromListUID = "CFL5"
                    oColumn.ChooseFromListAlias = "U_BinCode"
                    oColumn = oColumns.Item("U_BINCODE")
                    oColumn.Visible = False
                    oMatrix.AddRow(1)
    Thanks
    Waiting for reply
    Regards
    Jitender

  • Need to add default columns to a CrossTab

    Post Author: ViBaldi
    CA Forum: Crystal Reports
    Just wondering if anyone has any ideas, as I have run out...
    I have a summary report that queries an SQL view and contains a CrossTab. The selection criteria is filtered by 4 selectable parameter fields:
    1) Region    2) Type of Job     3) Start Date    4) End Date
    With the exception of the dates, the user can select u2018one or manyu2019 from the dynamic parameter fields. The dates are selectable with Calendar controls. The Report is Grouped initially by Region. In my CrossTabs in each selected Region, the rows are the selected Job Type and the columns are grouped by the Month of the Job. The summarized field in the CrossTab is a Distinct Count of the JobID's. So basically, I want a monthly summary of Job Types, where the user can select the Job Types and date range for any particular Region.
    My dilemma is that my Cross Tab will not include Months, if there was no activity in those months. I want it to still print the Months, regardless of whether there were no jobs, but show a count of zero. Note that if there were different Job Types during the Month, it will appear with a zero in the column for the correct Job Type, but if that month had none of the selected Job Types, the Month is skipped altogether. Somehow, I would like to have the CrossTab leave all selected Months within the Start and End Dates in the columns, but with zero's as the Distinct Count, instead of skipping those Months.
    Here is a typical example:
    User selects 4 regions from the Regions PickList (say..Vancouver, Victoria, Nanaimo, Sooke).
    User selects 3 Job Types from the Job Type pick list (sayu2026Install, Removal, Service Call).
    User selects Jan. 1/07 as Start Date and Jun. 31/07 as End Date
    All of these picklists populate on first pass of the query, I believe.
    My Report Groups into Regions first, and then includes a CrossTab for each Region. I had hoped that the CrossTab would list all 3 Job Types in the left hand Rows, and all six Months in the Columns. Not so! If there was no u2018Installu2019 activity in Vancouver for all six Months, then that Job Type is omitted. Similarly, if there were no Job Type activities (of the 3 selected) at all for the whole month of March in Victoria, then the column for March is omitted. But, if March had 2 u2018Removalu2019 Job Type, and no other activity, and all other Months had at least one Job Type activity, then all Months would appear, and zerou2019s would be present where appropriate.
    So, it seems obvious that the query doesnu2019t have data for the Months with no activity, and you cannot do a Distinct Count of no data. I cannot insert fake records into the database, nor would I want to, because the JobID is a Unique Identifier. I have viewed a similar post that suggests linking to a .txt file, but I think that this may not work for me. I suspect that the ability for the user to select a date range would be a problem here, because the user could select only 3 consecutive months, or 18 consecutive months.
    Any ideas will be greatly appreciated. Please note that I am fairly proficient with Crystal Reports XI, and have tried everything I know, but I am relatively inexperienced with CrossTabs.
    Thanks!

    Post Author: Doug Johnson
    CA Forum: Crystal Reports
    This may not be the best solution but I believe it will solve your problem.  Try adding dummy records to your SQL view query.  I've done this with crosstabs in the past.  Use a UNION to your original select statement to do this.  So if your original query looks like:SELECT job_type, month, cross_value FROM tableA {where...blah blah}then add some UNIONs to it and return the whole thing as one view.SELECT job_type, month, cross_value FROM tableA {where...blah blah}UNIONSELECT DISTINCT job_type, 'January' AS month, 0 AS cross_value FROM tableA {where...blah blah}UNIONSELECT DISTINCT job_type, 'Feburary' AS month, 0 AS cross_value FROM tableA {where...blah blah}ect....If you are doing a sum at the crosstab value, the extra 0's won't harm anything.  If you're doing a count you will have to compensate by subtracting the extra 0 job_types/months.  You could also create a dummy table that contains the distinct job_types, 0 values and months, then just add one UNION selecting from that table.  OR you could just add an extra record to your existing table(s) that contains 0's for all months/job types.   

Maybe you are looking for

  • PC Suite Upgrade : Phone (N70) not supported

    Hi Just upgraded to latest version of PC Suite and have hit problems. Prior to upgrade phone and PC were connecting fine with no problems. Now when establishing connection between phone and PC receive following message :'PC Suite does not support the

  • Creative Cloud Desktop App installer crash (Mac OSX)

    I wanted to update my existing CC Desktop App, but that didn't work out, so I uninstalled it, and tried to reinstall. But that brought me into a whole other world of pain and tears. Basically, when I finally worked out where I could download the .dmg

  • Mailing list form, how to make it functional?

    I'm trying to add the typical "Join our Mailing List" form into a website where users can submit their email addresses.  I've built the form and now I need to make it functional.  I don't know a lick of php or databasing, and after investigating it o

  • How to create uniform size archive logs?

    DB version 11.2.0.3 OS solaris. i have 6 online redo log groups. i want that my archive logs file always create of uniform size of 50MB each?

  • Holding final note in a song in Final Cut Express

    I need to hold the last note in a song for a video project. Any ideas?