SUMMARY QUERY

I am running the following query to show me all documents tied to a Master Project so that I can see the P&L implications.
SELECT T1.DocNum AS 'Inv #', T1.DocDate, T1.CardCode AS 'Customer #', T1.CardName AS 'Customer', T1.U_ISGI_pono AS 'MP #', T1.U_ISGI_prjd,T1.U_ISGI_type, T0.ItemCode, T0.Quantity, T0.LineTotal, T0.PriceBefDi
FROM DBO.OINV T1
LEFT JOIN DBO.INV1 T0 ON T1.DocEntry = T0.DocEntry and (T0.ItemCode NOT IN ('a9999','c9999','i1026', 'i1027', 'i1028', 'i1029', 'i1032', 'i1122', 'i1143', 'i1501', 'i1620', 'i1900', 'i9997', 'Z_Freight') OR (T0.ItemCode is NULL))
WHERE (T1.U_ISGI_pono Like '%[%2]%') and T1.DocEntry=T0.DocEntry and (T0.LineTotal is Not NULL)
Order By T0.ItemCode
The query works perfectly but want I want to ask is there a way to condense all of the transactional information so that I can prepare a Query to only give me the total information on one line for multiple Master Projects over a set period of time?  If anyone has insight on how to do this I would be appreciative.

Hi Frank,
I think I may know how you can achive what you are after.  The concept behind this code that you create a temp table and insert your query results into it.  that way you only have 1 table to report from and sorting\grouping is much more manageable.  unfortunatly i do not have your UDFs so i can replicate your code.  however, hopefully you will get the idea.  try it anyway and see how you get on.
I have filtered on project code since I do not have your UDFs
I would use the variables as Istvan has suggested for your params.
CREATE TABLE #tbl1 (DocNum int, Doc_Type Char(1), DocDate datetime, DocTotal nvarchar(20), DocStatus Char(1), CardCode nvarchar(15), CardName nvarchar(100), Project nvarchar(8))
INSERT INTO #tbl1 (DocNum, Doc_Type , DocDate, DocTotal, DocStatus, CardCode, CardName , Project)
SELECT DocNum, DocType, DocDate, DocTotal, DocStatus, CardCode, CardName, project FROM OINV WHERE project <> ' '
INSERT INTO #tbl1 (DocNum, Doc_Type , DocDate, DocTotal, DocStatus, CardCode, CardName , Project)
SELECT DocNum, DocType, DocDate, DocTotal, DocStatus, CardCode, CardName, project FROM ORIN WHERE project <> ' '
INSERT INTO #tbl1 (DocNum, Doc_Type , DocDate, DocTotal, DocStatus, CardCode, CardName , Project)
SELECT DocNum, DocType, DocDate, DocTotal, DocStatus, CardCode, CardName, project FROM OPCH WHERE project <> ' '
INSERT INTO #tbl1 (DocNum, Doc_Type , DocDate, DocTotal, DocStatus, CardCode, CardName , Project)
SELECT DocNum, DocType, DocDate, DocTotal, DocStatus, CardCode, CardName, project FROM ORPC WHERE project <> ' '
SELECT * FROM #tbl1
Thanks,
Mike

Similar Messages

  • Daily Invoice Posting Summary Query

    Hello --
    Question about this Query below:
    SELECT T1.RefDate, SUM(T0.Debit - T0.Credit) as 'Net Balance'
    from JDT1 T0
    Inner Join OJDT T1 ON T1.TransId = T0.TransID and
    (T1.TransType = '13' or T1.TransType = '14')
    Inner Join OCRD T2 ON T2.CardCode = T0.ShortName
    Where T1.RefDate Between '[%0]' and '[%1]' and T2.CardType = 'C'
    Group by T1.RefDate
    Order By T1.RefDate
    This Query allows us to view a summary of the invoices and credit memo's posted for a specified time frame.
    I noticed that in the initial pop up window when we select this Query, it allows us to select the date range.  Today the date range ended with 10/1 -- today's date.
    However, after we select this range, the results show only up to 9/30 as the last date. 
    The results page is correct as the Invoices we have processed only apply up to 9/30 -- we have not invoiced for 10/1 yet.  Why does the selection period show up to 10/1 and not 9/30?
    Thanks!!
    Mike

    Mike,
    As I wrote to you in my earlier reply....what you see on the list of dates for selection is what is on the OJDT table.
    9/30 - 569 records for this date
    10/1 - 199 records for this date
    10/2 - 72 records for this date
    It does not mean that the 72 records that are found in OJDT match your criteria on belong to the document you are filtering on.
    OJDT contains journal entries from every possible document in Business One.....
    There are two things that happens when you select the date range 9/30 - 10/2
    In your query the WHERE clause is what does the filtering and qualification of the results...in the below WHERE clause.....
    Where T1.RefDate Between '[%0\]' and '[%1\]' is only one part...if you substitute them with the date...
    Where T1.RefDate Between '09/30/08' and '10/02/08'...the total records returned would be 840 (total of the above date range)...then come the T2.CardType = 'C' filteration...in which no records from 10/02/08 qualify... and only those which qualify show in the result.
    Where T1.RefDate Between '[%0\]' and '[%1\]' and T2.CardType = 'C'
    Group by T1.RefDate
    Order By T1.RefDate
    I think this is the best one can explain.........

  • Regarding summary Query...!

    Hi,
    i need a solution to this query.....
    i have a table which looks like this
    bot_ccy sold_ccy bot_amount sold_amount
    USD AED 120000 150000
    AED INR 5000 6000
    INR GBP 80000 70000
    GBP USD 7000 2000
    USD GBP 220000 2000
    Now i need a summary for each currency like this:
    i need to show bot_ccy and sold_ccy in a single column
    and then sum up all bot_amounts for each currency
    and sum up all sold_amounts for each currency and then net it.
    i am facing problem in writing this query...
    suggestions required.....
    currency bot_amount sold_amount net_amount
    USD 340000 150000 190000

    Hi ravi,
    I may be missing something but how did you manage to produce this result?
    currency bot_amount sold_amount net_amount
    USD 340000 150000 190000
    However, if I understood you right, you need something like this:
    SQL> create table curr
      2   (bot_ccy varchar2(3),
      3    sold_ccy varchar2(3),
      4    bot_amount number,
      5    sold_amount number);
    Table created.
    SQL> begin
      2    insert into curr values('USD', 'AED', 120000, 150000);
      3    insert into curr values('AED', 'INR', 5000, 6000);
      4    insert into curr values('INR', 'GBP', 80000, 70000);
      5    insert into curr values('GBP', 'USD', 7000, 2000);
      6    insert into curr values('USD', 'GBP', 220000, 2000);
      7  end;
      8  /
    PL/SQL procedure successfully completed.
    SQL> select currency,
      2         sum(bot_amount) bot_amount,
      3         sum(sold_amount) sold_amount,
      4         sum(bot_amount) - sum(sold_amount) net_amount
      5    from (select bot_ccy currency, bot_amount, 0 sold_amount
      6            from curr
      7           union all
      8          select sold_ccy, 0, sold_amount
      9            from curr)
    10   group by currency;
    CUR BOT_AMOUNT SOLD_AMOUNT NET_AMOUNT
    AED       5000      150000    -145000
    GBP       7000       72000     -65000
    INR      80000        6000      74000
    USD     340000        2000     338000Does it answer your question?
    Cheers.

  • Need help on a summary query

    Assume I have 10 departments in a company. I need a query that will give me the names of top 3 salaried employees in each department.
    Appreciate any help on a query that will fetch the results to the scenario above.
    Thanks

    Check this
    SELECT *
    FROM
      (SELECT department_id,
         employee_id,
         salary,
         rank() over(PARTITION BY department_id
       ORDER BY salary DESC) rnk
       FROM employees)
    WHERE rnk <= 3
    ORDER BY department_id,
      rnk

  • PO Summary Error

    Hello Everyone,
    I need some desperate help with the below error that I am getting everytime I run a PO Summary Query. If I do run this across query for a date range of maybe even 10 days, I do not get any data unless I repeatedly click the OK button. This happens when I select the "Lines" radio button of "Results" in the Purchase Order Summary Window. We use R12.
    Error:
    QUOTE
    APP-FND-01242: Cannot read value from field PO_HEADERS.SHIP_TO_LOCATION_ID
    Cause: The field PO_HEADERS.SHIP_TO_LOCATION_ID could not be be located or read.
    Action: This error is normally the result of an incorrectly-entered field name string in a trigger, or a field name string that does not uniquely specify a field in your form. Correct your trigger logic to precisely specify a valid field.
    UNQUOTE
    The available buttons are OK & Details.
    Would really apprecaite some help.
    Regards,
    Marc

    Hi Sandeep,
    Thanks for your response. Unfortunately since I do not get involved with the tables I would not know if someone messed around with them but I can check.
    I did receive an offline recommendation which is as below and would like to authenticate if this can be used.
    Thanks.
    QUOTE
    ERROR
    FRM-40105:Unable to resolve reference to Item PO_HEADERS.SHIP_TO_LOCATION_ID
    STEPS
    1. Navigate to Purchasing Responsibility
    2. Purchase Order > Release
    3. Enter release information
    4. Click on save button.
    Changes
    This issue occurs only after applying Patch 5447380
    Cause
    Bug fix for Bug.5404363 references the field 'po_headers.ship_to_location_id'. The library which uses this reference
    is called from both the Purchase Order Form as well as the Release Form. The reference to this field was not required on the Release form and hence displays the error message before saving the form.
    Solution
    Apply Patch 5759435 or later. Update file POXPODIS.pld to version 115.152.11510.20 or higher.
    UNQUOTE

  • Can you drill to an xmlp report from a query or xlmp report?

    Within PeopleSoft Financials 9.1 (people tools 8.51) is it possible to create an expression to drill down to an xmlp report?
    I have two reports, summary and detail. Each report has its own source query. Within the summary query I added a drilling url expression to drill to the detail query and pass values to run the detail query. I would like to add a second url to drill to the xmlp report . I tried doing this by using the “component url”. This only gets me to the “query report viewer” page. I can’t get it to open up the detail report. Is there a way to add the drilling url in my query or directly to the RTF report so that the detail report can be drilled to directly from the summary report? Can it pass parameters from the summary report?
    Thanks,
    Raquel

    Within PeopleSoft Financials 9.1 (people tools 8.51) is it possible to create an expression to drill down to an xmlp report?
    I have two reports, summary and detail. Each report has its own source query. Within the summary query I added a drilling url expression to drill to the detail query and pass values to run the detail query. I would like to add a second url to drill to the xmlp report . I tried doing this by using the “component url”. This only gets me to the “query report viewer” page. I can’t get it to open up the detail report. Is there a way to add the drilling url in my query or directly to the RTF report so that the detail report can be drilled to directly from the summary report? Can it pass parameters from the summary report?
    Thanks,
    Raquel

  • Running a query only once for a report in Reports 6i in a BEFORE REPORT trigger.

    Hello all -
    I am using Oracle Reports 6i on Windows NT 4.0 SP 6.0.
    The report I am converting from Access to Oracle Reports is
    rather complex, and features detail by decile (a rank) within
    territory (geographical sales area). Also it features a summary
    at the bottom of each territory/decile combination which
    summarizes not only the territory information, but goes above
    that to higher levels like district, region, and national.
    With the help of a consultant, we have managed to get the report
    almost finished. However, we are running into a snag with the
    summary. While my two main queries need to run in the data
    model as normal, I would like to run the summary query _only
    once_ during the entire cycle of the report, and have the report
    fields populated once for the entire report. This is possible
    because for a district, the summary numbers are the same on
    every page of the report, only the territory information
    changes. So by only having the query run once and fill the
    report values once, this would save considerably on the report
    runtime.
    However, I have tried a few different methods but cannot get the
    report to recognize the fields in the query, most likely because
    they are out of scope at report creation. Does anyone have any
    ideas on how I can accomplish this in Reports? Any help would
    be appreciated - I hope my question was clear, if not please let
    me know.
    Thanks,
    -Jennifer Prichard

    Hello!
    You can place in the data model editor formula and placeholder
    columns outside of any groups. I think you need for each of your
    summary-attibutes a placeholder column and one formula column.
    Use the formula column to populate the placeholders via PL/SQL.
    Afterwords you can reference the placeholders anywhere you want.
    Regards,
    Hajo Winkler

  • Results from conditions not passed to Jump query

    Dear all,
    I have created a summary query and I have a condition applied on it. The condition is 'KF' < 4. I get the results of the query. I have changed the Calculate Result As to 'Total' to show the total of only the records that are displayed.
    However I have a jump query on it and when I goto the Jump query, it shows all the records though they dont satisfy the conditions. I want the drill down report to show the results of only those values displayed in the Summary report.
    Is there a setting where I can change to get the required result.
    Any helpful reply would be awarded.
    thanks,
    KK

    Hey Roberto,
    Thank you for the reply. Yes I would also need to have the same condition in the reciever query. However, my condition is on result values in the reciever query. To explain u clearly...
    I have the data as below in my cube
    Material   QTY
    123     10
    124     20
    125     30
    126     40
    I have a summary query for which I want a condition where QTY < 40
    When I enter Material 123;124;125;126 I get the result as below
    Material   QTY
    123     10
    124     20
    125     30
    When I drill down I get the below result
    123     1     2
    123     2     4
    123     3     4
    <b>Result          10</b>
    124     1     5
    124     2     10
    124     3     5
    <b>Result          20</b>
    125     1     10
    125     2     10
    125     3     10
    <b>Result          30</b>
    126     1     10
    126     2     20
    126     3     10
    <b>Result          40</b>
    I cannot apply the same condition in the reciever query because I want the condition to be applied on the result rows. I have created one more formula KF with SUMCT(QTY) and applied condition on that but it still doesnt work.
    Any suggestions would be highly appreciated.
    thanks,
    KK

  • Query Jump-To functionality

    Hi experts,
    I created a summary query with 1 mandatory variable and a detailed query with 5 mandatory selection variables. Then I created a sender receiver assignment between the two. When I open my query and jump to the detailed query, it does not show anything and the detailed query does not open. on a normal scenario, the selection screen for the detailed query would pop up for the user to enter the values. Any idea why it would be doing that?
    Thank you
    IA

    hi,
    When ever u gor RRI.....The Variable will be passed from the First Query to the second query....
    Try this .....
    so make sure that the second Query does not have any mandatory variables ........and the variable in first query is in second
    query also but optional or in defalut view..........
    If u want to have default variables in second query then make them in first query also ........
    Rgds
    SVU123

  • One group - Summary Grp - 2nd grp - Detailed grp

    Hi
    My requirement seems to be quite common.
    I need to display summary on one frame and detailed of the summary results in the 2nds frame below. I have 2 queries for the same - (one for summary and second for detailed). My question is that in the 2nd query(For detailed results), how may I mention that the results should belong to only for the columns that are displayed in the summary section?I have joined the 2 queries in reports builder using link.
    Example
    Summary:
    person1
    person2
    Detailed:
    1 person1 abc lane, CA 123-345-5678
    2 person2 def lne, IL 345-678-9012
    However, right now I am repeating query1 in query2.
    How can I specify in the detailed query that the results should be for only the ones belonging to query1. Right now I am querying query1 twice, once in query1 itself and again in query2:
    select name, address, tel from detailedTable where id in (<whole of query 1>)
    Is there a better way to accomplish this?
    Thx!

    Hi
    I combined the queries but now the result is not correct. That is in the summary, there is a column that has to be unique - since I am fetching top 20 records. So all those top 20 are unique. However in the detailed, we may have multiple rows for the same record fetched in the summary. I am not able to accomplish this with just 1 query since the rows in the summary are being repeated.
    Secondly, if I have a link between the first and the second query without repeating the frst query in 2nd query - the 2nd query is not returning rows belonging to a column in 1st (summary query). It returns all that satisfies what is there in 2nd query. Is there a way I can join on a particular column? I am not sure if that is the expected behaivor or not.Because of this, I have to repeat the first query in the second query and this is affecting the performance.
    Was wondering if there is a better way to accomplish the same? Any help greatly appreciated.
    Example ...
    Query1:
    (select ....where rownum<=20)
    Query2:
    Select a,b,c from abc where a in (Query1)
    Thx!
    Message was edited by:
    b~o~s~t~o~n
    Message was edited by:
    b~o~s~t~o~n

  • Context menu of a KF value in query result

    From the table result of a query, is it possible to display all the records that have been used for determining the value of a KF from the context menu of that KF value?
    Sanjeev

    The only way I know to do this is to set-up an RRI jump-through (tcode RSBBS) to a more detailed query.
    Of course, this can take several forms. It can be from a summary query to a more detailed query in the same InfoProvider (e.g., from Sales Order --> Sales Order Line Item), or to another InfoProvider (e.g., from Purchasing cube --> Purchasing ODS/DSO), or even to a different cube/ODS (e.g., from PA --> Billing).
    It all depends on what kind of detail you want to see.
    Hope this helps...
    Bob

  • Disable/Hide  'Cancel Requisition' option in PO Summary

    Hi Experts/Gurus,
    We have Oracle EBS  R12.1.3.
    We want to disable/Hide 'Cancel Requisition' option from PO Summary Form.
    Navigation Path : Purchasing Responsibility > PO Summary > Query with PO > Tools (M) > Control > Cancel Requisition.
    Anyone can help me in this case ?
    Regards & Thanks in advance
    Sanjay

    How To Remove / Disable Cancel Functionality In Enter Purchase Order and Purchase Order Summary Forms (Doc ID 1316584.1)

  • Report to Report Interface Error

    Hello,
    I have a summary query which needs to go to detail query.  I used the RSBBS transaction to designate the sender and receiver query.  I can see the "go to" option in the context box when I try to link from my summary to detail and see the detail query as available.  However, when it tries to transfer, I get the following error.  I know these queries are saved and active.  I can run them each independently but cannot get the Report-to-Report Interface to work.  Any help would be greatly appreciated.
    Thanks,
    Lynda
    error:
    query &v2 on infoprovider &v3 can't be assigned to the dataprovider &v1,
    because it does not exist on the BW Server.

    Hi Chandran,
    Thank you for your reply and the two links.  I am reviewing the assignment details and have a few questions.  I currently only have 2 fields assigned - as variables - material and plant.
    Everything else is set to generic.
    My first query is driven by one date variable which I created which takes a default of January 2008 and pulls Feb - Dec (used offset +1, +2, etc).
    The summary report comes up with correct data.
    Material   Plant UOM Yearly Budgeted Amt  Jan/Yr Feb/Yr March/Yr   etc
    The user then wants to drilldown to detail behind a month.  i.e.  Jan/Yr
    I created the detail query to ask for material and plant which then provides
    Material   Plant   Purchase Order Main Vendor  Freight Vendor UOM Qty Recvd Price and Freight Amoutn
    There will be multiple Purchase Orders.
    One thing I am not sure about transferring fields.  Do I need to designate the month/year as a variable in my detail query along with material and plant?  I am a bit fuzzy as to the whole process.
    Someone I worked with before mentioned that the sending query will pass the fields on the line where you click "go to"????
    Thanks for your patience and help...
    Lynda

  • RRI Issue when jumping to TCode in R/3

    Hi Experts,
    I need to Jump through RRI (RSBBS) from BW summary query to BW detailed query and from BW detailed query to TCode WB23 in our requirement. So i have created two RRI's in BW dev system one from Summary to detailed report and other from Detailed Report to R/3 Tcode . Here in receiver tab i have selected the Source system as R/3 technical system and Info source as 2LIS and ran the report and everything is working fine.
    When i moved the changes iam not able to drill down to WB23 from 2nd RRI and this is the short dump error iam getting in BW Quality system.
    What Happened:
    The function module "RSRR_REPORT_CALL" was called, but cannot be
    found in the Function Library.
    Error in ABAP application program.
    The current ABAP program "SAPMSSY1" had to be terminated because one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    Error Analysis:
    The program "SAPMSSY1" contains a CALL FUNCTION statement. The name
    of the function module to be called is "RSRR_REPORT_CALL".
    No function module exists with the name "RSRR_REPORT_CALL".
    All function modules are stored in the Function Library (SE37).
    Possible reasons:
    a) Wrong name specified. Particular attention should be paid
        to upper/lower case and underscores ("_")
    b) Transport error
    c) If an enqueue/dequeue module has been used, the lock object
        may not have been activated (ABAP Dictionary)
        may not have been activated (ABAP Dictionary).
    Did any one of you faced the same problem. If so can you suggest the solution. Thank in Advance.
    Sudhakar.

    Hi,
    I got the result.
    I shall let you know the steps.
    1. Go to RSSBS
    2. Choose the sender.
    3. Choose the Receiver assignment.
    4. Choose the source system.
    5. Transaction code : WB23.
    6. Save the transaction.
    7. See that you have authorization for WB23 in receiver system.
    8. Execute the query upto the detailed query in BW.
    9. Choose the Receiver T.code in BW.
    10. Maintain the Server ip in the Browser and host file.
    11. Voila !!!  Here is your logion pad and once you log in here is your transaction.
    Regards
    Govind.

  • In OBIEE charts, how do you make drill downs work on custom formulas?

    I posted this over on Linked In and didn't get an anser, so I'm hoping someone here has an answer.
    I'm writing a summary query / chart for a dashboard in OBIEE 10.1 with a drill down (technically it's a "navigation") for more information. This chart breaks down the data by fiscal quarter and by geography (both are columns in the subject area) and I can get this drill down to work just fine. But I also have this chart broken down by some custom calculated fields (CASE WHEN statements) that classify revenue into Forecast / At Risk / Upside etc. (which are not columns or values of columns within the subject area).
    When I add a drill down or navigate function onto those calculated columns, I'm getting a full data set ... not a filtered data set for that particular calculated field. (Yes, I have all of the IS PROMPTED filters set up correctly, and yes the formulas in the source and destination queries are identical).
    Does anyone have any ideas on how to make the drill down or navigation work on custom formulas?
    Thanks
    Ted

    Using the Paint demo
    Report 1 Saved as: */shared/Paint Demo/Sample Analyses/Color Analysis*
    <saw:report xmlns:saw="com.siebel.analytics.web/report/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sawx="com.siebel.analytics.web/expression/v1" xmlVersion="200705140">
    <saw:criteria xsi:type="saw:simple" subjectArea="Paint">
    <saw:columns>
    <saw:column formula="case WHEN Markets.Region IN ('CENTRAL REGION', 'EASTERN REGION') then 'East Central' WHEN Markets.Region IN ('SOUTHERN REGION', 'WESTERN REGION') then 'South West' else Markets.Region end" columnID="c4">
    <saw:tableHeading>
    <saw:caption>
    <saw:text>Markets</saw:text></saw:caption></saw:tableHeading>
    <saw:columnHeading>
    <saw:caption>
    <saw:text>Region</saw:text></saw:caption>
    <saw:displayFormat interaction="default"/></saw:columnHeading>
    <saw:displayFormat suppress="default" interaction="navigate" wrapText="true">
    <saw:navigation xsi:type="saw:sawNavLink">
    <saw:navTargets>
    <saw:navTarget xsi:type="saw:reportLink" path="/shared/Paint Demo/Sample Analyses/Color Analysis Navigate"/></saw:navTargets></saw:navigation></saw:displayFormat></saw:column>
    <saw:column formula="&quot;Sales Measures&quot;.&quot;% Chg Year Ago Dollars&quot;" alias="" columnID="c3"/></saw:columns>
    <saw:columnOrder/>
    <saw:filter subjectArea="Paint">
    <sawx:expr xsi:type="sawx:special" op="prompted">
    <sawx:expr xsi:type="sawx:sqlExpression">case WHEN Markets.Region IN ('CENTRAL REGION', 'EASTERN REGION') then 'East Central' WHEN Markets.Region IN ('SOUTHERN REGION', 'WESTERN REGION') then 'South West' else Markets.Region end</sawx:expr></sawx:expr></saw:filter></saw:criteria>
    <saw:views currentView="0">
    <saw:view xsi:type="saw:compoundView" name="compoundView!1" rptViewVers="200510010">
    <saw:cvTable>
    <saw:cvRow>
    <saw:cvCell viewName="Title"/></saw:cvRow>
    <saw:cvRow>
    <saw:cvCell viewName="Table"/></saw:cvRow></saw:cvTable></saw:view>
    <saw:view xsi:type="saw:tableView" deck="bottom" headingDisplay="table2Rows" visibleFormats="all" name="Table" rptViewVers="200510010"/>
    <saw:view xsi:type="saw:titleView" name="Title" rptViewVers="200510010"/></saw:views>
    <saw:prompts/></saw:report>
    Report 2 Saved as: */shared/Paint Demo/Sample Analyses/Color Analysis Navigate*
    <saw:report xmlns:saw="com.siebel.analytics.web/report/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sawx="com.siebel.analytics.web/expression/v1" xmlVersion="200705140">
    <saw:criteria xsi:type="saw:simple" subjectArea="Paint">
    <saw:columns>
    <saw:column formula="Markets.Region" columnID="c5"/>
    <saw:column formula="&quot;Sales Measures&quot;.&quot;% Chg Year Ago Dollars&quot;" alias="" columnID="c3"/></saw:columns>
    <saw:columnOrder/>
    <saw:filter subjectArea="Paint">
    <sawx:expr xsi:type="sawx:special" op="prompted">
    <sawx:expr xsi:type="sawx:sqlExpression">case WHEN Markets.Region IN ('CENTRAL REGION', 'EASTERN REGION') then 'East Central' WHEN Markets.Region IN ('SOUTHERN REGION', 'WESTERN REGION') then 'South West' else Markets.Region end</sawx:expr></sawx:expr></saw:filter></saw:criteria>
    <saw:views currentView="0">
    <saw:view xsi:type="saw:compoundView" name="compoundView!1" rptViewVers="200510010">
    <saw:cvTable>
    <saw:cvRow>
    <saw:cvCell viewName="Title"/></saw:cvRow>
    <saw:cvRow>
    <saw:cvCell viewName="staticchart!1"/></saw:cvRow>
    <saw:cvRow>
    <saw:cvCell viewName="Table"/></saw:cvRow></saw:cvTable></saw:view>
    <saw:view xsi:type="saw:tableView" deck="bottom" headingDisplay="table2Rows" visibleFormats="all" name="Table" rptViewVers="200510010"/>
    <saw:view xsi:type="saw:titleView" name="Title" rptViewVers="200510010"/>
    <saw:view xsi:type="saw:staticchart" name="staticchart!1" rptViewVers="200510010">
    <saw:template tid="charts/pie.cxml"/>
    <saw:canvasFormat/>
    <saw:selections>
    <saw:categories>
    <saw:category position="0">
    <saw:constant value="1"/></saw:category></saw:categories>
    <saw:measures>
    <saw:column columnID="c3" position="0"/></saw:measures>
    <saw:seriesGenerators>
    <saw:column columnID="c5"/>
    <saw:measureLabels/></saw:seriesGenerators></saw:selections></saw:view></saw:views>
    <saw:prompts/></saw:report>
    The first report navigates and prompts the second report on the calculated field.
    Regards
    Chris

Maybe you are looking for