How to do Grand Total for each subtotal groups

Hi Experts,

Version: Oracle BI Publisher generator of template for Word 10.1.3.4.1

The report must be grouped by organization and by Source within the Organization

For every Source that I have group by subtotal in Template.I want to make in the last part of the report, for example below.

Please help me!


| Organization | Source | Post the amount.
|----------------------------------------------------------------
| Midwest (XX). ABC | 10.50 |
| Midwest (XX). DEF | 10.555 |

| Total general for the report. $21,055 |


Thank you
Sandy

I set the Grand Total by your request. Grouping in your original model code was incorrect. I fixed it and sent it to you. Take a peek inside.

Thank you
Bipuser

Tags: Business Intelligence

Similar Questions

  • How to measure the time for each mapping?

    I use oracle11g with OWB.

    I have several mapping and each dimension tables to update the mapping.

    I want to measure how long it takes to complete each mapping. What is the best way to find the total time for each mapping.

    One way is, we can have POST MAPPING and PROCESS of MAPPING PRE. I can trigger the stored procedure to enter the start time and the end time of each match. On this basis, I can calculate the total time for each mapping. But I have 50 mapping. Now, I need to write 50 different stored procedure and open the POST-PROCESSING of the MAPPING and PROCESS OF MAPPING of the PRE for each mapping. It is complex.

    Is there another way, we enter the total for each mapping of execution? Y at - it that no data in OWF_ MGR dictionary can help on this?

    I would be grateful if someone can help me on this.

    He will remain forever unless you purge it explicitly.

    See you soon
    Katia

  • SQL query to search for the line that contains the identifier for each consecutive group

    Hello

    I'm on 11.2.0.3 Enterprise Edition.

    I have a strange request here - do not know if this is possible without going to procedure...

    Given these data of the sample:

    create table test_status (
      status varchar2(10),
      revision_id number,
      revision_timestamp timestamp);
    
    insert into test_status values ('PROPOSED', 1, systimestamp);
    insert into test_status values ('PROPOSED', 2, systimestamp);
    insert into test_status values ('PROPOSED', 3, systimestamp);
    insert into test_status values ('ACTIVE', 4, systimestamp);
    insert into test_status values ('ACTIVE', 5, systimestamp);
    insert into test_status values ('PROPOSED', 6, systimestamp);
    insert into test_status values ('PROPOSED', 7, systimestamp);
    insert into test_status values ('ACTIVE', 8, systimestamp);
    insert into test_status values ('ACTIVE', 9, systimestamp);
    insert into test_status values ('FINISHED', 10, systimestamp);
    insert into test_status values ('FINISHED', 11, systimestamp);
    insert into test_status values ('FINISHED', 12, systimestamp);
    

    Gives me:

    SQL> select *
      2  from test_status
      3  order by revision_id;
    
    
    STATUS     REVISION_ID REVISION_TIMESTAMP
    ---------- ----------- -----------------------------
    PROPOSED             1 25-SEP-14 04.49.47.954000 PM
    PROPOSED             2 25-SEP-14 04.49.47.962000 PM
    PROPOSED             3 25-SEP-14 04.49.47.966000 PM
    ACTIVE               4 25-SEP-14 04.49.47.969000 PM
    ACTIVE               5 25-SEP-14 04.49.47.972000 PM
    PROPOSED             6 25-SEP-14 04.49.47.976000 PM
    PROPOSED             7 25-SEP-14 04.49.47.979000 PM
    ACTIVE               8 25-SEP-14 04.49.47.982000 PM
    ACTIVE               9 25-SEP-14 04.49.47.987000 PM
    FINISHED            10 25-SEP-14 04.49.47.991000 PM
    FINISHED            11 25-SEP-14 04.49.47.996000 PM
    FINISHED            12 25-SEP-14 04.49.48.000000 PM
    
    
    12 rows selected.
    ws selected.
    

    I want to get this result:

    STATUS     REVISION_ID REVISION_TIMESTAMP
    ---------- ----------- ----------------------------
    PROPOSED             3 25-SEP-14 04.49.47.966000 PM
    ACTIVE               5 25-SEP-14 04.49.47.972000 PM
    PROPOSED             7 25-SEP-14 04.49.47.979000 PM
    ACTIVE               9 25-SEP-14 04.49.47.987000 PM
    FINISHED            12 25-SEP-14 04.49.48.000000 PM
    

    Then query the table ordered by Revision_Id, I would get the line containing the highest revision for each consecutive group of status values.  I am able to get the line containing the highest revision for each separate status, value, but I can't deal with the scenario where a state value reappears later.  In the case of the real world, it is a workflow and I need to take into account the fact that an element through the workflow may be redirected to the back front she proceeds forward again.

    Hope it makes sense.

    Thank you

    John

    Hi, John,.

    John OToole (Dublin) wrote:

    Hello

    I'm on 11.2.0.3 Enterprise Edition.

    I have a strange request here - do not know if this is possible without going to procedure...

    ...

    Do not no stinkin' procedure:

    WITH got_grp_id AS

    (

    SELECT the status, revision_id, revision_timestamp

    ROW_NUMBER () OVER (ORDER BY revision_id)

    -ROW_NUMBER () (PARTITION STATUS

    ORDER BY revision_id

    ) AS grp_id

    OF test_status

    )

    SELECT status

    MAX (revision_id) AS revision_id

    MAX (revision_timestamp) DUNGEON (DENSE_RANK LAST ORDER BY revision_id)

    AS revision_timestamp

    OF got_grp_id

    GROUP BY status, grp_id

    ORDER BY revision_id

    ;

    For an explanation of the technique of Difference sets used here, see

    Analytic Question lag and lead and/or

    Re: Ranking of queries

  • multiple choice with partial credit question, I have 10 responses only 6 are correct.  How to assign 10 points for each of the six correct answers for a total of 60 points setting?

    How can I assign partial credit so that for each possible answer 6 out of 10 each correct answer gets 10 points each, with a possible total score of 60 points quiz?

    To Captivate 7, please go to the Quizzing workspace. You will have the properties and properties Quiz Panel visible. I will now repeat the workflow, I explained briefly for CP7:

    • Check the partial score in the Quiz properties and also multiple responses.
    • Indicate the correct answers on the stage
    • Select the first correct answer on the stage text caption and indicate its score (10pts) in the properties panel, not in the Quiz properties!
    • Repeat the same for each correct answer
    • Check the total score in the properties of the Quiz Panel: should now be 60pts to the full question.

    None of the quiz system variables can be changed, they are read-only. System variables in Captivate 6 - Captivate blog explains the system variables for 6 categories, there are a few changes in 7: new features of Captivate 7.01 - Captivate blog but the Quiz category is always read-only.

  • Cumulative total for each day - how to deal with nulls

    I'm on 11.2.0.3.  I want to write a query to calculate a running total of the incidents a day - this request will be used for an APEX line chart.


    Sample table and data:

    create table sales (
      id number primary key,
      time_of_sale date,
      item varchar2(20));
    
    
    insert into sales values (1, to_date('02-JAN-2013','DD-MON-YYYY'), 'book');
    insert into sales values (2, to_date('03-JAN-2013','DD-MON-YYYY'), 'candle');
    insert into sales values (3, to_date('05-JAN-2013','DD-MON-YYYY'), 'bicycle');
    insert into sales values (4, to_date('05-JAN-2013','DD-MON-YYYY'), 'football');
    insert into sales values (5, to_date('07-JAN-2013','DD-MON-YYYY'), 'football');
    insert into sales values (6, to_date('10-JAN-2013','DD-MON-YYYY'), 'elephant');
    insert into sales values (7, to_date('10-JAN-2013','DD-MON-YYYY'), 'turtle');
    insert into sales values (8, to_date('10-JAN-2013','DD-MON-YYYY'), 'book');
    insert into sales values (9, to_date('10-JAN-2013','DD-MON-YYYY'), 'candle');
    insert into sales values (10, to_date('10-JAN-2013','DD-MON-YYYY'), 'bicycle');
    commit;
    

    For each of the days between 1 January and 10 Jan I want to get the total functioning of the number of sales.

    So the output l would like is:

    DAY ITEMS_PER_DAY

    --------- -------------

    1ST JANUARY 13 0

    JANUARY 2, 13 1

    JANUARY 3, 13 2

    JANUARY 4, 13 2

    5 JANUARY 13 4

    JANUARY 6, 13 4

    JANUARY 7, 13 5

    JANUARY 8, 13 5

    JANUARY 9, 13 5

    10 JANUARY 13 10

    So even if there is no sale on January 4, we show the total of the previous day.

    If I can create a series of dates using the:

    select trunc((to_date('01-JAN-2013','DD-MON-YYYY')-1) + rownum) day 
    from dual 
    connect by rownum <= 10
    

    And I can't the cumulative aid total:

    select trunc(time_of_sale) as day, sum(count(*)) over (order by trunc(time_of_sale)) as items_per_day
    from sales
    group by trunc(time_of_sale)
    

    Overall, it gives me:

    SQL > select

    2 a.day as the day,

    3 b.items_per_day

    4 of

    5 (select trunc((to_date('01-JAN-2013','DD-MON-YYYY')-1) + rownum) as day

    6 double

    7 plug by rownum < = 10).

    8 (select trunc (time_of_sale) day, sum (count (*)) (trunc (time_of_sale) order) as items_per_day

    9 sales

    10 group by trunc (time_of_sale)) b

    11 where a.day = b.day [+] - replace by parentheses to avoid the formatting of the forum

    12 order by a.day

    13.

    DAY ITEMS_PER_DAY

    --------- -------------

    1st January 13 null

    JANUARY 2, 13 1

    JANUARY 3, 13 2

    Value null 4 January 13

    5 JANUARY 13 4

    Value null January 6, 13

    JANUARY 7, 13 5

    Value null January 8, 13

    Value null January 9, 13

    10 JANUARY 13 10

    It's not exactly what I'm looking for.  I played a bit with a lag, but had no success.

    Any ideas?

    Thank you

    John

    Hi, John,.

    You want to do the SUM after the outer join, like this:

    WITH days_wanted AS

    (

    SELECT TO_DATE (January 1, 2013 ', 'DD-MON-YYYY') + ROWNUM - 1 day YOU

    OF the double

    CONNECT BY ROWNUM<=>

    )

    SELECT d.day

    SUM (COUNT (s.id)) OVER (ORDER BY d.day) AS items_to_date

    OF days_wanted d

    S sale LEFT OUTER JOIN ON TRUNC (s.time_of_sale) = d.day

    GROUP BY d.day

    ORDER BY d.day

    ;

    Note that we must use COUNT (s.id) instead of COUNT (*) here, because, given that it is evaluated once the outer join, COUNT (*) would be taken into account less than $ 1 a day, because the outer join ensures there will be at least 1 row in the game for each row in days_wanted, whether or not it matches anything in sales.

    It wouldn't work using the old join syntax, too, but I suggest to use the ANSI syntax, especially for outer joins.  It reduces the amount and the complexity of the coding, and which allows to reduce the number of errors.  (Also, it avoids the problem of the display of this site.)

  • How can I custom ringtone for each SIM card in acer z630s

    How can I custom my ringtone for each sim card?

    I've tried doing as

    Settings - Sound - ringtone - sim1 (set the ringtone of my default system card SD for each sim)

    Although the rings ringtone as the default value.

    Thanks for the suggesion,

    But after the second time of the system update notification, it works automatically, that I put the ringtone for individual sim card.

    problem has been resolved.

  • How to add vertical gripper for each TableRow in a TableView?

    I am looking for a better approach / best practices to accomplish this task. I need to be able to implement, for the less resizable (sliding on a dividing line) TableRow. I understand that this is a little more difficult to maintain the height of each individual TableRow because they are virtual and reused. My first goal is to have all TableRow resized (eliminating the need for individual line sizes).

    I am able to set up my own TableRow expanding TableRow - and I managed to retrieve a reference to the skin of the TableRow and adding a line of separation (Rectangle) and capture mouse events to effectively resize the row height by dragging.

    My Question is this: without implementing a new TableRowSkin - how can I force the line of separation at the bottom of the TableRow? Currently - I just added the node Rectangle (divider) to the list of children of the TableRowSkin - causing the dividing line be positioned on top of TableRow (which gives a vibe when resizing - the line should be on the bottom).

    I feel I'm hacking at the question without being aware of the intention of the JavaFX developers. The intention of the row height resizes to be implemented by providing a new skin? It doesn't seem to be an easy way to accomplish this task using the existing TableRow or TableRowSkin.

    I can post the code if requested example - but I'll need to condense the example of a small enough standalone file.

    If the answer is Yes - "put in place a new skin" that's fine, but this task can be difficult without the source code of advice :) [Tip... Tip..]

    Hi jkaufmann,

    If you want to add the vertical panel resizable on every row then you need to implement the cellFactory() for each cell in columns.

    There are a few steps that makes this possible:

    D ' apply the cellFactory for all columns. You can addListener for the ObservableList of TableView.getColumns ().
    -Add resizable Panel either rectangle or someone you like then check setCursor (Cursor.V_RESIZE) for this Panel. To make the rectangle/node always thoroughly and then use BorderPane layout
    -Now add a few events on Rectangle/node
    -create two variables: start, end
    -setMouseClicked (help to set the starting value: position of y)
    -setMouseDragged (change the cell height according to the change in y ie. end-start.) And also update the end value according to the current position of y)
    -setMouseReleased (Finally, reset to 0 for the start and end value)

    -Now add a few lines and test them. It works smoothly

    Hope this will give you some tips

    Thank you.
    Narayan

  • How many profiles is there for each camera?

    When I develop my Nikon D700 raw files, I have the choice of a number of profiles such as Adobe Standard, camera Vivid, Portrait of camera neutral camera and different modes of DX2.

    However, with the raw files from my Olympus E - P1, I see only one profile; - Adobe Standard.

    None of the E - P1 as Vivid modes, silent, natural or Monotone seem to be emulated by Adobe.

    Is that correct and how do I know which profiles Adobe has actually produced for each camera?

    Ian

    Is that correct and how do I know which profiles Adobe has actually produced for each camera?

    Yes, not all cameras have camera-specific profiles. For the most part it is Canon and Nikon and a few others. Take a look at yto our camera raw profiles directory, you will see all of the profiles here. On Vista, you can find it here C:\ProgramData\Adobe\CameraRaw\CameraProfiles\Camera.

  • How to count the records for each region day and conditional

    Hello

    I need to create a report where I list activities for a month and the number of specific Type for each days activities. something like below

    Number of days in the month where Type = 'A' Count where Type = B
    January 1, 2009 2 3
    January 2, 2009 7 6
    January 3, 2009 8 7
    ----

    -----
    January 31, 2009 4 6

    I tried with the creation of conditional region for each row of table for every day, but it does not work. I use below for conditional region-

    <? xdofx:If substr (to_date ('20': substr (Planned, 9, 2) |)) » -'|| substr (Planned, 1, 2). » -'|| (substr (Planned, 4, 2), 'MM-DD-YYYY'), 4, 2) = 01? > <? Planned? > <? end if? >
    But it is not functional and do not know how to count records in the table for each date as well.

    Can anyone help in it as soon as possible. I'm quite new to BI.

    Thnks

    You can mark it as resolved... :D

    Kind regards
    Colectionaru

  • How to choose different sounds for each contact

    It is possible to select the notification sound for each contact email name?

    You can set different sounds for ringtone and messages for each contact independently of the contacts application change a contact and then set the tone that you want under the header of message or ring.

    For email, you can set a single sound of the sounds settings section. It is not possible to set different sounds for notifications by e-mail.

  • How to print 1 page for each line of the numbers worksheet

    Hello... I am trying to print reports of year-end per person and number.

    Is it possible in number to print 1 page for each row of a spreadsheet of numbers?

    Or suggestions?

    Thank you.

    Hi cm,

    This looks like a work of fusion and mailing.

    The merge document would create in Pages, and the cells of merger on this document référenceriez cells in the table in the document numbers.

    See the documentation Pages (on the Help menu) for instructions on the conduct of merger and mailing.

    To do this in only numbers, you would need to put in place a 'table of declaration' on a separate sheet (in the same document as the table containing information) which would accept a customer number (or other key ID for each individual) then use it to determine the line of the main table to retrieve information about this pattern.

    A more precise answer requires a more specific desription of your table structure and the desired form of the instruction to take.

    Kind regards

    Barry

  • How to set the time for each slide in the slide show?

    Length of blade, pan and zoom, melted chained, etc. is adjustable for each slide or have all the same?

    If they can be individualized, what I don't see.

    Use Lightroom CC 2015.

    Thank you

    Leo Sopicki

    These features are not in the Lightroom Slideshow module. You will need to use another third party software to create these types of slideshows.

  • How to configure applications private for each user?

    I created different users in a single workspace. I want that applications of each user to be private so that user applications should not be regarded by others.
    Can someone suggest me...

    Thus, the term "user" was used in "application developer".

    The idea behind Apex Application Builder is the team and that's why you have offers to work as a team. You want to go in the opposite direction for your reasons.

    The only way I know is to create the workspace separately for each developer. In this way, that each developer sees only its applications in Application Builder. If developers use the same tables/views of db, then you must assign the schema that contains the data for each of these workspaces.

    But if you want to ensure that developers do not yet see each and other data and then they you need to keep the data as separate.

    While it's all just do not forget that some days, that applications must be deployed and end users must Access!

    I'm not aware of any other mechanism to isolate developers.

    Kind regards

  • How to calculate an average for each quarter in a year

    Hello world


    I have a table that stores all the unit tests for the data. I'm figuring avg unit tests that have been recorded by quarter in one year

    I tried with avg and the meter, but I'm sure that the results returned are not perfect

    Help me in this scenario.

    Thank you
    Sriks

    user10699584 wrote:

    so if there are 10 unit tests then the avg is 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10/10

    It is a weird way to definig average. Anyway, why:

    2005-2 Q 5 2.5

    According to your package:

    (1 + 2 + 3 + 4 + 5) / 5 = 3

    not 2.5. I'll assume that it's a typo. Now based on Mathematics:

    1 + 2 + 3 +... + n = (1 + n) * n / 2

    The foregoing your 'average' would be:

    (Count + 1 / 2)

    Also, I suspect tc_vts column data type is DATE, if so:

    select  to_char(tc_vts,'YYYY-Q"Q"') "year-Quarter",
            count(*) "Total cases",
            (1 + count(*)) / 2 "Average of total cases"
      from  Testcycl
      group by to_char(tc_vts,'YYYY-Q"Q"')
      order by "year-Quarter"
    /
    

    SY.

  • How to invoke Web service for each row of a result?

    Hello
    I have an application that has a report on my old system tables. But for every line of this request, I have to go to Oracle EBS and return a value. The simple approach would be to create a link of database between these 2 databases, but for reasons of security in my company, which is not allowed. So, I built a Web service based on a PL/SQL function stored in the database of the EBS. The Web service has been tested and it works very well. This webservice takes 2 parameters, and returns a number. I would like to call it for each line of the report query result, the parameters passing the columns of the query. Is this possible?
    Thanks in advance!

    Published by: Ygorc on December 17, 2009 16:09

    No, I suggested me not to use UTL_DBWS. Flex-ws-api is... Jason Comment should I say... much more flexible, functional and reliable.

    Tyler Muth
    http://tylermuth.WordPress.com
    [Oracle security application: development of secure database and Middleware environments | http://sn.im/aos.book]

Maybe you are looking for