Possible to Subtotal Rows in Crosstab?

Hi all;
I have created a crosstab query that displays the hours worked per day.  I want to display the hours worked in a month and show a subtotal for each week. I am totally new to Discoverer and was hoping someone could help out.
Thanks!!

Hi Rajan,
The totals behave the same way you configure it in your Bex Query.
if you set in the properties in the bex query that you want to show the totals on top, design studio will show it on top as well
Hope it helps,
Roman

Similar Messages

  • Applying summary on rows in Crosstab

    Hi
    I have a crosstab in which I need to show summary on Rows.
    Here is the example.
    Month1|M2
    Countr|St| Rev|Prdct
    USA|NJ|24|AA----
    2|01
    USA|NJ|25|BB----
    11|11
    USA|NJ|27|CC----
    13|10
    USAtotl76--
    36|22
    AUS|NJ|24|AA----
    2|01
    AUS|NJ|25|BB----
    11|11
    AUS|NJ|27|CC----
    13|10
    AUSTotl76--
    36|22
    Here rev is numeric field and I need show that as row in crosstab. I am unable to apply summary on this. Please suggest is it possible in Crystal Report XI to have such crosstab. if yes how to do this.

    Hi Jehanzeb
    Thanks for your reply. I have tired both Running totals and formula as well.
    But I did not find anyway to include the summary row for Row Colums.
    I hope you did understand that where exactly I am looking in crosstab.
    Crosstab has typically 3 sections, One is Header columns which grows horizontally, 2nd in Crosstab body which is calculation member (summary part) and 3rd is your Row fields the lefthand side columns.
    I am looking for 3rd section which has numeric data and I want to include the totals row for these Column.
    In BO Deski or Webi report you can do it easily but in crystal crosstab you don have much option.
    Please let me know if there is any workaround for this.

  • Conditionally hide subtotal row

    I am creating a new analysis where I want to conditionally hide a subtotal row in a pivot table view. I have two columns - Is Consolidated and Property Name. Properties can be consolidated or not so I have Is Consolidated as an attribute (values True or False) and I add both to an pivot table view of an analysis. I made Is Consolidated so that it has subtotals after and then hide the Is Consolidated column so that the pivot table view looks like so:
    Property A
    Property B
    Property C
    True Total
    Property D
    Property E
    False Total
    Grand Total
    However, I want the report to look like so (don't show the False Total line):
    Property A
    Property B
    Property C
    True Total
    Property D
    Property E
    Grand Total
    I found the following - http://gerardnico.com/wiki/dat/obiee/answer_xml but my situation is a little different and when I pull the equation out it never finds it so it doesn't ever apply the conditional formatting.
    Is this possible?

    950121 wrote:
    I don't understand what you're proposing. With this implementation I get the error "Numbers of columns and their data types must be consistent across all criteria and Result Columns".Most detailed steps I could write :)
    1) Login in OBIEE analytics.
    2) Create a new analysis/answers using the subject area that the report should be built out of.
    3) In the criteria tab for the Report 1, drag the following columns: Property Column, and Fact Metric.
    4) For the fact metric column, click on FX and write the following formulae: FILTER(Metric using Flag = 'TRUE')
    5) Create all the filters as you need for this based on the prompts provided on the dashboard page
    Time to create second report to display the subtotal:
    6) Click on combine with similar request and select the same subject area and this will create second line of reports below the result columns.
    7) The concept here is, you can do an union of reports as long as all the reports have same set of columns and matching datatype's.
    8) Now select any column from subject area that is of type character, and obviously the second column which is the metric.
    9) Click on Fx on the first column and change it to 'Total' to hardcode it. Change the fx of the second column to FILTER(METRIC USING FLAG = 'TRUE')
    Time to create third report:
    10) Click on edit, and click on Add new criteria to add third line of report in the result columns set.
    11) Now repeat the steps in the first report, and change the metric to filter by 'FALSE' instead of true.
    12) Apply the same set of prompts across 2 and 3 reports also.
    Apply the formatting on the result columns per your requirement.
    Thanks.

  • Field should not display in the subtotal row in ALV report after sorting .

    we have a requirement, after sorting and subtotaling, the output in ALV is -
    vbeln        amount1  amount2  amount3
    123           11              12            13
    123           12             13             14
    123           23             25             27 
    133           11              12            13
    133           12             13             14
    133           23             25             27
    Now the customer wants the ALV outpput in this fashion -
    123           11              12            13
    123           12             13             14
                     23             25             27    --->123 (vbeln) should not come in subtotaling row
    133           11              12            13
    133           12             13             14
                      23             25             27--->133(vbeln) should not come in subtotaling row

    Hi,
    if it helps you could create a hierachy. In this way you can define the field catalog for the lines and for the subtotal columns. The only thing is that you would always show the subtotal rows.
    You have references of hierachy alvs in
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c060fcb4-2c62-2b10-d2b2-f32407a5cc6f
    ALV Hierarchy
    alv hierarchy
    In this case it also sorts
    Sorting for ALV hierarchy
    I hope it helps.
    Edited by: Oscar Pecharroman on Aug 2, 2010 1:13 PM

  • Is it possible to sort rows by font color in Numbers ?

    Is it possible to sort rows by font color in Numbers ?

    CC,
    You probably had something in mind when you applied the colors to the text. It's always best to record the conditions directly rather than to indicate them indirectly by by use of color.
    You can use Conditional Formatting to do some color coding based on the condition. You might even find that it's easier to let the conditional format tool than to assign the colors manually.
    Jerry

  • In a hierarchical query, is it possible for a row to have more than one immediate ancestor?

    Hi
    Question:
    In a hierarchical query, is it possible for a row to have more than one immediate ancestor?
    Answer:
    No
    No?  Surely, it's yes?
    Thanks,
    Jason

    As Frank pointed out already hierarhical most often means a tree (data structure) to deal with.
    There must usually be just one boss (the root) in which case the answer is no.
    Something to read: http://en.wikipedia.org/wiki/Tree_(data_structure)
    You can find out Solomon spoke about a generalization therein.
    Related to forum troubles:
    If I login first thing after reaching forum, the behaviour is rather consistent - I'm allowed to post answers, otherwise ...
    Regards
    Etbin

  • Re: Is it possible to change row colors on array fields ors

    HI Martin!
    Yes, it is possible to change row colors on array fields.
    I have attached a PEX (tools.pex) which has an object which changes FillColor
    and PenColor for Arrays. The PEX has it's own test window, so you can try
    various combinations. (There are a few other Objects in the Project which are
    not relevant
    I'm not sure that you can change colors on individual choices in a scroll list.
    I haven't tried playing around with it.
    The test window actually changes the color of scroll lists as well.
    The object keeps track of which rows have changed color, same with pen color, so
    that when you scroll it keeps track of which rows are a different colors.
    The pex is self-contained, just import the file and do a test run.
    Please let me know if you have any problems.
    -later
    -labeaux
    Is it possible to change row colors on array fields or scroll lists?
    I need to create a list field that will allow me to dynamically change the
    fillColor and/or penColor attributes of individual rows. (I just want to
    highlight the rows, and those seem to be the obvious attributes...) It appears
    you can't do that on scroll lists (the elements are list elements, and don't
    have those attributes) and I can't figure out how to do it on an array field
    either. Any ideas for how to accomplish this?
    -Martin ([email protected])

    FreshWebmuse,
    Version 2 of iCal has the "Group Calendar" feature. It was released as part of Mac OS X v10.4, and if you really want/need that feature you will have to upgrade to Tiger.
    ;~)

  • Is it possible to insert row with timestamp field without to TO_TIMESTAMP

    hello
    is it possible to insert row with timestamp column without using to_timestamp unction
    somthing like insert into app.master values (3,333, 'inser tmstmp', 6.7, '2010-11-10 15:14', 'f','9','2010-12-22')

    784633 wrote:
    hello
    is it possible to insert row with timestamp column without using to_timestamp unction
    somthing like insert into app.master values (3,333, 'inser tmstmp', 6.7, '2010-11-10 15:14', 'f','9','2010-12-22')If you don't like the answers in your previous thread (Re: how can i set timestamp format don't expect to get different answers just because you start a new thread.

  • Subtotal Text in Subtotal row  in ALV using LIst dispaly

    Hi pals,
                I am facing problem with subtotal Text in subtotal row in ALV .Please guide me.
    i am sending sample program..
    it is getting terminated.  I am using SAP ECC 6.0  version SAP.
    Thank you.
    Balaji
    REPORT  ztestbdcbk10                            .
    TYPE-POOLS: slis.
    DATA: x_fieldcat TYPE slis_fieldcat_alv,
          it_fieldcat TYPE slis_t_fieldcat_alv,
          l_layout TYPE slis_layout_alv,
          x_events TYPE slis_alv_event,
          it_events TYPE slis_t_event.
    data: lv_string(20) type c.
    DATA: BEGIN OF itab OCCURS 0,
          vbeln LIKE vbak-vbeln,
          posnr LIKE vbap-posnr,
          zmeng LIKE vbap-zmeng,
         END OF itab.
    SELECT
           vbeln
           posnr
           zmeng
           FROM vbap
           UP TO 20 ROWS
           INTO TABLE itab.
    LOOP AT itab.
      itab-zmeng = sy-tabix .
      MODIFY itab INDEX sy-tabix.
    ENDLOOP.
    x_fieldcat-fieldname = 'subtotal'.
    x_fieldcat-outputlen = 10.
    x_fieldcat-col_pos = 0.
    append x_fieldcat to it_fieldcat.
    x_fieldcat-fieldname = 'VBELN'.
    x_fieldcat-seltext_l = 'VBELN'.
    *x_fieldcat-outputlen = 10.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 1.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'POSNR'.
    x_fieldcat-seltext_l = 'POSNR'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 2.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'ZMENG'.
    x_fieldcat-seltext_l = 'ZMENG'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-do_sum = 'X'.
    x_fieldcat-col_pos = 3.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    DATA: sort TYPE slis_sortinfo_alv,
          it_sort TYPE  slis_t_sortinfo_alv.
    sort-fieldname = 'VBELN'.
    sort-spos = 2.
    sort-up = 'X'.
    sort-subtot = 'X'.
    APPEND sort TO it_sort.
    l_layout-totals_text = 'total text'.
    l_layout-subtotals_text = 'Subtotal'.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
       I_CALLBACK_PROGRAM             = sy-repid
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
      I_STRUCTURE_NAME               =
       IS_LAYOUT                      = l_layout
       IT_FIELDCAT                    = it_fieldcat
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
       IT_SORT                        = it_sort
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
       IT_EVENTS                      = it_events
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      IR_SALV_LIST_ADAPTER           =
      IT_EXCEPT_QINFO                =
      I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      TABLES
        t_outtab                       =  itab
    EXCEPTIONS
       PROGRAM_ERROR                  = 1
       OTHERS                         = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    hi,
    chk this...
    TYPE-POOLS: slis.
    DATA: x_fieldcat TYPE slis_fieldcat_alv,
    it_fieldcat TYPE slis_t_fieldcat_alv,
    l_layout TYPE slis_layout_alv,
    x_events TYPE slis_alv_event,
    it_events TYPE slis_t_event.
    data: lv_string(20) type c.
    DATA: BEGIN OF itab OCCURS 0,
    vbeln LIKE vbak-vbeln,
    posnr LIKE vbap-posnr,
    zmeng LIKE vbap-zmeng,
    END OF itab.
    DATA: sort TYPE slis_sortinfo_alv,
    it_sort TYPE slis_t_sortinfo_alv.
    *x_fieldcat-fieldname = 'subtotal'.
    *x_fieldcat-outputlen = 10.
    *x_fieldcat-col_pos = 0.
    *append x_fieldcat to it_fieldcat.
    *CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'VBELN'.
    x_fieldcat-seltext_l = 'VBELN'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 1.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'POSNR'.
    x_fieldcat-seltext_l = 'POSNR'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 2.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'ZMENG'.
    x_fieldcat-seltext_l = 'ZMENG'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-do_sum = 'X'.
    x_fieldcat-col_pos = 3.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    refresh it_sort.  clear it_sort.
    sort-fieldname = 'VBELN'.
    sort-spos = 3.
    sort-up = 'X'.
    sort-subtot = 'X'.
    APPEND sort TO it_sort.
    clear sort.
    l_layout-subtotals_text = 'Subtotal'.
    l_layout-totals_text = 'total text'.
    start-of-selection.
    SELECT
    vbeln
    posnr
    zmeng
    FROM vbap
    UP TO 20 ROWS
    INTO TABLE itab.
    end-of-selection.
    sort itab.
    LOOP AT itab.
    itab-zmeng = sy-tabix .
    MODIFY itab INDEX sy-tabix.
    ENDLOOP.
    *data: v_repid type sy-repid.
    *v_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             = I_BYPASSING_BUFFER
      I_BUFFER_ACTIVE                = ' '
       I_CALLBACK_PROGRAM             = sy-repid
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
      I_STRUCTURE_NAME               = 'ITAB'
       IS_LAYOUT                      = l_layout
       IT_FIELDCAT                    = IT_FIELDCAT[]
      IT_EXCLUDING                   = IT_EXCLUDING
      IT_SPECIAL_GROUPS              = IT_SPECIAL_GROUPS
       IT_SORT                        = IT_SORT
      IT_FILTER                      = IT_FILTER
      IS_SEL_HIDE                    = IS_SEL_HIDE
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     = IS_VARIANT
      IT_EVENTS                      = IT_EVENTS
      IT_EVENT_EXIT                  = IT_EVENT_EXIT
      IS_PRINT                       = IS_PRINT
      IS_REPREP_ID                   = IS_REPREP_ID
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
      IR_SALV_LIST_ADAPTER           = IR_SALV_LIST_ADAPTER
      IT_EXCEPT_QINFO                = IT_EXCEPT_QINFO
      I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        = E_EXIT_CAUSED_BY_CALLER
      ES_EXIT_CAUSED_BY_USER         = ES_EXIT_CAUSED_BY_USER
      TABLES
        t_outtab                       = itab
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    do reward if it helps,
    priya.

  • How to supress a subtotal in a crosstab with one row

    Hi,
    I have a crosstab report with three groupings and subtotals. In one group I only have one row and I want to supress the subtotal for that row. If I try to conditionally supress the subtotal it supresses all of the subtotals for the 3 groupings.  Any ideas?
    Thanks,
    Trish Leppa
    Jonh I. Haas, Inc.

    What I am trying to do is a cash flow report and the first group is 'Starting Cash' it has only one row so I want ot hid the subtotals. This is followed by two other groupings, Cash Receipts and Cash Payments. I'm doing this as a cross tab as the months will vary at runtime.
    I also tried adding the chas group as a calculated item, but I couldn't quite get that to work. I'm open to any other ideas.
    THanks,
    Trish

  • Custom total rows in crosstab

    Hi,
    I would like some feedback as to whether the following is possible (or not) using BI Beans.
    Requirement Summary:
    To insert a number of custom calculation rows in a crosstab that are based on calculations of values in dimension-member rows.
    Requirement Detail:
    I have Income, Direct Expenses and Indirect Expenses as three dimension members on the ROW_EDGE axis of my crosstab. Note that these are not measures - they are categories of transactions appearing as dimension members at a certain level of a dimension hierarchy.
    I wish to insert three custom calculation rows at the bottom of the crosstab:
    (1) Income - Direct Expenses
    (2) Direct Expenses + Indirect Expenses
    (3) Income - Direct Expenses - Indirect Expenses
    I have looked at the TotalStep class, but it looks like this will only perform aggregate functions across all dimension members rather than selected ones. It also looks like only one TotalStep is allowed for each query.
    Any help is very much appreciated.
    Many thanks,
    Peter

    I have similar requirements in my project. I have used models in Analytic Workspace. It will work. However it depends on whether you are using ROLAP or MOLAP. If you have not gone into that area, you have to be prepared to do a bit of reading.
    Wilson

  • Two measures in a same row for crosstab report

    Hi Guru,
    I would like to design a crosstab report with 3 dimensions and 1 key figure like this
    Dimension 1 and 2 should be in the same row.
    Would it be possible? If yes, then how can I do it?
    Thanks,
    Huu Nguyen

    Hi,
    I think for this what you need is to create a new column on right in cross tab and then drag dimension 2 here also you have to put the measure in here too.
    after doing this report will look like:
    Try this i think it will help you out.
    Thanks & regards,
    Shardendu Pandey

  • In V 6.5 SP2 shading ever other row in crosstab report

    Post Author: Theodore Van Patten
    CA Forum: WebIntelligence Reporting
    I am having tremendous difficutly on a seemily simple request, and that is to shade ever other row in a crosstab report.  Anyone have any ideas?
    Thanks

    Another alternative, if  you dont want to use the Shared Content Store, is to have your PackageInstallationRoot pointing to a non-provisioned disk (non-PVS).  In our environment we had the same exact issue.  Each of our Citrix servers have
    a D drive thats non-provisioned that we use for Logs.  Once I pointed the PackageInstallationRoot over to this location everything started working.   The key here is to have a script run at server startup that deletes the PackageInstallationRoot
    since the provisioned non-persistent disk will reboot to a fresh image each time.   This way you wont end up with stale content out there as applications are updated and/or removed. 
    There are other things that also have to happen for this to work in these types of environments (related to roaming profile exclusions) that I can provide to you if you need them.  
    Let me know if you want/need more details.

  • Set select one of the cell in subtotal row in ALV report

    Dear all,
    I have a ALV report that has subtotal amount by Vendor ID.
    I want to set the selection at vendor ID column (same row with subtotal).
    I tried both set_selected_cell() and set_current_cell() methods, the cell selected is incorrect. It doesnt seem to be able to select any cell at the same row of SUBTOTAL.
    lr_selections = ref_table->get_selections( ).
          lt_current_cell = lr_selections->get_current_cell( ).
          lt_current_cell-row = lt_current_cell-row.
          lt_current_cell-columnname = 'LIFNR'.
          lr_selections->set_current_cell( lt_current_cell ).
    Please help. Thanks.

    HP should provide tested recovery DVD every note book user. along with note book.
    That is solution
    fws1 wrote:
    I neglected to add that the system is configured exactly as from the factory, save a few added programs and user files. No hardware changes or OS up or downgrade. The hard drive was corrupted by some type of root virus and had to be fully reformatted. I did the format manually as well as let the HP Recovery disks. Same result either way. The recovery program, after the failure,  prompts user to insert a flash drive and creates some file, but HP has no info on the file creation or what to do with said file!  
    fws1 wrote:
    I neglected to add that the system is configured exactly as from the factory, save a few added programs and user files. No hardware changes or OS up or downgrade. The hard drive was corrupted by some type of root virus and had to be fully reformatted. I did the format manually as well as let the HP Recovery disks. Same result either way. The recovery program, after the failure,  prompts user to insert a flash drive and creates some file, but HP has no info on the file creation or what to do with said file!  

  • Is this type of query possible (select with rows stopping based on match)

    I'm trying to write a SQL query and suspect it can't be done. Or at least, I can't mentally grasp it, despite various stabs with subqueries. I've simplified it by changing the metaphor here a little.
    Let's say I have a truck in some city (say, Chicago). There are various roads leading out of that city, with routes we'll label according to compass points (N, NE, SW, etc.) Each truck can carry only one shipment. It starts going along its road, and as soon as it comes to a city that needs its shipment, it stops.
    Yes, a cooked example, but it's similar to my problem.
    Here is a table:
    TABLE: truck_routes
    scenario (integer - different possible scenarios)
    route (NE, SW, etc. - 8 compass directions)
    destination (cities along that road)
    sequence_number (order in which to go to those cities)
    So if I have a trucks in Chicago, I can say
    SELECT route, sequence_number, destination
    FROM truck_routes
    WHERE scenario = 10 (or whatever)
    ORDER BY road_out, sequence_number;
    And I'd get a report like this:
    SE 1 Gary
    SE 2 Valparaiso
    SE 3 Plymouth
    SE 4 Warsaw
    NE 1 Michigan City
    NE 2 Kalamazoo
    NE 3 Grand Rapids
    NE 4 Cadillac
    NE 5 Traverse City
    So far so good. I have another table with a list of cities that need to receive the shipment:
    TABLE: cities
    scenario (integer - different possible scenarios)
    route (NE, SW, etc. - 8 compass directions)
    destination (same keys as in truck_routes)
    e.g.:
    10 SE Valparaiso
    10 SE Warsaw
    10 NE Cadillac
    10 NE Traverse City
    Now...the tricky part...how do I rewrite the query above so that after a truck hits a city that needs a shipment (in that scenario) it stops? In other words, I want a report (for all routes) of what cities the truck will stop at - and as mentioned, it stops at the first one it makes a delivery. I don't want to see rows beyond that. So the report would look like this:
    SE 1 Gary
    SE 2 Valparaiso
    NE 1 Michigan City
    NE 2 Kalamazoo
    NE 3 Grand Rapids
    NE 4 Cadillac
    Gary shows up because it doesn't require a delivery. Valparaiso (SE route, sequence_number 2) shows up because it takes the delivery. The rest of the Southeast route doesn't show up. Same thing for the NE route.
    There are scenarios where I'd actually want to stop at the city just prior to the delivery destination, etc., and of course in the real world it's more complicated, but I think if I could get this model working I could flesh it out into a real-world query.
    I can certainly code something in PL/SQL to do this, or do it in application logic - but I'm wondering if there is a way to do it in a single SQL statement? I suspect there's something that could be built with subqueries and sorting, but...I can't quite reach it ;-)

    WITH report AS(
        SELECT 'SE' route, '1' seq_num, 'Gary' dest  FROM DUAL UNION ALL
        SELECT 'SE' route, '2' seq_num, 'Valparaiso' dest FROM DUAL UNION ALL
        SELECT 'SE' route, '3' seq_num, 'Plymouth' dest FROM DUAL UNION ALL
        SELECT 'SE' route, '4' seq_num, 'Warsaw' dest FROM DUAL UNION ALL
        SELECT 'NE' route, '1' seq_num, 'Michigan City' dest FROM DUAL UNION ALL
        SELECT 'NE' route, '2' seq_num, 'Kalamazoo' dest FROM DUAL UNION ALL
        SELECT 'NE' route, '3' seq_num, 'Grand Rapids' dest FROM DUAL UNION ALL
        SELECT 'NE' route, '4' seq_num, 'Cadillac' dest FROM DUAL UNION ALL
        SELECT 'NE' route, '5' seq_num, 'Traverse City' dest FROM DUAL 
    cities AS (
        SELECT '10' scenario, 'SE' route, 'Valparaiso' city FROM DUAL UNION ALL
        SELECT '10' scenario, 'SE' route, 'Warsaw' city FROM DUAL UNION ALL
        SELECT '10' scenario, 'NE' route, 'Cadillac' city FROM DUAL UNION ALL
        SELECT '10' scenario, 'NE' route, 'Traverse City' city FROM DUAL
    need_a_shipment AS (
          SELECT r.*
              , CASE WHEN EXISTS( SELECT 'Y' FROM cities c WHERE c.route = r.route AND c.city = r.dest )
                     THEN 'Y'
                     ELSE 'N'
                END need_a_shipment
        FROM report r
    SELECT  route
          , seq_num
          , dest
          , need_a_shipment
    FROM need_a_shipment n
    WHERE seq_num <= (  SELECT MIN(seq_num) FROM need_a_shipment
                        WHERE route = n.route AND need_a_shipment = 'Y' )
    ORDER BY route DESC, seq_num
    ROUTE SEQ_NUM DEST          NEED_A_SHIPMENT
    SE    1       Gary          N              
    SE    2       Valparaiso    Y              
    NE    1       Michigan City N              
    NE    2       Kalamazoo     N              
    NE    3       Grand Rapids  N              
    NE    4       Cadillac      Y

Maybe you are looking for