Split Column group heading to next row based on row group

Hii all 
I am developing a matrix by grouped departments on row and schemes are in columns
but scheme group goes to end .. its not meeting my requirement 
as per above image my report should looks like. 
but report looks like below ..
Dilip Patil..

Hi Dilip Patil,
According to your description, you want to create a matrix which display schemes of departments. Now you can't make the matrix looks like the first image above. Right?
In this scenario, you should have a data field in your dataset which is for the schemes to group on. Otherwise the matrix can't dynamically generate those schemes into on row. If you don't have a column in your database to group the schemes,we suggest you
use table the render your data and put the schemes into detail rows. We have tested in our local environment. Here are steps and screeenshots for your reference:
1. We add a column(named Scheme) in database to define scheme group for schemes.
2. Put Dept into row group and set it group on Govt. The design looks like below:
3. Save and preview. It looks like below:
Reference: 
Exporting Reports (Report Builder and SSRS)
Matrices (Report Builder and SSRS)
If you have any question, please feel free to ask.
Simon Hou

Similar Messages

  • How to change Group Header Font in Crystal report Left Most Group Tree?

    Hi Dears!
    I am using crystal report 10 with C# 2005. I have an issue that i want to change the font of Group Header Text that is visible when we click on Toggle Group Tree button and a tree pane is visible towards the left side of report viewer.Means all the Group Tree Items that are visible when we click  Toggle Group Tree button on Crystal report Viewer.
    I have goggled a lot but unable to find any hint. Any idea or help would be highly appreciated .
    Thanks in advance.

    look for information on drilldowngrouplevel function. this is available in versions 9 and higher.
    i cant test it in mine to give you the syntax, but you would need to create another section and conditionally surpress the section on the drilldowngrouplevel function. hope this helps

  • Determine rows based on their 'grouping'

    Ok assume there is a table (TableA) in this format
    col1     col2      col3               col4     col5     col6
    R1     route1     route1Description1     AA     BB     CC     
    R1     route1     route1Description1     AA     CC     
    R1     route1     route1Description1     CC     BB     
    R2     route2     route1Description2     GG     KK     LL     
    R2     route2     route1Description2     GG     LL     
    R2     route2     route1Description2     LL     KK
    R3     route3     route1Description3     DD     EE     FF     
    R3     route3     route1Description3     DD     FF     
    R3     route3     route1Description3     MM     NN     ZZ
    R4     route4     route4Description4     FF     SS     XX|PP|OO
    R4     route4     route4Description4     FF     XX
    R4     route4     route4Description4     XX     PP
    R4     route4     route4Description4     PP     OO
    R4     route4     route4Description4     OO     SS
    R5     route5     route5Description5     RR     TT     UU|VV
         The data in the table was imported from a csv file and there is a relationship between the rows. Each combination of col1, col2 and col3 describes a full route of a journey. The row with an entry in col6 describes the full route and the other rows describes each leg in the route.
    For example, for R1, the route is AA to BB via CC.
    Another example for R4 the route is FF to SS via XX, PP, and OO.
    What i would like to do is missing a route. For example the route for R3 is DD to EE via FF. There is an entry for DD to FF but is missing an entry for FF to EE.
    The results should return the following rows which are incomplete
    R3     route3     route1Description3     DD     EE     FF     
    R3     route3     route1Description3     DD     FF     
    R5     route5     route5Description5     RR     TT     UU|VVWhat is the best way to do this?
    Here is what i have come up with but it doesnt quite returned the correct result.
    select * from tableA a
    Where not exists(
         select 1 from tableA b
         where instr(col6,col4,1)>0 and instr(col6,col1,1)>0)
         And a.col1=b.col1
         And a.col2=b.col2
         And a.col3=b.col3
         )Is there an easier way to achieve this?
    Edited by: ziggy on Jul 9, 2010 1:39 PM

    Hi,
    Here is a solution that show the road which are incomplete:
    SELECT col1,road,'Route not completed, expected end point:'||endpoint remark
      FROM (WITH r AS
                 (SELECT col1, col4, col5, NVL2 (col6, NULL, col1 || col4) ca,
                         NVL2 (col6, col1 || col4, col1 || col5) cb, col6
                    FROM routes)
            SELECT     LEVEL, r.*,
                          col1
                       || ':'
                       || SYS_CONNECT_BY_PATH (NVL2 (col6, col4, col5), '/') road,
                       CONNECT_BY_ISLEAF thenend,
                       nvl2(col6,col5,null) endpoint
                  FROM r
            CONNECT BY PRIOR cb = ca
            START WITH col6 IS NOT NULL) p
    WHERE thenend = 1 AND SUBSTR (road, -2) != col5
    COL1,ROAD,REMARK
    R3,R3:/MM,Route not completed, expected end point:NN
    R5,R5:/RR,Route not completed, expected end point:TT
    Routes completed:
    SELECT col1,road,'Route  completed!' remark
      FROM (WITH r AS
                 (SELECT col1, col4, col5, NVL2 (col6, NULL, col1 || col4) ca,
                         NVL2 (col6, col1 || col4, col1 || col5) cb, col6
                    FROM routes)
            SELECT     LEVEL, r.*,
                          col1
                       || ':'
                       || SYS_CONNECT_BY_PATH (NVL2 (col6, col4, col5), '/') road,
                       CONNECT_BY_ISLEAF thenend,
                       nvl2(col6,col5,null) endpoint
                  FROM r
            CONNECT BY PRIOR cb = ca
            START WITH col6 IS NOT NULL) p
    WHERE thenend = 1 AND SUBSTR (road, -2) = col5
    COL1,ROAD,REMARK
    R1,R1:/AA/CC/BB,Route  completed!
    R2,R2:/GG/LL/KK,Route  completed!
    R3,R3:/DD/FF,Route  completed!
    R4,R4:/FF/XX/PP/OO/SS,Route  completed!Edited by: user11268895 on Jul 9, 2010 11:44 PM

  • LOV in a master row based on rows detail values

    Hi all,
    I am using Jdeveloper 11.1.1.2 and ADFBC.
    I have a masterTable and I want to associate a LOV on one of its field. The LOV is based on a field of the detailTable (linked to the masterRow). masterTable and detailTable are linked in this way: idMaster = idDetailToMaster
    I try to explain doing an example:
    I have rowMaster1 that has 3 rowsDetails and rowMaster2 that has 2 rowsDetails. When I select the rowMaster1, I would like to see in the LOV the 3rowsDetails associated to it, while when I select the rowMaster2, I would like to see in the LOV the 2rowsDetails associated to it.
    Now I have tried to do a simple LOV and I see all the 5 rowDetails repeated more times (it seems to me, one time for every row in detailTable).
    I think I have to filter data considering that I want the rows where idMaster = idDetailToMaster, but I don't know how to do.
    If is this the right way, can anyone explain to me how to do?
    Or if there is another solution, how can I do?
    Any help will be appreciated.
    Regards,
    Andrea

    Hi,
    try as follows
    - create a ViewCriteria for the Detail View
    - Have a bind variable that takes the masterId value
    - On the master, create a LOV and choose the detail VO and apply the VC
    - For the bind variable, just reference the name of the master attribute that ha sthe value to filter the detail view
    Frank

  • How to display the last value of a field in a group in the group header

    I need to display the last quiz score from a group of quiz scores as part of the header of a group of units (the quiz score values are in the detail record).  I can not use the group footer, which would be the natural place to find the last value.  It must be in the group header because there will be a subsequent group within the unit group.  In other words, the grouping is as follows:
    Unit Group Header (Display last quiz score in unit)
    SubUnit Group Header (Display other detail summaries)
    Detail Record (including quiz score)
    SubUnit Group Footer
    Unit Group Footer
    While there is a minimum/maximum summary function, there is not a first/last function.
    Fuskie
    Who is constantly amazed at the ability of users to request report features that are not easily implented through Crystal Reports...

    Hi Fuskie,
    One suggestion to display the last quiz score in the Group Header, other than what had already been suggested, will be to use a linked subreport in the Group Header. It is not an efficient way to display the information, but it could do the trick.
    Another suggestion will be to insert a subreport in the report header, then store the last quiz score in an array for each group, then share it with the main report and display the  values in the appropriate group. In this way it will only connect twice to the data source, one for the main report and once for the subreport, instead of multiple connection for each group.
    Finally, the most efficient way will be to have this value calculated on the database side using a command object or a stored procedure.
    Patrick

  • Supress Group Header in Report when Subreport is blank

    well the title says it all.
    I want to supress the main report group header when the subreport (is in details) is blank.
    I'm stuck on this:
    I'v created a shared variable in both report and subreport and it gives me the number I want but not where I wanted to appear. If I put the variable on the group footer it shows me the correct value but if I put it in the group header it shows me the previous group footer result.
    This is what I got:
    Group Header
    Client 1
    Shared Variable=0
    Details
    Contract 01
    Contract 02
    Group Footer
    Shared Variable=2
    Group Header
    Client 2
    Shared Variable=2
    Details
    Group Footer
    Shared Variable=0
    This is what I want:
    Group Header
    Client 1
    Shared Variable=2
    Details
    Contract 01
    Contract 02
    Group Footer
    Shared Variable=2
    Group Header
    Client 2
    Shared Variable=0
    Details
    Group Footer
    Shared Variable=0
    Can I do that?
    Edited by: Pedro Pinto on Jul 29, 2008 2:47 PM

    I'm going to try my best. This is what I get:
    Main Report
    Group Header
    Client 01   --    0->shared variable
    Details
    Subreport 1
    Group Footer
    2->Shared Variable
    In subreport for client 01:
    Detailsa
    Contract 01
    Contract 02
    Detailsb
    Total of contracts = 2->Shared Variable
    Main Report
    Group Header (supress this section)
    Client 02   --    2->shared variable
    Details
    Subreport 1
    Group Footer
    0->Shared Variable
    In subreport for client 02:
    Detailsa
    Detailsb
    Total of contracts = 0->Shared Variable
    For Client 03 it doesn't show anything but if Client 04 if it has contracts it only shows the contracts but not the name of the client.
    I've already did supress when is blank but in the details.

  • How to repeat group head on each page

    I have problem with repeat group heaf on each page, I've ticked the option 'Repeat group head on each page' from the Change Group Option. But the group head didn't appear on each page when I previewed the report. Does anyone have a solution/explaination to this?
    Cheeers

    Sorry Gents, I did't make my porblem clear.
    To James Terry
    Yes, My reports contain one or more sub-groups (only group 1's group header needs to be repeat on each page).
    To Graham Cunningham
    I found pages , containing only group 1's group footer summarized info, don't display group 1's group header. Just like what you said ' It will only repeat on pages that display group information'. Is this a bug or sort of default rule? What else can I do if I want the group header to repeat on each page no matter whether there is group info or not, besides moving the info from group header to pager header?
    Thanks a lot.
    Regards
    Joseph

  • Why does my group header keep repeating?

    Hi,
    I can't figure this out.  My group header appears on the first page as it should.  It doesn't appear on the second page.  Then it appears on the third page and all subsequent pages for that group.
    In my example group #1 is the invoiceID.  For each invoiceID, there would be some header information that should display on the first page of that invoice.  Then come the details. 
    For some reason, the invoice header information keeps reappearing on every page of that invoice as the details continue along the bottom.
    I have no formulas set up for my group header.  The group itself is the same.  There is enough room for the group header on the first page, and it doesn't seem to matter what boxes I check and uncheck; I get the same result.  Any ideas on what might have been done to cause this?
    Thanks
    Edited by: plynch on Feb 21, 2012 5:04 PM

    Hi,
    So, the Group Header (for the same group) appears on every page except for the 2nd page. Which means you've got the 'Repeat Group Header' on each page' option ON under Group Options.
    Why it doesn't come on the 2nd page? Could you check if you've got a conditional suppression formula on the Group Header. Go to Section Expert > Group Header > check if you have formula under 'Suppress'.
    -Abhilash

  • RDLC - Group Header Continued on next page...

    Hi All,
    I have a requirment in RDLC, if the group rows exceeds more than one page, I need to add a content at the bottom of page and next page first row, like below
    Group
                 ------Recrods-----------
                 ------Recrods-----------
    Group  Continued on next page...
    ----------------------------------------------------------------Next Page-------------------------------
    Group Continuing from Previous page...
               ------Recrods-----------
               ------Recrods-----------
    Group 
              ------Recrods-----------
             ------Recrods-----------
    Could you please help me out on this?
    Advance Thanks,
    Nava Deeban S

    Hi Nava,
    In your case, I think that we can try to implement another solution to deal with this issue. For example, we can reset the page number based on group and add some information on the page header.
    Please refer to the image below:
    For more detail information about reset page number on group, please see:
    http://blogs.msdn.com/b/robertbruckner/archive/2010/04/25/report-design-reset-page-number-on-group.aspx
    Regards,
    Bin Long
    Bin Long
    TechNet Community Support

  • First group heading below displays below column headings using Template 23 Classic Report using Repeat Headings on Break

    Hello,
    I am migrating an application from APEX 3 to APEX 4.2 on one thing I notice with the classic reports when I bring them into Template 23 is that the first break section has the break row display below the column headers for that section while the remaining rows correctly have it display above the headers on subsequent group sections.
    When I look a the code in firebug I can seen that the all tables but the first, the break row is being included as the last row of the previous table so I can see how this would not work for the break since.
    I have tow questions.
    1. Is this really intentional because it doesn't seem  terribly elegant and my users zeroed in on it right away as a perceived bug.
    2. Is there a reasonable work around that still uses Repeat Headings on Break? I have multiple reports on the same page in places so changing over to interactive reports is not a silver bullet for me in this case.
    Example of issue can be seen at apex.oracle.com at  Home
    Thanks,
    Brad

    Roadling wrote:
    Hello,
    I am migrating an application from APEX 3 to APEX 4.2 on one thing I notice with the classic reports when I bring them into Template 23 is that the first break section has the break row display below the column headers for that section while the remaining rows correctly have it display above the headers on subsequent group sections.
    1. Is this really intentional because it doesn't seem  terribly elegant and my users zeroed in on it right away as a perceived bug.
    The Standard report template definition in theme 23 contains thead and tbody elements:
    Before Column Heading
    <thead>
    Column Heading Template
    <th #ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#</th>
    After Column Heading
    </thead>
    <tbody>
    After Rows
    </tbody>
    </table>
    </td>
    </tr>
    </tbody>
    <tbody class="uReportPagination">
    #PAGINATION#
    </tbody>
    </table>
    <div class="uReportDownloadLinks">#EXTERNAL_LINK##CSV_LINK#</div>
    This is intentional, following best practice for marking up HTML tables. What is not intended is the problem that arises when this template is used with the Repeat Headings on Break break formatting option. The repeated headings result in the table consisting of tag soup containing multiple incorrectly constructed tbody and thead elements, which is invalid.
    2. Is there a reasonable work around that still uses Repeat Headings on Break? I have multiple reports on the same page in places so changing over to interactive reports is not a silver bullet for me in this case.
    Create a copy of the Standard report template as Standard (break formatting) for use with break reports, remove the thead and tbody tags from the template definitions, and change the break reports to use the new template. (Or, if you primarily have break reports using the Standard template, keep the tags in the copy and remove them from the original to minimize the number of reports you have to edit.)
    Personally I'd create a custom row report template for complex break reports in order to be able to have complete control over the structure and presentation.

  • How can I select and delete rows based on the value in one column?

    I searched through the discussion board, and found a thread on deleting blank rows, but not sure how to modify it to work with my issue.
    I have put together a rather complicated spreadsheet for designing control systems, it calculates parts needed based on check boxes selected in a second spreadsheet.
    Since not all systems require all parts there are many rows that have a 0 quantity value, I would like to select these rows and delete them once I have gone through the design phase (checking off required features on a separate sheet).
    I like the way the other thread I found will gather all the blank rows at the bottom without changing the order of the rows with data in them.
    I don't understand exactly how the formula in the other thread works well enough to modify it to look for a certain column.
    I hope I made myself clear enough here, to recap, I would like to sort the rows based on a zero value in one (quantity) column, move them (the zero quantity rows) to the bottom of the sheet, and then delete the rows with a zero quantity (I can delete them manually, but would like to automate the sorting part).
    Thanks for any help anyone can provide here.
    Danny

    I apologize but, as far as I know, Numbers wasn't designed by Ian Flemming.
    There is no "this column will be auto-destructing after two minutes"
    You will have to use your fingers to delete it.
    I wish to add a last comment :
    if your boss has the bad habit to look over your shoulder, it's time to find an other one.
    As I am really pig headed, it's what I did. I became my own boss so nobody looked over my shoulder.
    Yvan KOENIG (VALLAURIS, France) mercredi 13 juillet 2011 20:30:25
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Group based on row data

    Given the following data:
    id duration start date end date
    1 15 08/01/2008 10:00 08/01/2008 10:15
    2 15 08/01/2008 10:15 08/01/2008 10:30
    3 15 08/01/2008 10:30 08/01/2008 10:45
    4 15 08/01/2008 11:00 08/01/2008 11:15
    5 15 08/01/2008 11:30 08/01/2008 11:45
    6 15 08/01/2008 11:45 08/01/2008 12:00
    7 15 08/01/2008 12:00 08/01/2008 12:15
    Is it possible to group them based on the sum of the duration column? If three rows' duration sum equals 45 and the datetimes are contiguous, then they'll be grouped as 1. So in the example above, [1 2 3] will be grouped as one and [5 6 7] will be grouped as another - row 4 is excluded since row 4 and row 5 aren't contiguous.
    Thanks.

    How about:
    SQL> alter session set nls_date_format = 'mm/dd/yyyy hh24:mi'
      2  /
    Session altered.
    SQL> with t1 as (
      2              select 1 id,15 duration,to_date('08/01/2008 10:00') start_date,to_date('08/01/2008 10:15') end_date from dual union all
      3              select 2, 15, to_date('08/01/2008 10:15'), to_date('08/01/2008 10:30') from dual union all
      4              select 3, 15, to_date('08/01/2008 10:30'), to_date('08/01/2008 10:45') from dual union all
      5              select 4, 15, to_date('08/01/2008 11:00'), to_date('08/01/2008 11:15') from dual union all
      6              select 5, 15, to_date('08/01/2008 11:30'), to_date('08/01/2008 11:45') from dual union all
      7              select 6, 15, to_date('08/01/2008 11:45'), to_date('08/01/2008 12:00') from dual union all
      8              select 7, 15, to_date('08/01/2008 12:00'), to_date('08/01/2008 12:15') from dual union all
      9              select 8, 45, to_date('08/01/2008 13:00'), to_date('08/01/2008 13:45') from dual union all
    10              select 11, 15, to_date('09/02/2008 08:00'), to_date('09/02/2008 08:15') from dual union all
    11              select 12, 15, to_date('09/02/2008 08:15'), to_date('09/02/2008 08:30') from dual union all
    12              select 13, 15, to_date('09/02/2008 08:30'), to_date('09/02/2008 08:45') from dual union all
    13              select 14, 15, to_date('09/02/2008 08:45'), to_date('09/02/2008 09:00') from dual union all
    14              select 15, 15, to_date('09/02/2008 09:00'), to_date('09/02/2008 09:15') from dual union all
    15              select 16, 15, to_date('09/02/2008 09:15'), to_date('09/02/2008 09:30') from dual union all
    16              select 17, 15, to_date('09/02/2008 09:30'), to_date('09/02/2008 09:45') from dual union all
    17              select 18, 15, to_date('09/02/2008 09:45'), to_date('09/02/2008 10:00') from dual union all
    18              select 19, 15, to_date('09/02/2008 10:00'), to_date('09/02/2008 10:15') from dual union all
    19              select 20, 15, to_date('09/02/2008 10:15'), to_date('09/02/2008 10:30') from dual union all
    20              select 21, 30, to_date('09/02/2008 10:30'), to_date('09/02/2008 11:00') from dual union all
    21              select 22, 15, to_date('09/02/2008 11:00'), to_date('09/02/2008 11:15') from dual
    22             ),
    23       t2 as (
    24              select  id,
    25                      duration,
    26                      start_date,
    27                      end_date,
    28                      case
    29                        when lead(start_date,1,end_date - 1) over(order by id) != end_date then 1
    30                        when duration + lead(duration) over(order by id) > 45 then 1
    31                        when lead(start_date,2,end_date - 1) over(order by id) != lead(end_date) over(order by id) then 2
    32                        when duration + lead(duration) over(order by id) + lead(duration,2) over(order by id) > 45 then 2
    33                        else 3
    34                      end grp_size,
    35                      case
    36                        when lead(start_date,1,end_date - 1) over(order by id) != end_date then duration
    37                        when duration + lead(duration) over(order by id) > 45 then duration
    38                        when lead(start_date,2,end_date - 1) over(order by id) != lead(end_date) over(order by id) then duration + lead(duration) over(order by id)
    39                        when duration + lead(duration) over(order by id) + lead(duration,2) over(order by id) > 45 then duration + lead(duration) over(order by id)
    40                        else duration + lead(duration) over(order by id) + lead(duration,2) over(order by id)
    41                      end grp_duration,
    42                      row_number() over(order by id) rn
    43                from  t1
    44             ),
    45       t3 as (
    46              select  id,
    47                      level grp_number,
    48                      grp_duration
    49                from  t2
    50                start with id = 1
    51                connect by rn = prior rn + prior grp_size
    52             )
    53  select     t1.*,
    54          max(t3.grp_number) over(order by t1.id) grp_number,
    55          last_value(t3.grp_duration ignore nulls) over(order by t1.id) grp_duration
    56    from     t1,
    57          t3
    58    where t1.id = t3.id(+)
    59    order by t1.id
    60  /
            ID   DURATION START_DATE       END_DATE         GRP_NUMBER GRP_DURATION
             1         15 08/01/2008 10:00 08/01/2008 10:15          1           45
             2         15 08/01/2008 10:15 08/01/2008 10:30          1           45
             3         15 08/01/2008 10:30 08/01/2008 10:45          1           45
             4         15 08/01/2008 11:00 08/01/2008 11:15          2           15
             5         15 08/01/2008 11:30 08/01/2008 11:45          3           45
             6         15 08/01/2008 11:45 08/01/2008 12:00          3           45
             7         15 08/01/2008 12:00 08/01/2008 12:15          3           45
             8         45 08/01/2008 13:00 08/01/2008 13:45          4           45
            11         15 09/02/2008 08:00 09/02/2008 08:15          5           45
            12         15 09/02/2008 08:15 09/02/2008 08:30          5           45
            13         15 09/02/2008 08:30 09/02/2008 08:45          5           45
            ID   DURATION START_DATE       END_DATE         GRP_NUMBER GRP_DURATION
            14         15 09/02/2008 08:45 09/02/2008 09:00          6           45
            15         15 09/02/2008 09:00 09/02/2008 09:15          6           45
            16         15 09/02/2008 09:15 09/02/2008 09:30          6           45
            17         15 09/02/2008 09:30 09/02/2008 09:45          7           45
            18         15 09/02/2008 09:45 09/02/2008 10:00          7           45
            19         15 09/02/2008 10:00 09/02/2008 10:15          7           45
            20         15 09/02/2008 10:15 09/02/2008 10:30          8           45
            21         30 09/02/2008 10:30 09/02/2008 11:00          8           45
            22         15 09/02/2008 11:00 09/02/2008 11:15          9           15
    20 rows selected.
    SQL> SY.

  • Select row and column from header in jtable

    hello i have a problem to select row and column from header in jtable..
    can somebody give me an idea on how to write the program on it.

    Hi Vicky Liu,
    Thank you for your reply. I'm sorry for not clear question.
    Answer for your question:
    1. First value of Open is item fiels in Dataset2 and this value only for first month (january). But for other month Open value get from Close in previous month.
    * I have 2 Dataset , Dataset1 is all data for show in my report. Dataset2 is only first Open for first month
    2. the picture for detail of my report
    Detail for Red number:
    1. tb_Open -> tb_Close in previous month but first month from item field in Dataset2
    espression =FormatNumber(Code.GetOpening(Fields!month.Value,First(Fields!open.Value, "Dataset2")))
    2. tb_TOTAL1 group on item_part = 1
    expression =FormatNumber(Sum(CDbl(Fields!budget.Value)))
    3. tb_TOTAL2 group on item_part = 3 or item_part = 4
    expression =FormatNumber(Sum(CDbl(Fields!budget.Value)) + ReportItems!tb_TOTAL1.Value )
    4. tb_TOTAL3 group on item_part = 2
    expression =FormatNumber(Sum(CDbl(Fields!budget.Value)) - ReportItems!tb_TOTAL2 .Value)
    5. tb_Close -> calculate from tb_TOTAL3 - tb_Open
    expression =FormatNumber(Code.GetClosing(ReportItems!tb_TOTAL3.Value,ReportItems!tb_Open.Value))
    I want to calculate the value of tb_Open and tb_Close. I try to use custom code for calculate them. tb_close is correct but tb_Open is not correct that show value = 0 .
    My custom code:
    Dim Shared prev_close As Double
    Dim Shared now_close As Double
    Dim Shared now_open As Double
    Public Function GetClosing(TOTAL3 as Double,NowOpening as Double)
        now_close = TOTAL3 + NowOpening
        prev_close = now_close
        Return now_close
    End Function
    Public Function GetOpening(Month as String,NowOpen as Double)
        If Month = "1" Then
            now_open = NowOpen
        Else    
            now_open = prev_close
        End If
        Return now_open
    End Function
    Thanks alot for your help!
    Regards
    Panda A

  • Update columns in Table A based on columns in Table B for more than 500K rows

    Guys,
    I need to update 9 columns in table A based on value from table B for for more than 500K rows.
    So what is best way to achieve this. I am thinking of writing a Procedure with cursor to update the rows of table A.
    When i googled about it, they say cursor will decrease the performance. So i have no clue how to go for this.
    Rough code which i though
    1) Procedure  with no parameter
    2) Will declare 9 variable to store value from cursor
    3) cursor will fetch row by row based on join condition between table a and table b
    4) i will pass column values from table B to variables
    5) will make an update statement for table A
    Please let me know if above method is correct or is there any other way to do this without using cursor.

    Guys,
    Below is the rough code i wrote as per my requirement. Does it look correct? As of now i dont have any platform to test it so any help with the below code is highly appreciated.  As i said i need to update more than 500K rows by matching Table
    A and Table B.  One more thing which i would like to add in below code, is to get log of all the rows that are in table B but not exist in table A.  Table A already has more than million data in it.
    Also not sure how the loop in below code willl run when @rowcount is become to zero?
    Please let me know if i need to consider performance related impact while running the script.
    GO
    SET SERVEROUTPUT ON
    CREATE PROCEDURE ONETIMEUPDATE
     DECLARE @cnt INT;
     SET @cnt = 1;
     DECLARE @MSG varchar(255);
     DECLARE @COUNT_VAR INT;
     SET @COUNT_VAR=0;
     WHILE @cnt > 0
        BEGIN
      Update TOP (50000) A
      Set A.Col1=B.Col1,
          A.COL2=B.COL2,
          A.COL3=B.COL3,
          A.COL4=B.COL4,
          A.COL5=B.COL5,
          A.COL6=B.COL6,
          A.COL7=B.COL7
      From TableA A
             Inner Join TableB B
             on A.ID = B.ID--ID
             WHERE A.Col1 <> B.Col1
                    OR A.Col2 <> B.Col2;
              SET @cnt = @@ROWCOUNT;
             IF @@ROWCOUNT=25000
               @COUNT_VAR=@COUNT_VAR + @@ROWCOUNT
               SELECT @MSG = CONVERT(varchar, @COUNT_VAR) + "Rows Updated" -- I WANT TO DISPLAY UPDATE after EVERY 25000 ROWS
              PRINT @MSG
      IF @@ROWCOUNT=0
         BEGIN    
               COMMIT
                       END
                    WAITFOR DELAY '00:00:01'  --wait for a second before the next update
                END;
     END;

  • Split-column-header

    Dear BIP’ers
    I have a fine working table using for-each-group@column:current-group(); in one .rtf table cell.
    But now I want to change it into splitting one column as I believe it gives better control over layout.
    UserManual suggest using “split-column-header”
    I found a simple but working example here http://blogs.oracle.com/xmlpublisher/2007/05/01/
    Can you please help me with the syntax:
    Putting <?split-column-header: syntaxsyntax DLE_PNO?>
    Into this:
    <?for-each-group@column:current-group();./DLE_PNO?><?sort:current-group()/DLE_PNO;'ascending';data-type='number'?><?if@inlines:DLE_PNO>’0’?>P<?DLE_PNO?><?end if?><?end for-each-group?>
    Regards Thomas

    Hi Tim
    OK. Great here comes the full problem:
    Copy-paste from the current result in my pdf output converted to fit this forum:
    {color:#0000ff}Work package number: WP 1.11 Start date: Month 17
    Work package title: Experimental challenge of Atlantic salmon
    Activity type: TRA WP Leader: P7
    Participant number: P1 P2 P3 Total
    Participant short name: UMA NSV UTR
    Person months per participant: 7 3 134 144
    Person months not funded: (5) (0) (11) (16)
    {color}-----
    The 3 participants showed above is dynamic changing from 1 to 20 in the repeating work packages.
    The partners must always be showed in one line. The participant short name is written vertical to save space. An rtf template table holds the field codes previously posted in this forum.
    It works fine up to approximately 8 partners, but when more partners the table exceeds the right page border.
    So I would like to set one fixed cell space for the partners and then split cell for each partner like this:
    &lt;?for-each-group:DATATEMPLATE_OB_DLE_ROW;./OB_ID?&gt;&lt;?sort:current-group()/OB_NO_S;'ascending';data-type='number'?&gt;
    &lt;?for-each-group:current-group();./WP_ID?&gt;&lt;?sort:current-group()/WP_NO_S;'ascending';data-type='number'?&gt;
    {color:#0000ff}Work package number: WP 1.11 Start date: Month 17
    Work package title: Experimental challenge of Atlantic salmon
    Activity type: TRA WP Leader: P7{color}
    &lt;?for-each-group@column:current-group();./DLE_PNO?&gt;&lt;?sort:current-group()/DLE_PNO;'ascending';data-type='number'?&gt;&lt;?if@inlines:DLE_PNO&gt;&rsquo;0&rsquo; ?&gt;P&lt;?DLE_PNO?&gt;&lt;?end if?&gt;&lt;?end for-each-group?&gt;
    split-column-header ?
    {color:#0000ff}Participant number:..... P1..... P2..... P3 .....Total
    Participant short name: .....UMA .....NSV .....UTR
    Person months per participant: .....7 .....3 .....134..... 144
    Person months not funded:..... (5) .....(0)..... (11)..... (16){color}
    Here are some more details:
    The table contains a number of groupings before the actial partner table
    XML sample:
    &lt;DATATEMPLATE_OB_DLE_ROW&gt;
    &lt;OB_ID&gt;3&lt;/OB_ID&gt;
    &lt;OB_NO_S&gt;1&lt;/OB_NO_S&gt;
    &lt;OB_TITLE&gt;Establish a functional relationship in immune response profiles&lt;/OB_TITLE&gt;
    &lt;WP_ID&gt;15&lt;/WP_ID&gt;
    &lt;WP_OB_NO_S&gt;1&lt;/WP_OB_NO_S&gt;
    &lt;WP_NO_S&gt;14&lt;/WP_NO_S&gt;
    &lt;WP_TI&gt; Experimental challenge of Atlantic salmon&lt;/WP_TI&gt;
    &lt;CALC_WP_PNO&gt;P7&lt;/CALC_WP_PNO&gt;
    &lt;CALC_WP_PDU&gt;17&lt;/CALC_WP_PDU&gt;
    &lt;WP_ACT_TY&gt;TRA&lt;/WP_ACT_TY&gt;
    &lt;DL_ID&gt;39&lt;/DL_ID&gt;
    &lt;DL_WPO_ID&gt;19&lt;/DL_WPO_ID&gt;
    &lt;DLE_PNO&gt;1&lt;/DLE_PNO&gt;
    &lt;DLE_SHORT&gt;UMA&lt;/DLE_SHORT&gt;
    &lt;DLE_EPM&gt;7&lt;/DLE_EPM&gt;
    &lt;DLE_EPMO&gt;5&lt;/DLE_EPMO&gt;
    &lt;/DATATEMPLATE_OB_DLE_ROW&gt;
    Looking forward the see your input ;-)
    Best regards Thomas

Maybe you are looking for

  • EJB and JMS (newbie)

              I'm looking to deploy what is essentially a message-broking service. A bean that           will invoke a helper class which will dequeue messages.           Basically I want to set up our consumer to invoke a handler, which will invoke     

  • Does FileDescriptor.sync() guarantees across different platforms

    Looking at the docs: http://docs.oracle.com/javase/6/docs/api/java/io/FileDescriptor.html#sync%28%29 I would like to learn if, regardless of the platform, once the call returns (successfully), both the data and meta-data for the file have been stored

  • Where are suffix-hints in cs5, as3.0

    Here is the question, when I start with a actionscript 2.0 file, I get hints in the scriptarea both for as 2.0 as 3.0 code. See images above. But when I start with a actionscript 3.0 file, I do not get the hints, nor for as. 2.0 as for as. 3.0. Does

  • I want to remove movies and add music to my 30 GB Classic, this si my first time

    I want to remove movies and add music to my 30GB classic Ipod, this is my first time!

  • Going back to leopard from snow leopard Can I restore from Time machine

    My Imac continues to lock up about three times a day since I went to Snow Leopard. I want to go back to Leopard where I did not have these problems. Can I reformat and do a clean install and then restore everything from time machine even though the b