How to send two requests to separate from OBI and combine the results

Hi all

I'm trying to understand how to combine the results of two queries in OBI. Here's the scenario.

There are three tables, users, security roles however joined a bridge Table Role_User

Each user has multiple roles, the roles to which a user has access is identified by a column of flag with value T otherwise there F value.

I am creating an analysis as below

ID of the user
Access roles Roles have no access

Therefore, column 2 shows all roles with indicator T for the particular user and column 2 shows all roles with indicator F for the same user.

I tried to create two fact tables and using the filter condition on the value of the indicator, but in the analysis, I could use only one at a time. When I add the two columns, I get the error as none of the fact table are compatible with the query request. I would like to hierarchies for dimensions created and assigned in terms of content for all the facts and decreases in intensity.

Any advice will be highly appreciated.

Thank you

Found the solution. I'm posting here in case where someone faced with a similar question.

I've added the SQL code in the Advanced tab:

Select A.saw_0 saw_0, A.saw_1 saw_1, B.saw_1 saw_2

FROM (Select Col1, Col2 FROM Table1 saw_1 saw_0) a LEFT OUTER JOIN

(Saw_0 select Col1, Col2 saw_1 FROM Table2) B

on A.saw_0 = B.saw_0

I created the logic of the facts using the source even with two different filter conditions and were used with a subquery as above

Ref: OBIEE Interviews: reports

Tags: Business Intelligence

Similar Questions

  • How to compare data from the two table column by column and connect the result compared to the separate table

    Hello experts...

    I'm new to this forum and Oracle coding complex.

    I have a task in which I want to compare two tables with the same structure, same columns. My Oracle database is 11g Release 2. I want this column-by-column comparison and save the result in a separate table. (say result_table)

    The structure of the table would be as follows:

    SQL > desc emp;

    Name                                      Null?    Type

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

    EMPNO NOT NULL NUMBER 4

    ENAME VARCHAR2 (10)

    JOB                                                VARCHAR2(9)

    MGR                                                NUMBER(4)

    HIREDATE DATE

    SAL                                                NUMBER(7,2)

    COMM                                               NUMBER(7,2)

    DEPTNO NUMBER (2)

    SQL > emp_comp desc;

    Name                                      Null?    Type

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

    EMPNO NOT NULL NUMBER 4

    ENAME VARCHAR2 (10)

    JOB                                                VARCHAR2(9)

    MGR                                                NUMBER(4)

    HIREDATE DATE

    SAL                                                NUMBER(7,2)

    COMM                                               NUMBER(7,2)

    DEPTNO NUMBER (2)

    Both of the tables EMPNO is the primary key.

    I want to compare these two tables based on the EMPNO (EMPNO even is both tables).

    The result log table would be as follows:

    SQL > create table result_table

    2 (check_sr_no, number (5),)

    table_name 3 varchar2 (30),

    ROW_ID 4 varchar2 (20).

    column_name 5 varchar2 (20).

    6 column_data varchar2 (1000).

    compared_by 7 varchar2 (10));

    Table created.

    SQL > alter table result_table

    2 Add the constraint result_table_pk

    3 primary key (check_sr_no);

    Modified table.

    The name of the table and the name of the column will not be hardcoded (based parameter by user)

    I tried to use the dbms_comparison package, but do not find comparison of column to column.

    I also used by using the query operator LESS. It's showing the difference in rank.

    I also went to https://asktom.oracle.com/pls/apex/f?p=100:11:0:P11_QUESTION_ID:2151582681236

    Your help will be very appreciated.

    Thank you

    DK

    Tom Kyte has answered this question MANY times over the years. Here are links for its solution

    https://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:4934799800346640847

  • Add the value of point two apex and display the result in another part of the apex

    Hello

    I need to make the addition of the two item values using apex.item.text and find the result in another apex.item.text.

    For example:
    SELECT
    apex_item. Text(1,null) ONE
    apex_item. Text(2,null) TWO
    apex_item. Text(3,null) RESULT
    FROM EMP
    please suggest me

    Thank you
    Sudhir

    >
    No it does not add the two values in the column, user key to enter the value, it must add the value of the item and displays the result in a dynamic way. Need a suggestion for using javascript
    >
    This requirement was not not clear in the op.

    See the demo of Denes Kubicek.

    This topic is discussed far too often. Have you tried to Oracle Application Express (APEX) and adapting one of the many examples of LoV cascading to your situation?

    See you soon,.

    PS: Tip:
    Look for the p_item_id and p_attributes of the APEX_ITEM API parameters.
    You can call JS functions for example using p_attribute

    APEX_ITEM.TEXT(...
    p_attributes => 'onchange="doTotal(this);"', /* doTotal being your JS Function */
    ...
    

    Published by: Dominic August 16, 2012 11:52

  • How to run SQL and export the results to Excel

    My task is to run a custom SQL script and create an Excel file through SQL Developer running from the command line (called by a scheduled script). Is this possible using SQL Developer?

    First, the thing I will try is to run a report user-defined in SQL Developer and save the results in an Excel file. Only 16000 result lines, but took 10 minutes to do the export and still cannot complete. Is there another way to do it?

    Thank you very much.

    Can't be done, but this is requested already exchanging SQL Developer, you can vote here and add weight to the possible future implementation.

    Kind regards
    K.

  • Some keys on my MacPro keyboard have suddenly changed character. More precisely: move 2 product "instead of @;" Shift 3 product £ instead of a hashtag. and two RBI Maj @. I rebooted and checked the settings keyboard without result.

    Some keys on my MacPro keyboard have suddenly changed character. More precisely: move 2 product "instead of @;" Shift 3 product £ instead of a hashtag. and two RBI Maj @. I rebooted and checked the settings keyboard without result. It worked fine yesterday and has not been moved since then. What should do?

    Check the sources of the system/preferences/keyboard again.  You have active the British PC keyboard.  Remove it and make sure that you have only on the list.

  • How can I access a journal or a report that lists the results of an operation of Disk Defragmenter?

    How can I access a journal or a report that lists the results of an operation of Disk Defragmenter?

    Windows Defrag is supposed to run silently in the background.
    Unlike XP, it does not offer a newspaper to the user, as far as I understand.

    If you schedule a defrag, you can let it run in the background and forget it.

    Schedule defragmentation
    Start button > Search box, type Task Scheduler > pressenter > invite uac, click on continue or enter the admin password >
    (click on the pointer before) to expand Task Scheduler Library >
    expnad Microsoft >
    Expand Windows >
    Click on Defrag > the middle column, click scheduled d.... >
    right column, click Properties > click triggers tab at the top > click on Edit > select / adjust how to defragment Appendix to be executed, select options >
    at the bottom of the box, place a check on " enable " >
    OK > OK yet > exit the Task Scheduler window.
  • How can I deal with audio, separate left / right and make each stereo - CS5

    I have a microphone mono two record that I can separate into two separate audio editing one tracks is now left follow in a separate timeline and the other is in the other scenario, how to make each of these pieces then in Pseudo stereo tracks?  What I have to go to Soundbooth or is there a simple way in first?

    One can also make the mixture in the SB (think that new releases are multi-track now), but the import can duplicate and panning the original and the Dupe, as required, then export.

    However, this should not be necessary with complete filling left/right.

    It gives you sort of 2.5 ways to do. Try to 'easy', to work from there.

    Good luck

    Hunt

  • How can I prevent my addon buttons from being hidden by the drop down "more tools" menu?

    I have several addon buttons on my toolbar to the right of the obtained. Firefox hides in a menu button drop down titled "more tools... ». I don't want to do that, but I can't figure out how to change this behavior. When I enter the Customization screen, the button disappears, and neither she nor any of the buttons it hides appear on a toolbar or in the component "other tools and features.

    Sometimes when I first open Firefox, my addons will show the way I want to do, but then some time in the Firefox session randomly will collapse them in the new drop-down list. How can I stop the Firefox hide something in this drop-down list?

    I'm talking about here is a screenshot of the drop-down list: https://i.imgur.com/DVpxxe4.png

    Normally, when you adjust the width of the window of the browser, the search box and got will be 'flex' becoming more or less long to accommodate the change. However, they have a minimum width, and if the window becomes narrower than, the "overflow" menu/button will appear.

    The problem may occur with a wider window on the sites with certificates EVSSL, like this one, where the owner of the site name appears next to the Green padlock. That takes a lot of space...

    You can probably can change the behavior of Firefox with a custom style rule, but 'something' must be sacrificed to make room...

  • HOW TO GET TWO WAY AUDIO BETWEEN A PC AND A PROFILE C90 SYSTEM

    I'm trying to connect my PC to two audio channels and take advance of the C90 65 "profile that I have.

    I had the C90 RCA Audio Line In #2 to taking SPKR of the PC and work well to get audio to the profile via the C90 speakers.

    Audio of any of the room of the Microphones connected to the C90 to the PC?

    I have a cable connecting the Audio Line Out #2 (right) goes to the MIC on the PC socket, but it does not work.  I don't see any audio signal on the map of his local record settings?

    I did successfully on other systems using a series MXP codec that is 3000, 6000 using catch RCA of VCS.

    Also, what are the internal settings to ensure that turned off inside the C90 and the sound card on the PC?

    I'm missing something simple, I'm sure.

    Any help and or the drawing will be appreciated. ???

    You would use TC Console to manipulate the audio routing in the codec.  However, I recommend a microphone routing to an output of speaker, as Wayne mentions that this may cause problems with the audio.  I routed the microphone input to the HDMI output once, and it makes the sound being transmitted to the dark side be distorted, don't know why, but I would test fully all possible scenarios when changing channels audio.

  • How to use OATS fall back data from DB and insert data to DB

    Hi all

    My requirement is bit different.

    I'll explain the scenario,

    I'm working on the application of the OTM, I read OAST supports OTM and already test the scripts are ready.

    My situation is as follows below,

    1. I need to extract data from a field for 18 000 shipments.
    2. I have an excel sheet in the formula below

      Shipment_Number Stop_Number Planed_Arrival_Date Planed_Departure_Date
      1

      1

      12
      13
      21
      22
    3. I could write the script in OATS while he logins OTM and research for specified shipping number and capture the Planed_Arrival_Date and the Planed_Departure_Date for the specific stop.
    4. But the problem is that I am not able to record the date in excel.

    Expected solution:

    1. One way to save the captured data back to Excel.
    2. A way to backup the data captured to a column in a table. If it is possible then to way to make OATMEAL reade the shipment of a database column number.

    Thank you

    Vishwamber Shetty

    Hi Vishwamber,

    Try to use Datatable in OATS. Using datatable, you can read and write to Excel.

    Kind regards

    Dembélé Muraleedharan

  • How to load the 4155B file, run it and record the results to Excel with Labview

    Hi, I need model command support, sending to 4155B using Labview.

    I would like to load the file from the disk on 4155B using Labview. First of all, I tried to write the command using MAX and found that the command that I write to 4155 B contains the error message. "I sent the two GT ' MYFILE P" and : MMEM:LOADTAT 0, filename orders every time to 4155 B, but failed. May I know what kind of command must send to the communication with the instrument?

    Besides, I need to run the content of the file, I should send it OUT @Hp4155; "' XE ' command?

    After running, I need save the result in excel file back.

    Grateful if someone can help. Thanks in advance for your help.

    Kind regards

    Yong

    SH_Yong wrote:

    Hi, I need model command support, sending to 4155B using Labview.

    I would like to load the file from the disk on 4155B using Labview. First of all, I tried to write the command using MAX and found that the command that I write to 4155 B contains the error message. "I sent the two GT ' MYFILE P" and : MMEM:LOADTAT 0, filename orders every time to 4155 B, but failed. May I know what kind of command must send to the communication with the instrument?

    Besides, I need to run the content of the file, I should send it OUT @Hp4155; "' XE ' command?

    After running, I need save the result in excel file back.

    Grateful if someone can help. Thanks in advance for your help.

    Kind regards

    Yong

    The SCPI commands are found in the manual of the instrument.

  • HOW 'to LOCK"or close CERTAIN CELLS... and not the overall sheet

    "ROS" with Safari 9.0.1 and OS X EL Capitan 10.11.1

    I would like to "bolt" of certain cells, new should not be changed... and not the entire sheet...

    Possible or not?

    How?

    Thanks for help

    gymsclos

    You can lock an entire table, but not to individual cells in a table.  An effective way to organize your document would be to enter data in a table that is unlocked and have results of the calculations in a separate table that you lock to prevent accidental changes. You can have several tables on a single sheet.

    SG

  • How to create a button to run an insert and remove the statement

    Hello. I have a tabular presentation page that allows me to view the contents of a table and update the data in two columns of the table. I want to create a button on the same page and when the button is clicked the following actions occur

    1. Insert a new table all the values in the table as a table where the two editable fields are not null.
    2. remove from the table in a table all records where the editable fields are not null
    3. back to the current page... This will show me all the lines where the editable fields are always set to null.

    I tried to do this by creating a button manually and by using a sql expression to first try the Insert... It did not work. So I'm looking for a pointer to what would be the best method.
    Concerning
    Craig

    Hello

    create the button with "Defined by the dynamic action" action.

    The creation of a dynamic action on the button who has run the PL/SQL code

    Kind regards
    Richard

    -----
    blog: http://blog.warp11.nl
    Twitter: @rhjmartens
    If you answer this question, please mark the thread as closed and give points where won...

  • Link to information from tables and display the 'best '.

    Hello! I'm totally new to this great software, and the truth is that I lost D:
     
    I try to explain in more detail what I have to do, I hope you can help me please it is urgent T_T

    I do 3 tables must be related to each other, that is to say a table where a username will be manually enter, another where you manually enter the user name and the third which will automatically enter power of each user (for automatic writing, I'll use random data). Each table will have a box number, for example:
     
    Table 1, box 1: Paul
    Table 2, box 1: door
    Table 3, box 1: 3.74
     
    Table 1, box 2: Miguel
    Table 2, box 2: Ramos
    Table 3, zone 2: 4.99
     
    Table 1, box 3: Maelle
    Table 2, area 3: Branco
    Table 3, case 3: 4.98
     
    I mean, I bind the box to one table with the other three. And because the program must compare the data in table 3 (power) and display the data of the user of best (which has the highest power). In this example, the program should appear:
     
    BEST USER:
    NAME: MIGUEL RAMOS
    POWER: 4.99

    (Is not slender record information when I close the program)

    I don't know if I ask you very much, I have a very clear idea in my head of what I have to do, but being a new software for my not know how to implement it.

    Thank you in advance for your quick response and help and ilustrative! xD

    Have you tried something with the basic understanding of your question check if this is what you need?

    -Still not clear what you mean by table? (In my opinion, the table is 2d array of values here, otherwise please let me know.)

    -C' is the reason why I asked you to show your code you did then it will be clearer.

  • Subtract two time_clock and get the result minutes

    Hi Experts,

    Nicely, I would subtract two type of time_clock that varcahr2 to the database and get the minutes of the result.

    Data:

    Select ' 08:00 ' as start_time_clock, 15:00 ' as the double end_time_clock

    Union of all the

    Select ' 09:00 ', 16:30 ' of the double

    Expected result:

    start_time_clock end_time_clock count_minutes

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

    08:00                      15:00                       420

    09:00                      16:30                       450

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - production


    Thanks in advance

    WITH dataset

    AS (SELECT ' 08:00 ' AS start_time_clock, 15:00 ' AS end_time_clock)

    OF THE DOUBLE

    UNION ALL

    SELECT ' 09:00 ', 16:30 ' DOUBLE)

    SELECT (to_date (end_time_clock,'HH24:MI')-to_date(start_time_clock,'HH24:MI')) * 24 * 60))

    Of THE dataset

Maybe you are looking for

  • Time to download for the Capitan

    Hi all... y at - it a scheduled download of the Capitan to OS 10.6.8?

  • I just report to EtreCheck. Can someone help me?

    EtreCheck version: 2.9.11 (264) Report generated 2016-04-23 16:30:03 Download EtreCheck from https://etrecheck.com Time 07:03 Performance: Below average Click the [Support] links to help with non-Apple products. Click [details] for more information o

  • Your opinion about Satellite L350-170

    Hello I ve been looking at this laptop for a few days now and I m thinking go for it when I get my pay.I just want to know if someone there what they think of him. What's the life of the battery as etc. Congratulations in advance :)

  • Service Pack will not be installed

    I'm using my other copmpter because my count has a blue screen and it says no service pack installed recovery changes do not count! Please help me * Title *.I'm using my other copmpter because my count has a blue screen and it says no service pack in

  • To free up disk space, Outlook Express can compact the messages. This can take up to a few minutes. OK Cancel

    I started getting this issue of dialog start until recently. It appears every time on start up. I do not understand how or where it comes from because I do not use Outlook Express - I use Outlook. I always Cancel, but it always comes back. What has c