Group by qtr

i am using the following to create a group by qtr.
if {NYP_pal_care_rpt;1.ADMIT_DATE} in Calendar1stQtr then 'QTR1' else
if {NYP_pal_care_rpt;1.ADMIT_DATE} in Calendar2ndQtr then 'QTR2' else
if {NYP_pal_care_rpt;1.ADMIT_DATE} in Calendar3rdQtr then 'QTR3' else
if {NYP_pal_care_rpt;1.ADMIT_DATE} in Calendar4thQtr then 'QTR4'
if the end user selects the previous year i would still like to create a group by qtr for the previous year.
i dont see anything just for qtr1 etc. anyone know how i can accomplish this?

Sharon,
There are two ways of doing this...
#1) Create a "year" group as group level 1 and make the "quarter" group at the 2nd level. (2 group level design)
#2) Do as Rody suggested and create a formula that concatenates the year with the quarter and group on that (single level design).
HTH,
Jason

Similar Messages

  • Query--please help

    Hello Forum Members,
    Can you please help me out:
    SQL> select * from quarter_test4;
    QUARTER CONFIG REP_DATE
    Q1-2007 10 12-JAN-07
    Q2-2007 10 21-APR-07
    Q3-2007 870 14-AUG-07
    Q4-2007 50 15-NOV-07
    Q1-2008 60 02-JAN-09
    Q4-2006 160 02-DEC-06
    I want the following out put:
    Please note that the future quarters should have current quarter sum(config).Please note that The current table
    does not hold future quarters.I have to genarate query on which a report is based.
    My Query:
    SELECT quarter,
    CASE
    WHEN qtr > TRUNC(SYSDATE, 'q')
    THEN LAST_VALUE(sum_config IGNORE NULLS) OVER(ORDER BY qtr)
    ELSE sum_config
    END sum_config
    FROM (SELECT qtr, q.qtrstr quarter, SUM(qt.config) sum_config
    FROM (SELECT 'Q' || TO_CHAR(qtr, 'q-yyyy') qtrstr, qtr
    FROM (SELECT ADD_MONTHS(ADD_MONTHS(TRUNC(SYSDATE, 'q'), -13), 3 *(LEVEL - 1)) qtr
    FROM DUAL
    CONNECT BY LEVEL <= 9)
    ORDER BY qtr) q,
    quarter_test4 qt
    WHERE qt.quarter(+) = q.qtrstr
    GROUP BY qtr, q.qtrstr)
    ORDER BY qtr;
    Correct Output Generated:
    QUARTER SUM_CONFIG
    Q4-2006 160
    Q1-2007 10
    Q2-2007 10
    Q3-2007 870
    Q4-2007 50
    Q1-2008 60
    Q2-2008 60
    Q3-2008 60
    Q4-2008 60
    ====================================================================================================================================
    New Requirement:Product column has been added.
    SQL> select * from quarter_test3;
    QUARTER CONFIG REP_DATE PRODUCT
    Q1-2007 10 12-JAN-07 P1
    Q2-2007 10 21-APR-07 P1
    Q3-2007 870 14-AUG-07 P1
    Q4-2007 50 15-NOV-07 P1
    Q1-2008 60 02-JAN-09 P1
    Q4-2006 160 02-DEC-06 P1
    Q4-2006 997 02-DEC-06 P2
    Q4-2007 60 14-NOV-07 P2
    Q3-2007 970 14-NOV-07 P2
    Q2-2007 20 21-APR-07 P2
    Q1-2007 20 12-JAN-07 P2
    QUARTER CONFIG REP_DATE PRODUCT
    Q1-2008 70 12-JAN-08 P2
    Expected Output:
    Q4-2006 160 P1
    Q1-2007 10 P1
    Q2-2007 10 P1
    Q3-2007 870 P1
    Q4-2007 50 P1
    Q1-2008 60 P1
    Q2-2008 60 P1
    Q3-2008 60 P1
    Q4-2008 60 P1
    Q4-2006 260 P2
    Q1-2007 20 P2
    Q2-2007 20 P2
    Q3-2007 970 P2
    Q4-2007 60 P2
    Q1-2008 70 P2
    Q2-2008 70 P2
    Q3-2008 70 P2
    Q4-2008 70 P2
    My Query:
    SELECT quarter,product,
    CASE
    WHEN qtr > TRUNC(SYSDATE, 'q')
    THEN LAST_VALUE(sum_config IGNORE NULLS) OVER(ORDER BY qtr)
    ELSE sum_config
    END sum_config
    FROM (SELECT qtr, q.qtrstr quarter,product, SUM(qt.config) sum_config
    FROM (SELECT 'Q' || TO_CHAR(qtr, 'q-yyyy') qtrstr, qtr
    FROM (SELECT ADD_MONTHS(ADD_MONTHS(TRUNC(SYSDATE, 'q'), -13), 3 *(LEVEL - 1)) qtr
    FROM DUAL
    CONNECT BY LEVEL <= 9)
    ORDER BY qtr) q,
    quarter_test3 qt
    WHERE qt.quarter(+) = q.qtrstr
    GROUP BY qtr,product, q.qtrstr)
    ORDER BY substr(qtr,-4),substr(QTR,2,1)
    Output:
    QUARTER PRODUCT SUM_CONFIG
    Q4-2006 P1 160
    Q4-2006 P2 997
    Q4-2007 P1 50
    Q4-2007 P2 60
    Q4-2008 70
    Q2-2007 P1 10
    Q2-2007 P2 20
    Q2-2008 70
    Q3-2007 P1 870
    Q3-2007 P2 970
    Q3-2008 70
    QUARTER PRODUCT SUM_CONFIG
    Q1-2007 P1 10
    Q1-2007 P2 20
    Q1-2008 P1 70
    Q1-2008 P2 70
    The query had not generated q2-2008,q3-2008,q4-2008 values [60]for P1...it had only generated q2-2008,q3-2008,q4-2008 values[70] for product P2.
    Can you please advise me.

    You can make up the data using the model clause:
    SQL> create table quarter_test3 (quarter, config, product)
      2  as
      3  select 'Q1-2007', 10, 'P1' from dual union all
      4  select 'Q2-2007', 10, 'P1' from dual union all
      5  select 'Q3-2007', 870, 'P1' from dual union all
      6  select 'Q4-2007', 50, 'P1' from dual union all
      7  select 'Q1-2008', 60, 'P1' from dual union all
      8  select 'Q4-2006', 160, 'P1' from dual union all
      9  select 'Q4-2006', 997, 'P2' from dual union all
    10  select 'Q1-2007', 60, 'P2' from dual union all
    11  select 'Q2-2007', 970, 'P2' from dual union all
    12  select 'Q3-2007', 20, 'P2' from dual union all
    13  select 'Q4-2007', 20, 'P2' from dual union all
    14  select 'Q1-2008', 70, 'P2' from dual
    15  /
    Tabel is aangemaakt.
    SQL> select 'Q' || to_char(mod(q,4) + 1) || '-' || to_char(trunc(q/4)) quarter
      2       , config
      3       , product
      4    from quarter_test3
      5   model
      6         partition by (product)
      7         dimension by (to_number(substr(quarter,4))*4 + to_number(substr(quarter,2,1)) - 1 q)
      8         measures (config)
      9         rules
    10         ( config[for q from 2006*4 + 3 to 2008*4 + 3 increment 1]
    11           = nvl(config[cv()],config[cv()-1])
    12         )
    13   order by product
    14       , q
    15  /
    QUARTER                                                                                CONFIG PR
    Q4-2006                                                                                   160 P1
    Q1-2007                                                                                    10 P1
    Q2-2007                                                                                    10 P1
    Q3-2007                                                                                   870 P1
    Q4-2007                                                                                    50 P1
    Q1-2008                                                                                    60 P1
    Q2-2008                                                                                    60 P1
    Q3-2008                                                                                    60 P1
    Q4-2008                                                                                    60 P1
    Q4-2006                                                                                   997 P2
    Q1-2007                                                                                    60 P2
    Q2-2007                                                                                   970 P2
    Q3-2007                                                                                    20 P2
    Q4-2007                                                                                    20 P2
    Q1-2008                                                                                    70 P2
    Q2-2008                                                                                    70 P2
    Q3-2008                                                                                    70 P2
    Q4-2008                                                                                    70 P2
    18 rijen zijn geselecteerd.Regards,
    Rob.

  • Year Ago Measure group by problem.

    Hi,
    In my report I have two measures Revenue and Revenue Year Ago.
    Revenue Year ago is calculated based on the Ago functionalty and the time dimension level is "Year"
    AGO(Fact.Revenue, TimeDimnesion."Year", 1).
    The problem is that the column measure Revenue Year Ago is not getting added up to display data when we select based on the time dimension.
    e.g.
    Dimnesion Month-Code Revenue Revenue Year Ago
    A Jan-10 100 90
    A Feb-10 200 160
    B Feb-10 250 200
    In my report I want to display the Dimension, Revenue and Revenue Year Ago for the month of 'Jan-10' and 'Feb-10'
    so that automatic group by happens for the measures like this.
    Dimnesion Revenue Revenue Year Ago
    A 300 250
    B 250 200
    But this is not happening when I apply the filter for Month-Code in ('Jan-10' and 'Feb-10') and the result what OBIEE gives is null value for Revenue Year Ago.
    Dimnesion Revenue Revenue Year Ago
    A 300 NULL
    B 250 200
    But when I remove the Month-Code filter it gives the correct result.
    So is there something that I am missing out. Please advice.
    TimeDimnesion Hierarchy is Total(Grand Total) -> Year (Year Id, Year Code) -> Qtr (Qtr Id, Qtr code) -> Month
    (Month-Id,Month-Code) -> Detail (Day-Id, Day-Code)
    Regards,
    Bhavik

    if you can give a small test case to play around, it
    might be helpfule.
    put the data in the table and show the output you
    desire.An example-
    STORE
    StoreID StoreName Location
    s1 ABC NY
    s2 XYZ LA
    PRODUCT
    ProdID ProdName
    p1 foo
    p2 moo
    TRANSACTION
    TransID Fiscal_Yr StoreID ProdID Rating Price
    t1 2002 s1 p1 A 10
    t2 2002 s1 p1 A 80
    t3 2002 s1 p2 A 15
    t4 2002 s1 p1 B 20
    t5 2003 s2 p1 B 50
    If the query below is executed-
    SELECT t.Fiscal_Yr, s.StoreName, p.ProdName, t.Rating, SUM(t.Price) Revenue
    FROM STORE s, PRODUCT p, TRANSACTION t
    WHERE s.StoreID = t.StoreID
    AND p.ProdID = t.ProdID
    GROUP BY t.Fiscal_Yr, s.StoreName, p.ProdName, t.Rating
    ORDER BY t.Fiscal_Yr, Revenue DESC
    then, we get
    Fiscal_Yr StoreName ProdName Rating Revenue
    2002 s1 foo A 90
    2002 s1 foo B 20
    2002 s1 moo A 15
    2003 s2 foo B 50
    But, irrespective of different ratings for the same product, the revenue should be added and I should get rating as listed in the first transaction for that product for a particular store and Fiscal_Yr. So, my desired result should be-
    Fiscal_Yr StoreName ProdName Rating Revenue
    2002 s1 foo A 110
    2002 s1 moo A 15
    2003 s2 foo B 50

  • Heading Titles Groups in BW Report

    Hello:
    I have this BW Report which has YTD, Previous Year, and Current Year information.  For each category there are at least 3/4 columns related to each category.  The user would like to have a heading right above each group. This would make the report more readable.  I know that I can accomplish one group by doing a structure and bellow it have the 4 columns for let's say the YTD columns.  But we cannot have more than one structure and I need to have 3 in total.
    Example would be:
    Cummulative YTD     Previously Billed    Current Qtr Bill
    YTD1  YTD2 YTD3     Prev1  Prev2  Prev3   Curr1  Curr2
    XXX   XXXX  XX      XXXXX   XXX   XXXX      XX    XXX
    Does anybody know how to get this extra heading above each grouping area in a report?
    (Cummulative YTD   Previously Billed    Current Qtr Bill)
    Please let me know.
    Thanks,
    Helena

    Hello Sudh:
    Thanks for your reply....But I have one more question:
    1.  How do I wide the query headings
    2.  Let's say I have 3 columns:  Column H is Amount; Column I is Price and Column J is Quantity.  Now above these 3 columns I want a row with a heading that says "------Current  Data -
    ".  This heading would start in Column H and finish in Column I.  How do I do that?
    Thanks again for your help!
    Regards,
    Helena

  • Crosstab - Quarterly Date Range Column - Need to Print 1st Qtr, 2nd Qtr,etc

    I am using Crystal 2008.
    I have a column in a cross tab that pulls from a date field.  In the crosstab expert, in the group options for the column, I have indicated to sort in a specific order, by quarter.  In the specified order tab, I have created the orders for 1st Qtr, 2nd Qtr, 3rd Qtr, and 4th Qtr.
    However, the colum heatding prints with the the dates of 01/2010, 04/2010, 07/2010, and 10/2010 instead of 1st Qtr, 2nd Qtr, 3rd Qtr and 4th Qtr.
    Any suggestions would be appreciated.

    The date in the column (which is the only column) is a date field MM/DD/YYYY.  The column name use to print correctly (1st Qtr, 2nd Qtr, 3rd Qtr, 4th Qtr) and now it suddenly started printing 01/2010, 04/2010, 07/2010, 10/2010.  In the crosstab expert, I have the date field in the column section and under group options, I have set it to print in a specified order.  In the specified order tab, I added named groups for each quarter.  When defining the named groups, each group was set to look at the date field for the correct quarter.  For example, the name group "Qtr 1" is defined as "in the period " "Calender1stQtr".  That is what is in the drop-down boxes for me to choose when defining the named groups.
    This data is correct.  It is pulling data and putting the information in the correct columns.  It is just the heading that will no longer print in the format I want.  This report has been available for some time and it has always worked correctly.  We have not modified or upgraded the Crystal product, so I'm not understanding why it won't still work the same way without having to try to create other formulas.  The named group section has the criteria I need in the drop down boxes.

  • Grouping of selections into one heading in BEX

    Dear all,
    I have a scenario
    wherein
    KF1,KF2 - Monthly
    KF3,KF4- Quarterly
    KF5,KF6 - Yearly
    The titles shoulld appear in  the columns for the key figures as the Curr month, Curr Qtr and Current year.
    I can do Key figure selections ;But to group the set of keyfigures in one heading.. How is possible?
    Please help
    Regards,
    Rajarathnam.S

    Hi Parth,
    Thanks for the reply. The key figures in each group are different. So there cant be a common structure above them
    As for ur first approach Itried that but a selection in the structure with KF demands for a KF to be aded in all the selections (This means in all the Heading selections too I need to put some Keyfigures else it is throwing up an error)
    And as u said, there are no business Logics ,these are simple headings for each group.
    Can you help more on this.
    Regards,
    Rajarathnam.S

  • Group by rollup

    I have below data:
    create table t_book_sales ( f_book_name VARCHAR2(200), f_sale_date DATE );
    INSERT INTO t_book_sales VALUES ( 'A', '05-JAN-11');
    INSERT INTO t_book_sales VALUES ( 'B', '06-JAN-11');
    INSERT INTO t_book_sales VALUES ( 'C', '07-JAN-11');
    INSERT INTO t_book_sales VALUES ( 'A', '01-APR-11');
    INSERT INTO t_book_sales VALUES ( 'A', '05-APR-11');
    INSERT INTO t_book_sales VALUES ( 'B', '06-APR-11');
    INSERT INTO t_book_sales VALUES ( 'A', '01-JUL-11');
    INSERT INTO t_book_sales VALUES ( 'A', '05-JUL-11');
    INSERT INTO t_book_sales VALUES ( 'A', '08-JUL-11');
    INSERT INTO t_book_sales VALUES ( 'A', '10-JUL-11');
    INSERT INTO t_book_sales VALUES ( 'B', '15-JUL-11');
    INSERT INTO t_book_sales VALUES ( 'B', '20-JUL-11');
    INSERT INTO t_book_sales VALUES ( 'C', '07-SEP-11');
    INSERT INTO t_book_sales VALUES ( 'C', '07-SEP-11');
    INSERT INTO t_book_sales VALUES ( 'C', '07-SEP-11');
    INSERT INTO t_book_sales VALUES ( 'C', '07-OCT-11');
    INSERT INTO t_book_sales VALUES ( 'C', '07-OCT-11');
    INSERT INTO t_book_sales VALUES ( 'C', '07-OCT-11');
    commit;
    I am using following query :
       SELECT   'Q' || to_char(trunc(f_sale_date, 'Q'), 'Q') QTR, f_book_name, count(1)
          FROM   t_book_sales
    --  group by  f_sale_date, f_book_name
        GROUP BY ROLLUP  ( trunc(f_sale_date, 'Q'), f_book_name); But here, I need to display counts as
    Q1 = Q1, Q2 = Q1+ Q2 , Q3 = Q1+ Q2+ Q3, Q4 = Q1+ Q2 + Q3 + Q4
    Any ideas appreciated.

    Hi,
    Variation on Frank's answer just for the fun learning :
    +[edit]+
    Well, I just realized it's no variation at all actually. It's just the default windowing clause of analytics.
    If you're looking for me I'll be at the coffee machine...
    +[edit]+
    Scott@my11g SQL>!cat afiedt.buf
    with t_book_sales(f_book_name, f_sale_date) as (
    select 'A', to_date('05-JAN-11','dd-MON-YY') from dual
    union select 'B', to_date('06-JAN-11','dd-MON-YY') from dual
    union select 'C', to_date('07-JAN-11','dd-MON-YY') from dual
    union select 'A', to_date('01-APR-11','dd-MON-YY') from dual
    union select 'A', to_date('05-APR-11','dd-MON-YY') from dual
    union select 'B', to_date('06-APR-11','dd-MON-YY') from dual
    union select 'A', to_date('01-JUL-11','dd-MON-YY') from dual
    union select 'A', to_date('05-JUL-11','dd-MON-YY') from dual
    union select 'A', to_date('08-JUL-11','dd-MON-YY') from dual
    union select 'A', to_date('10-JUL-11','dd-MON-YY') from dual
    union select 'B', to_date('15-JUL-11','dd-MON-YY') from dual
    union select 'B', to_date('20-JUL-11','dd-MON-YY') from dual
    union select 'C', to_date('07-SEP-11','dd-MON-YY') from dual
    union select 'C', to_date('07-SEP-11','dd-MON-YY') from dual
    union select 'C', to_date('07-SEP-11','dd-MON-YY') from dual
    union select 'C', to_date('07-OCT-11','dd-MON-YY') from dual
    union select 'C', to_date('07-OCT-11','dd-MON-YY') from dual
    union select 'C', to_date('07-OCT-11','dd-MON-YY') from dual
    ------ end of sample data ------
    SELECT
         qtr
         ,this_qtr
         ,SUM(this_qtr) OVER (PARTITION BY f_book_name ORDER BY qtr ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) so_far
    from (
         SELECT    TO_CHAR ( TRUNC (f_sale_date, 'Q')
                     , 'YYYY "Q"Q'
                     )               AS qtr
         ,       f_book_name
         ,       COUNT (*)               AS this_qtr
         FROM      t_book_sales
         GROUP BY  TRUNC (f_sale_date, 'Q')
         ,       f_book_name
    order by f_book_name, qtr
    Scott@my11g SQL>/
    QTR       THIS_QTR     SO_FAR
    2011 Q1          1          1
    2011 Q2          2          3
    2011 Q3          4          7
    2011 Q1          1          1
    2011 Q2          1          2
    2011 Q3          2          4
    2011 Q1          1          1
    2011 Q3          1          2
    2011 Q4          1          3
    9 rows selected.:-)
    Edited by: Nicosa on Jul 19, 2012 3:13 PM

  • Crystal Report Nested Grouping Problem, Duplicate record

    Post Author: paltapas4
    CA Forum: General
    Hi,
    I am facing problem while creating 2 individual groups in Crystal report 10.0 .
    My first group is Quarter & 2nd one is Department. When I created  2nd group it comes automatically under 1st group i.e Quarter, that why departments are duplicating under  quarter. But I want to create 2 individual group.
    Present Report output 
    1st Group u2013 2008 Quarter1
      2nd Group u2013 Test1 department
      2nd Group u2013 Test2 department
      2nd Group u2013 Test3 department
      2nd Group u2013 Test4 department
    1st Group u2013 2008 Quarter2
      2nd Group u2013 Test1 department
      2nd Group u2013 Test2 department
      2nd Group u2013 Test3 department
      2nd Group u2013 Test4 department
    1st Group u2013 2008 Quarter3
      2nd Group u2013   Test1 department
      2nd Group u2013 Test2 department
      2nd Group u2013 Test3 department
      2nd Group u2013 Test4 department
    1st Group u2013 2008 Quarter4
      2nd Group u2013   Test1 department
      2nd Group u2013 Test2 department
      2nd Group u2013 Test3 department
      2nd Group u2013 Test4 department
    Report output  expected
    1st Group u2013 2008 Quarter1
    1st Group u2013 2008 Quarter2
    1st Group u2013 2008 Quarter3
    1st Group u2013 2008 Quarter4
    2nd Group u2013   Test1 department
    2nd Group u2013 Test2 department
    2nd Group u2013 Test3 department
    2nd Group u2013 Test4 department
    Please help me out. Thanks in advance.
    Regards,
    Tapas

    Post Author: sharonmtowler
    CA Forum: General
    you created 1 group for the qtr, and then you created a group for department. if you place the department in the group header it should only return the 1st value it hits, and supress the duplication. is that what you did?

  • Cannot send email from an iPhone to a Outlook group.

    Hi,
    My question is simple and I'd like an exactly same answer : Can iPhone users send emails from their iPhone's to one or more groups created in Outlook?
    This is my situation: our organization is using iPhone to provide email, calendar, contact, task etc. to some of their employees. We are using Airwatch MDM Agent on user's iPhone because we have an Airwatch server in place. I have an user and she has an iPhone 5 and she has created some groups in Outlook but these groups are not reflected in her Contacts in the iPhone. I have update her phone with the latest update, although I was almost sure that this was not the issue, then I've found some interesting posts on internet saying that this was a known problem for the users with the previous iOS but I thought this might has been corrected with the iOS, apparently not.
    Also I've tried ''the trick'' that is posted on several forums with the iCloud but neither so it's working. I am looking for a straight answer, if this works or not on iPhone's?
    Thanks,
    Sebastian.

    There indeed ARE apps in the app store that will do what you want.  Just search and find the one that best fits your needs.

  • Grouping and Decimal characters in rtf templates.

    Hi guys and girls,
    I’m really struggling with a problem here regarding the decimal characters for the prices in my output.
    I'm using XML Publisher 5.6.3.
    My goal is to control the grouping and decimal character from my template.
    The numbers in the XML data file can either be 10.000,00 or 10,000.00. The format is handled by the users nls_numeric_characters profile option.
    The output of the template shall be based on the locale and not the data generated by Oracle Reports. For example: Reports to US customers shall show the numbers in the following format 10,000.00. Reports to our European customers shall show the numbers in this format 10.000,00.
    How can I achieve this in my templates? Can it be achieved at all?
    Thank you in advance.
    Kenneth Kristoffersen
    Edited by: Kenneth_ on May 19, 2009 1:30 AM

    Hi,
    Thank you for your reply.
    The problem is that the report is generating the output based on the users profile option nls_numeric_characters.
    I have tried to override the users profile option in the before report trigger without any luck. I can alter selects so the query gets the numbers in the right format but then I would have to go through all queryes and reports which seem a bit wrong? Especially for the standard Oracle reports.
    BR Kenneth

  • How do I use Panorama / Tab Groups with the keyboard?

    Yes I know that CTRL-SHIFT-E opens the panorama window, and then I can use the mouse to organize my tabs into groups.
    But how do I do this with the keyboard?
    I've [http://lifehacker.com/#!5719596/switch-between-tab-groups-in-firefox-with-a-keyboard-shortcut read] [http://ubuntuforums.org/showthread.php?t=1705714 that] Ctrl-`should move me through tab groups. That doesn't work for me on my Danish keyboard. (Where the ' and ` chars are weird. But is how they are on a valid standard Danish keyboard) I've tried changing the keyboard to USA and then moving through tab groups works fine.
    In short: Pretend I don't have a mouse. How do I use Panorama / Tab Groups?

    Sorry. These are both known bugs:
    [https://bugzilla.mozilla.org/show_bug.cgi?id=587010 Bug 587010] - Add keyboard UI for manipulated groups and tabs in Tab Candy
    and
    [https://bugzilla.mozilla.org/show_bug.cgi?id=626594 Bug 626594] - shortcut for switching tab groups is badly accessible on many non-US keyboard layouts

  • Issue With Page Break When Sorting is also applied on group

    Hi
    I am facing an issue with Page break only when I have sorting applied on the grouping that I have in the template.
    The following is the sample XML
    <ROWSET>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Accounts</ORGANIZATION>
    <FULL_NAME>test1,</FULL_NAME>
    <ELEMENT_NAME>TEST BONUS</ELEMENT_NAME>
    <CLASSIFICATION>Supplemental Earnings</CLASSIFICATION>
    <RUN_VALUE>250</RUN_VALUE>
    <MONTH_VALUE>500</MONTH_VALUE>
    <QUARTER_VALUE>500</QUARTER_VALUE>
    <YEAR_VALUE>500</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test2</FULL_NAME>
    <ELEMENT_NAME>VOLUNTARY AD AND D</ELEMENT_NAME>
    <CLASSIFICATION>Voluntary Deductions</CLASSIFICATION>
    <RUN_VALUE>5.19</RUN_VALUE>
    <MONTH_VALUE>10.38</MONTH_VALUE>
    <QUARTER_VALUE>10.38</QUARTER_VALUE>
    <YEAR_VALUE>10.38</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test3</FULL_NAME>
    <ELEMENT_NAME>HMO MEDICAL</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>19.67</RUN_VALUE>
    <MONTH_VALUE>39.34</MONTH_VALUE>
    <QUARTER_VALUE>39.34</QUARTER_VALUE>
    <YEAR_VALUE>39.34</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test4</FULL_NAME>
    <ELEMENT_NAME>PENSION NR DC</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>0</RUN_VALUE>
    <MONTH_VALUE>360</MONTH_VALUE>
    <QUARTER_VALUE>360</QUARTER_VALUE>
    <YEAR_VALUE>360</YEAR_VALUE>
    </ROW>
    </ROWSET>
    In the template I group the data based on CLASSIFICATION and then sort on the same column CLASSIFICATION. I have a page-break applied for every group.
    When I generate the PDF, I am not getting the page-breaks for every group. Instead some of them are displayed in the same page.
    But when I remove the sorting that I had in the template on the column CLASSIFICATION, I am getting the output in the desired way but not in a sorted order.
    kumar

    Hi All,
    I am using MS-WORD 2007 and BI Publisher desktop 10.1.3.3.3.
    When I use split-by-page-break, splitting is performed for every line .. but not for group of lines.
    Can anybody throw some light on this?
    FYI...
    I am using this code:
    ?if: position() mod 6= 0?
    ?split-by-page-break:?
    ?end if?
    (Of course with in tags)
    in G_LINES loop.
    Can anybody help me out :-(
    --Saritha                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Repeating a group element on each page of a report.

    I have a report where I need to repeat a group element on each page. The element is from the first group in the data. It is in the center group. Currently, the values from this group only print when the group changes. Everything I try does not work. Does anyone have any ideas. I am attaching a sample of the data. Along with the rtf document. I am using the BI Publisher plug in in Word to create the template.
    Data
    <?xml version="1.0" encoding="UTF-8"?>
    <POLLEDTICKETRPT>
    <USERCD>klockhar</USERCD><POLLDATE>03/24/2009</POLLDATE>
    <LIST_CENTER>
    <CENTER>
    <CENTER_CD>0039</CENTER_CD>
    <CENTER_NAME>CROSS PLAINS QUARRY</CENTER_NAME>
    <LIST_TRANSDATE>
    <TRANSDATE>
    <TRANS_DATE>03/11/2009</TRANS_DATE>
    <LIST_CUSTOMER>
    <CUSTOMER>
    <CUSTOMER_NBR>33221477</CUSTOMER_NBR>
    <CUST_NAME>TDOT DISTRICT 32-GALLATIN</CUST_NAME>
    <LIST_JOB>
    <JOB>
    <JOB_CUST>33221477</JOB_CUST>
    <JOB_CUST_NAME>TDOT DISTRICT 32-GALLATIN</JOB_CUST_NAME>
    <RGI_JOB_NBR>2008</RGI_JOB_NBR>
    <QUOTE_ID>0</QUOTE_ID>
    <LIST_COSTCODE>
    <COSTCODE>
    <COSTCODING/>
    <COST_CNTR/>
    <COST_ACCT/>
    <PROJECT_NBR/>
    <PROJECT_TASK/>
    <LIST_TICKET>
    <TICKET>
    <TICKET_NBR>5000021</TICKET_NBR>
    <ORIGIN_CD>TSCC</ORIGIN_CD>
    <REFERENCE_NBR>254510</REFERENCE_NBR>
    <VOID_IND>N</VOID_IND>
    <STATE_CD>TN</STATE_CD>
    <MEASURE_SYSTEM>S</MEASURE_SYSTEM>
    <LOCATION>THANK YOU</LOCATION>
    <PO_NBR>POS-254510-C</PO_NBR>
    <TAX_CODE>4</TAX_CODE>
    <PRODUCT_CD>000003</PRODUCT_CD>
    <HAUL_ZONE_CD/>
    <INVENTORY_STATUS>PR</INVENTORY_STATUS>
    <HAULER_NBR/>
    <RGI_TRANSPORT_CD>FU96</RGI_TRANSPORT_CD>
    <HAUL_RATE> .00</HAUL_RATE>
    <MAT_RATE> 8.50</MAT_RATE>
    <NET_TONS> -7.96</NET_TONS>
    <MAT_SALES_AMT> -67.66</MAT_SALES_AMT>
    <HAUL_AMT>0</HAUL_AMT>
    <TAX_AMT>0</TAX_AMT>
    <SEV_TAX_AMT>0</SEV_TAX_AMT>
    <SEV_TAX_IND>N</SEV_TAX_IND>
    <VALID_NET_TONS> -7.96</VALID_NET_TONS>
    <VALID_SALES_AMT> -67.66</VALID_SALES_AMT>
    <VALID_HAUL_AMT> .00</VALID_HAUL_AMT>
    <VALID_TAX_AMT> .00</VALID_TAX_AMT>
    <VALID_SEV_TAX_AMT> .00</VALID_SEV_TAX_AMT>
    <CASH_TONS> .00</CASH_TONS>
    <CASH_SALES_AMT> .00</CASH_SALES_AMT>
    <CASH_TAX_AMT> .00</CASH_TAX_AMT>
    <CASH_SEVTAX_AMT> .00</CASH_SEVTAX_AMT>
    <CASH_HAUL_AMT> .00</CASH_HAUL_AMT>
    <TRADE_TONS> -7.96</TRADE_TONS>
    <TRADE_SALES_AMT> -67.66</TRADE_SALES_AMT>
    <TRADE_TAX_AMT> .00</TRADE_TAX_AMT>
    <TRADE_SEVTAX_AMT> .00</TRADE_SEVTAX_AMT>
    <TRADE_HAUL_AMT> .00</TRADE_HAUL_AMT>
    <INTRA_TONS> .00</INTRA_TONS>
    <INTRA_SALES_AMT> .00</INTRA_SALES_AMT>
    <INTRA_TAX_AMT> .00</INTRA_TAX_AMT>
    <INTRA_SEVTAX_AMT> .00</INTRA_SEVTAX_AMT>
    <INTRA_HAUL_AMT> .00</INTRA_HAUL_AMT>
    <INTER_TONS> .00</INTER_TONS>
    <INTER_SALES_AMT> .00</INTER_SALES_AMT>
    <INTER_TAX_AMT> .00</INTER_TAX_AMT>
    <INTER_SEVTAX_AMT> .00</INTER_SEVTAX_AMT>
    <INTER_HAUL_AMT> .00</INTER_HAUL_AMT>
    <CASH_PR_TONS> .00</CASH_PR_TONS>
    <CASH_NP_TONS> .00</CASH_NP_TONS>
    <CASH_MI_TONS> .00</CASH_MI_TONS>
    <TRADE_PR_TONS> -7.96</TRADE_PR_TONS>
    <TRADE_NP_TONS> .00</TRADE_NP_TONS>
    <TRADE_MI_TONS> .00</TRADE_MI_TONS>
    <INTER_PR_TONS> .00</INTER_PR_TONS>
    <INTER_NP_TONS> .00</INTER_NP_TONS>
    <INTER_MI_TONS> .00</INTER_MI_TONS>
    <INTRA_PR_TONS> .00</INTRA_PR_TONS>
    <INTRA_NP_TONS> .00</INTRA_NP_TONS>
    <INTRA_MI_TONS> .00</INTRA_MI_TONS>
    </TICKET>
    </LIST_TICKET>
    </COSTCODE>
    </LIST_COSTCODE>
    </JOB>
    </LIST_JOB>
    </CUSTOMER>
    </LIST_CUSTOMER>
    </TRANSDATE>
    RTF Template
    DISPLAY CENTER
    S M
    FOR EACH CENTER
    SET CENTER
    CENTER: CENTER_CD CENTER_NAME
    FOR EACH TRANSDATE
    TRANSACTION DATE: TRANS_DATE
    FOR EACH CUSTOMER
    FOR EACH JOB
    Customer: JOB_CUST JOB_CUST_NAME
    Job: RGI_JOB_NBR Quote Id: QUOTE_ID
    FCC
    group COSTCODE by COSTCODING
    Cost Center: COST_CNTR Cost Acct: COST_ACCT Project: PROJECT_NBR Task: PROJECT_TASK
    Ticket Nbr     ORGCD     OrigTck     V     ST     Location     Po Nbr     Tax Cd     Prod Code     ZN     Hauler      Truck     Haul Rate     UnitPrice     Tons     SalesAmount
    F TCK#M     CODE     OTCK#     V     ST     LOCATION     PO_NBR      TC     PROD     HZ     HAULER     TRUCK     0.00     0.00     0.00 *      0.00 E

    Post Author: Guy
    CA Forum: General
    Hi,
    You should add a first level of grouping in your subreport on a fake formula field with a constant value.  Put your header and footer information in this group header and footer.  In the group option make sure to check the "repeat group header on each page option".
    This group will act as a page header + footer within your subreport.
    good luck!
    Guy

  • Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount 28

    Post Author: tadj188#
    CA Forum: Formula
    Needed: Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount > 28
    Background:
    1) Report SQL is created with unions to have detail lines continue on a page, until it reaches page footer or report footer, rather than using  subreports.    A subreport report is now essentially a group1a, group1b, etc. (containing column headers and other data within the the report    with their respective detail lines).  I had multiple subreports and each subreport became one union.
    Created and tested, already:
    1) I have calculated @TotalLineForEachOfTheSameGroup, now I need to sum of the individual same group totals to get the total line count on a page.
    Issue:
    1) I need this to create break on a certain line before, it dribbles in to a pre-printed area.
    Other Ideas Appreciated:
    1) Groups/detail lines break inconveniently(dribble) into the pre-printed area, looking for alternatives for above situation.
    Thank you.
    Tadj

    export all image of each page try like this
    var myDoc = app.activeDocument;
    var myFolder = myDoc.filePath;
    var myImage = myDoc.allGraphics;
    for (var i=0; myImage.length>i; i++){
        app.select(myImage[i]);
        var MyImageNmae  = myImage[i].itemLink.name;
        app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
        app.jpegExportPreferences.exportResolution = 300;
           app.selection[0].exportFile(ExportFormat.JPG, File(myFolder+"/"+MyImageNmae+".JPEG"), false);
        alert(myImage[i].itemLink.name)

  • How do you add an iTunes Gift Card so that all purchases of any members of a Family Sharing Group can use the credit?

    How can all family members of a Family Sharing Group use a gift card that has been been applied to the iTunes master account? I added a gift card to our master iTunes account for my grandson, and even though he's a family sharing group member, none of the purchases I have approved from his requests have used the gift card credit. A search of the iTunes support site failed to turn up anything that even remotely addresses this topic. It would seem reasonable to assume that any purchase made by any family member should be able to use the gift card credit since all purchases go through the master account, but this does not appear to be the case.

    Regarding your statement about the gift card balance being used if redeemed to the organizers account - http://www.apple.com/feedback.
    Regarding redeeming the gift card to the child's account, it is the same as redeeming to yours.  You have to be signed in to the iTunes store using the child's apple ID, then redeem the gift card there.  If you already redeemed the card on your ID, you won't be able to redeem it again.
    Redeem and use iTunes Gift Cards and content codes - Apple Support

Maybe you are looking for

  • Problem with opening Transformers.dcf in my N96

    My phone have transformers movie and a i play it and didn't have any problem but yesterday i resotore all setting to original factory setting with this code "*#7370# after restoring finished transformers movie didn't play and said "file is locked" i

  • Invoice correction

    Hi Experts, Iam not very sure of thisd process but I have one question, Invoice correction was made for the price by correcting.25 Cents , Correction request was created woth Debit abd credit items and again I see that one meore request was cretaed s

  • Problem in background session processing

    Hi Experts, I am performing BDC by batch input session method. I acheved BDC by traditional recording method and able to create batch input session in SM35. Whenever I process batch input session in FOREGROUND it processes successfully.But whenever I

  • How can i learn something in DReamweaver??

    I have various versions of Dreamweaver can adobe help me to update or upgrade to something that works??

  • What is the best way to upload icons I created on illustrator, onto a photoshop file of a website design?

    I currently in the process of designing a website on Photoshop. I have designed some icons for the website using Illustrator. What is the best way to upload these icons onto the photoshop file and keep them looking crisp and high quality? I have trie