Combining 2 requests

I have query A, which pulls customers with a certain condition (let's say customers with Blue eyes). Thus I pull the mode of transport, I hardcode the 2nd column as 'Blue', 3rd column is a count of customers who took that mode of transport with Blue eyse, last column is hardcoded as zero.
Query B pulls total customers. Again, I pull mode of transport, hardcode 2nd column as 'All', hardocode col 3 as zero, and last column is total customers.
Queries A and B are from 2 different underlying subject areas.
So the final tabular report looks like:
Car Blue 100 0
Car All 0 1000
Bus Blue 50 0
Bus All 0 500
etc.
The end result I want is to present a table with both columns and the computed ratio:
Car 100 1000 10%
Bus 50 500 10%
etc.
Since the result set is really 2 separate queries, I get 2 records for each mode of transportation. Thus I have no means of dividing the 2 numbers into each other to get the desired ratio. Even if I present results in a pivot table, I cannot divide the resutls together...What can I do to divide the results into each other?

As i have read at your other question, you have to find a solution at your star schema.
It can be a possibility to find an answer in both your answers..but there are complicated..and i beleive not worth the work.
hi,
I beleive that you have to consider rebuilng your star schema...in order to manipulate 2 areas you must have at least one join between them ...
Otherwise you have workarounds...which are only thoughts and i do not know if they are working.
You must manage to get the results....you can have a hidden column
i hope i helped....
http://greekoraclebi.blogspot.com/
///////////////////////////////////////

Similar Messages

  • Reg Filter View in Combined Request OBIEE11g

    Hi,
         We have a requirement where we need to show the filter view in a combined request. Currently we have achieved the same but putting another request but the issue when the download of the request happens the filter view is not downloaded and it has to be downloaded separately. We are using OBIEE11g(11.1.1.6.9).
         Please advise if there is any workaround to achieve this functionality so that download of results and filter view can be achieved in one shot. Thanks.

    Dev,
    Not possible to use the filter view in union request.Try creating the filters with filter view as a separate request and add them to the dashboard.
    Rgds,
    Dpka

  • Outer Join or Combine Requests

    I have tables A (Account), B (Measures), and C (Time). I want all values from table A to appear in queries regardless of data or lack of in the other tables. I have created a left out join from A to B and this works fine...until I need to query on year from table C. (B and C have an inner join.) Querying on year form table C is mandatory, but when I do so I don't get any Account data. I can get this to work in SQL if I nest a select statement joining B and C (and then A left outer joined to nested B/C select statement)...but i can't find a way to do this in Answers. The SQL on the advanced tab is not at this level. Any suggestions? Is there a way to do this in Answers at the report level—maybe by combining requests?
    Thanks in advance for any suggestions!!

    Are you looking for a continues time line?
    http://obiee101.blogspot.com/2008/03/obiee-continues-time-line.html
    HTH
    John
    http://obiee101.blogspot.com/

  • Filer view for combine request

    Hi ,
    can any one help me to get filter views for combined request reports. As normal, when we use filter view with combine request then , it doesn't show us what value we have selected in dashboard prompt. so i need alternate approach, for showing dashboard selection with combined request reports..
    Thanks
    Deepika

    i think creating prompt in sql would not help as i m using exixsting prompt and creting all prompt is not good.. tat too would not help for shwoing like filter view in combined request..
    Edited by: Deepika Sinha on Jul 17, 2012 11:12 PM

  • Reg Sorting in Combined Request in OBIEE11g

    Currently we are facing a problem in OBIEEE11g Combined Request where sorting is not happening on any column at all. Please note that sorting should be dynamic on which column the user selects based on the column property available. Sorting works for normal request but not for combined request.
    Please advise if there is any way or workaround to resolve this issue. Thanks.
    Edited by: user11008583 on Mar 25, 2013 12:46 AM

    Thanks for your response. We have a requirement where the Column Sorting should happen on any column based on what user selects from UI. This is working for a normal request but not for Combined Request in 11g. Please provide your valuable inputs to resolve this issue.

  • Filter view for combined request

    Hello!
    We have 12 requests combined to the single Answer's request using UNION. Each of these 12 requests has a filter. But when we try to display the filter view for the combined request, it says "Request contains no filters". Any ideas how to display the big "combined" filter?
    Thank you!

    I am assuming that the columns in each of your 12 individual queries are the same and you just have different combinations of filters to produce your final query. If so, try building this using one query and using the OR operand for each set of criteria that corresponds to the 12 different sets of filters. This way the filters will show up in Filter View.
    If the columns in the 12 queries are simply the same datatype (minimum requirement), but different, then how would the user know which filter set corresponds to which set of columns since the "final" query will have one name for each column? It would be confusing at best. The only thing I can think of is having 13 queries, 12 individual ones and the one "combined query."
    In your dashboard, display the "combined query" in the Compound Layout view in the usual manner. Underneath that query in the design mode of your dashboard. Add the 12 individual queries but only display the "Filter View" of each query.
    With just the combined query, nothing will display in Filter View as you surmised.

  • Using filter view in combined request.

    Hi,
    I want to see the filters used in a combined request in a filter view which I am unable to. Can anyone help me with this?
    Regards,
    Dev.

    Dev,
    Not possible to use the filter view in union request.Try creating the filters with filter view as a separate request and add them to the dashboard.
    Rgds,
    Dpka

  • Prompt for a combine request

    Hello experts,
    I want to know that is there possible to create a prompt for a column in a combine request which associated the different attributes in each request?
    For example:
    Request 1 has column: Installed date
    Request 2 has column: Unstalled date
    In combine request, this two columns associated the column Date
    and in the combine request, i want to create a prompt for the column Date, is that possible?
    Thanks

    Hi,
    create a prompt for date column from your time dimension and set a presentation variable v_date...
    on reports don't use is prompted for what date coumn you need, just say 'is equal or is in' add presentation variable and set to v_date..
    if you find this post usefull please be free to award points
    Regards
    Nicolae
    Sorry Kart... you were faster.. (didn't sow your post)
    Edited by: Nicolae Ancuta on 02.06.2010 16:07

  • Applying filter in combined requests

    Hi all,
    In obiee 11g how can i apply filter when combining similar requests. I need to filter data from both the requests.
    Thanks in advance

    Use presentation variable while creating page/dashboard prompt and filter both the requests based on it.

  • Combine Similar Request navigate report Issue

    Hi,
    I have created 2 combine requests, one is for summary level report and another one is for detail level report. i pointed navigate from summary level to detail level report.
    My summary level report is a Graph, when i click on Region in the graph it should display country results for that region. But in my report displaying all the countries. My detailed level report also a combine report, i set the is prompted also but not filtering the values.
    Can any one please let me know whether combine request can filter the values or not, if yes, please let me know where i missed.
    Thanks
    Sant

    Have a read of document 1070761.1 from support.Oracle.com. There is a clumsy workaround to achieve what you are asking.

  • Use of Filter in Direct Database Request for Custom Navigation

    Because of union and other complex sql code I am using Direct Database Request. (DDR) In 1st request based on DDR containing column Region, I need to do Region column value navigation to the Target report. The Target report is also based on DDR and has column Region.
    For 1st Report Region Column Value Navigation to work
    1. I did activate value interaction in 1st Report for Region column and set Target to Report 2.
    2. In 2nd Report, I have to use Filter and make region column "Is Prompted". But in DDR the filter is not available. How do I solve this problem?

    by using Direct database request your bypassing all the wanderful metadata you built in the BMM layer, as such much functionality is not available.
    If you really need to use such complex SQL, I would suggest creating an inline view in the phyiscal layer and at least model this through your BMM either as a flat data source (ie include the dimension columns and model the same inline view into your BMM star)
    If you do that, the BI Server will know what other logical columns this data source can relate you and you should find the navigation works as expected.
    If you dont fancy that good practice, have a look at creating GOURL formulas as the column fx's, format as HTML to present the data as a hyperlink and manually pass all the parameters to the 2nd report.
    I'd do the first option, its more inline with intended use.
    What cant you do using the 'normal modelling / answers techniqes with union (see combined request in answers) and complex sql (evaluate function in RPD)??

  • Combining output of 2 spools into one

    Hi guys,
    I have 2 program which are called by main program both are generating spools.
    I want to combine the outputs of both the spools into one file(eg pdf).
    Can anyone suggest how to do this if possible.
    Regards,
    Guru

    hi
    good
    If you create repeated spool requests in the same transaction, you can combine them into one spool request. For you to be able to do this, this option must be deactivated for the spool request to which you want to add the others.
    If you do not select this field, the spool system automatically adds additional spool requests that have the same attributes (user, title, output device, client from which the request was issued, number of copies, priority, cover sheet setting, archiving mode, and ABAP session number).
    For a spool request to be added to another, you must deactivate the New Spool Request option when creating the spool request.
    If you are combining requests, note the following rules:
    -         If the expiration dates of combined spool requests are not the same, the spool system uses the latest date for the entire spool request.
    -         To print out a "combined" spool request, set the Print immediately option on the last of the spool requests that is to be added. The spool system adds the last spool request and then sends the entire "combined" spool request to the output device.
    If the following situations exist, you cannot add any additional requests:
    -         A request is "completed" and cannot have additional jobs added to it when it has been sent to the host spooler for printing.
    -         No other spool requests can be added to a spool request you generated with the Print immediately option set or that you sent to the printer from the output controller.
    For more information, see Adding Spool Requests to Another Spool Request.
    ·        Delete After Printing if No Errors: If this field is selected, the spool request, output request, and output data are deleted automatically after the request has been successfully printed.
    The spool system retains spool requests that contain errors. You need to delete requests of this type manually. Otherwise, they are automatically deleted during a reorganization of the spool database after the expiration date.
    The delete option is set in a user's master record and can be changed:
    -       When a spool request is created
    -       In the request attributes () for the spool request
    thanks
    mrutyun^

  • OBIEE-UNION Request navigate is not working (Parameter value is not passed)

    Hi Experts,
    Currently i am using the two combine request to show the report data in OBIEE. In the report i have the navigate to move to another request. Unfortunately the selected row data is not passed as prompt to the calling request if the source request is a combine (UNION) request. Please let me know if any of you guys found the same issue before and the resolution to resolve this.
    OBIEE version is 10g.
    Thank You

    Hi
    if you are having a Union report as your source , then you cannot navigate for a particular selection in 10g with the navigate option available.
    we can achieve this functionality with java script using PortalPageNav Function.
    Please check this url
    [http://gerardnico.com/wiki/dat/obiee/dashboard_url#portalpagenav_function]
    Thanks
    Anuj
    Edited by: Anuj on Jul 21, 2011 2:49 AM

  • Complex navigation & use of intermediate reports,NOT for the feint-hearted!

    Hi all,
    I'm trying to setup qutie complex navigation...
    I have a report that provides metrics based on the organizational structure, which in the dashboard is presented to the penultimate level, and permits a drill down to the lowest level (centre). At the rpd level, the metrics (sales metrics) are defined at the centre level to which the organization structure dimension is linked. We have a metric defined which flags whether the centre at which the sale is made is the same as the centre to which the employee is assigned/usually works at (this has all been loaded by the ETL). We then have a count distinct metric (Num of Employees) on the sales reps ids for those records in the fact table that have this previous flag marked. All of this works as expected.
    The dashboard displays this last metric described (Num of Employees) against the organizational structure. Again, OK. But we need to navigate after clicking on this metric, to another report, which displays all sales assigned to those employees (regardless of centre at which they were made), i.e. if the metric shows "6", then after clicking on this value, the "final" report to which we navigate must show all sales for those 6 employees. Naturally the table in the dashboard where the user clicks does not display the employee data, as it displays results at the centre level, so some kind of "intermediate" report which obtains those 6 employee IDs is necessary (this is how it would be done fore example in SQL). We have done this creating a report with employee IDs, a calculated field which compares the two centre values (as in the flag defined in the RPD), and finally contains the 4 organizational structure fields which need to obtain the values from the first report on the dashboard (ive assigned filters to these, which point to the correponding columns in the dashboard report). So, in theory this report would list the employee IDs we are counting in the "Num of Employee" metric. The "final" report then only needs to filter the values in the Employee Id column based on the employee IDs listed in the "intermediate" report.
    The error im getting is: "State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 7455, message: ORA-07455 ..." the oracle error message given is that the query exceeds the time limit allowed by the database as the query is estimated in hundreds of hours. The main reason I think this may be ocurring is because the intermediate report is accepting as filter ALL values in the columns ive indicated, where as what is actually need is that it take only the value of the organizational structure columns that correspond to the metric the user has clicked on. I.e. the filter instead of reading only the specific organizational values, is reading all the values in the table, and hence the query is not permitted.
    Has anyone achieved anything similar???
    Edited by: zjac on Sep 20, 2008 12:42 PM

    by using Direct database request your bypassing all the wanderful metadata you built in the BMM layer, as such much functionality is not available.
    If you really need to use such complex SQL, I would suggest creating an inline view in the phyiscal layer and at least model this through your BMM either as a flat data source (ie include the dimension columns and model the same inline view into your BMM star)
    If you do that, the BI Server will know what other logical columns this data source can relate you and you should find the navigation works as expected.
    If you dont fancy that good practice, have a look at creating GOURL formulas as the column fx's, format as HTML to present the data as a hyperlink and manually pass all the parameters to the 2nd report.
    I'd do the first option, its more inline with intended use.
    What cant you do using the 'normal modelling / answers techniqes with union (see combined request in answers) and complex sql (evaluate function in RPD)??

  • Process Chain : Read PSA and Update Data Target in BI 7.0

    Hello Experts,
    In my Process Chain I have a variant Execute Infopackage to load the data only into PSA. then I have next variant as *Read PSA and Update Data Target*. my data target was a Master Data table Hierarchy
    In the variant " Read PSA and Update Data Target". the selection Parameters were
    PSA.Table : 0GLACCEXT_T011_HIER_BA1
    Selection Object Type : same Infopackage in Varaint Execute Infopackage
    the Error message was Variant doesnot contain a valid combination request/data target
    I checked the PSA-Table using RSA1OLD Transaction then I find four PSA Tables:
    0GLACCEXT_T011_HIER_BA1
    0GLACCEXT_T011_HIER_BA2
    0GLACCEXT_T011_HIER_BA3
    0GLACCEXT_T011_HIER_BA4
    All the requests are linked to PSA Table *0GLACCEXT_T011_HIER_BA4*.
    I can't understand why there exists four PSA Tables?
    I try to link the PSA-table 0GLACCEXT_T011_HIER_BA4 in the variant *Read PSA and Update Data Target and try to save it it raises short dump.
    If I select 0GLACCEXT_T011_HIER_BA1 in the varaint I shouldn't face any problems.?
    but the process chain raises an Error message Variant doesnot contain a valid combination request/data target with this variant.
    How shall I handle this issue?
    Please carify me the issues as soon as possible.
    thanks in advance
    Regards
    sailekha

    Hello,
    In the Variant Read PSA and Update Data Target I have to select  the PSA Tabelle Name from the preselection list in the System it shows me all the four PSA Tables that I mentioned.
    I can select any one of them. So I trieed with all the four PSA Tables in the list but I can selct only the XXXX......BA1 table  then only I can save and  include it in the PC. If I select the remaining tables BA2, BA3, BA4.........while I try to save the Variant it raises short dump.
    I checked the PSA using the Transaction  RSA1OLD under PSA...... I find 4 PSA Tables( I don't know whether they are PSA Tables or not but in the Variant it states that they are PSA Tables) in which all the requests are attached to BA4. only.
    I observed that ony for Hierarchies I find four PSA tables for remaining one only one PSA table was available.
    I totally confused how to handle this situation. any suggestions......... please help me to resolve this problem.
    Thanks & Regards

  • OBIEE 11g - Dashboard Prompts - Radio Buttons

    I have a report where I need to run 3 different ways based on the same filter with different values. Each way has multiple values. I was hoping to create a Dashboard prompt as a radion button to allow the user to select which variation of the report to run. I would like the radio button to pass the multiple values to the filter based on the user's selection. Does anybody know if this is possible? If not, is there another reccommended way. I would prefer not to save three versions of the same report with the only difference being a filter. Also, I would prefer for the users not to have to select multiple values each time they run report depending on the version they want to run.
    Thanks,
    William
    Edited by: user11228139 on Aug 5, 2011 8:51 AM

    wfortson wrote:
    I would like the radio button to pass the multiple values to the filter based on the user's selection. Does anybody know if this is possible?I see only one way. You create the dummy report with appropriate number of columns for filtering using combine request. Each request in this complex report will correspond a choosing in a radio button prompt. In a main report for every filtering column you need to use option 'results are based on another request'.

Maybe you are looking for