Automatic Duplicate Filter on Join Key

We have a fact table and a dimension table joined normally (primary key on dimension joined to surrogate key on fact table).
One of our logical columns is using the dimension key as a source.
If we filter on the column in a report, OBIEE also filters the fact table, even though it is not a physical source of the logical column.
Is there any way to turn this behavior off? We have seen where the optimizer in 11g gets confused by the repeated value, causing it to grossly underestimate the number of rows returned. The result is a query that runs very slow.

Thanks, kart, but that is not the issue.
The inner join is fine, the issue is that the optimizer does not know how to handle the filter on both the fact and dimension tables.
For example,
select dim.key, sum(fact.sales)
from fact, dim
where fact.key = dim.key
and dim.key = 34
and fact.key = 34 <--- This filter is automatically added to the query, even though the fact table is not defined as a source of the logical column, key
group by dim.key;
Apparently, the optimizer in 11g gets confused by the filters on both these columns and does better when there's only one on either the fact or the dim (doesn't matter which).
I want the query to look like below but don't know how to tell OBIEE not to put the filter also on the fact.
select dim.key, sum(fact.sales)
from fact, dim
where fact.key = dim.key
and dim.key = 34
group by dim.key;

Similar Messages

  • How to change the presets in pop-up menus (CS6 or CR 7, example Photo Filter) with arrow keys?

    How to change the presets in pop-up menus (CS6 or CR 7, example Photo Filter) with arrow keys an see at the same time the changes on the photo?
    It worked under Windows, now I use OS 10.8 and have to apply a preset with a click or Return button but after that the pop-up menu close so I have to open it once again to change a preset. Please help. Thank you!

    The filter panel is a shortcut for the content panel and it only effects the content of that window. So if you have a folder it will only see this as a folder and not with its content. (a Stack behaves about the same, being different in only counting the first file in the filter panel criteria but not what is in the stack itself)
    You have a view work arounds, first is use menu view / show items from subfolders (this can take some time especially if you have not used caching before on this content) and this builds visible thumbs for all content and that can be used for filtering.
    Or use the find command (Edit / find) and inhere specify the source and fill in the criteria include subfolders and this will give you the correct result.
    When you create a smart collection the find command also pops up given you the same opportunity to get the results in a collection, but since a collection is only a bunch of aliases referring to the originals you might be a bit careful with editing and deleting.

  • I am using FCPX 10.1.3. and want to duplicate my project, and its complete resources, to a different hard drive.  When I click "duplicate", it automatically duplicates the project in its current hard drive.  How do duplicate to a different hard drive

    I am using FCPX 10.1.3. with Yosemite, and want to duplicate my project and its complete resources to a different hard drive.  When I click "duplicate", it automatically duplicates the project in its current hard drive, unlike the previous FCPX that gave you options. How do duplicate to a different hard drive?

    Since projects are now stored in events and events are stored in libraries, you need to create a new l;bray on that different drive or open an existing library on that drive. Then duplicate your project and move it to the new library. It will copy the media. Then use the Consolidate Project File command to round up any external assets; there may or may not be any.
    Russ

  • Automatic Row Processing (DML) - Return Key Into Item

    Hello,
    This question is on Apex 4.2:
    I'm Displaying the [UNIKEY] column value after the record is inserted into the table using :
    page process > process row table_name > Source: Automatic Row Processing (DML) > Return Key Into Item > "Item Name"
    This works fine while inserting records, my question is why this does not respond on update / delete ?
    ϯ LT

    LT
    Check your branches.
    What might be happening is that on insert and update an other branch is followed.
    Where the branch of the insert either isn't clearing the cache of the page or is setting the item with it's own value.
    The branch on the update on the other hand is clearing the cache of the page and not setting the item.
    With a delete there is a clear cache process generate by the wizard. Check if this process is only running on the delete and not on the update.
    From memory the process is called something with reset.
    If the above doesn't help try to replicate the problem on apex.oracle.com and give access with a guest developer account so we can have a look.
    Nicolette

  • Script to automatically duplicate files/folders?

    I can't search this on Google because of all of the "duplicate removal" scripts, so I'm asking:
    I have a folder that is changed very often that is not very large. I need to keep backups of it frequently (I'd say twice or thrice a day). Currently, I just regularly go to it and press CMD+D, but that requires manual control of course.
    Is there a way with Automator, Applescript, shell scripts, or even Pascal to automatically DUPLICATE the folder at intervals so that it also keeps the old versions? Like exactly how a human would keep using CMD+D. It would say "folder copy" then "folder copy 1" then "folder copy 2" etc... I don't know how to send a "duplicate" command to Finder using these scripts.

    nvm found it

  • How to re-order automatically the number of primary key column in MySql that has been set as auto_increment if one of the row deleted?

    Hello,
    Can anyone show me the way how to re-oder automatically the number of primary key that has been set as auto_increment in mysql database when the row deleted?
    example:
    No (primary key=auto increment)|
    Name |
    AGE |
    1
        | JO
    | 21
    |
    2
        | Kyle
    | 25
    |
    3
        | Macy
    | 30
    |
    When delete 1 row:
    No (primary key=auto increment)|
    Name |
    AGE |
    1
        | JO
    | 21
    |
    2
        | Macy
    | 30
    |

    Hello,
    This is not a VB.NET question, best to ask this question in
    MySQL forum.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Automatic Data Filter??

    Dear Friends
    I have Oracle 10g forms, and i would like to add an automatic filter on the fileds, so each time the user enters charcater the results must be filterd, like when you want to add new trigger in oracle forms for example when you type "W" all words started by "W" kept in the menu and other deleted.
    can i do that in oracle form???
    thank you in advance
    Best Reagrds
    Mohammad

    Dear Friends
    I have found a good way to do automatic data filter, we can achieve this goal by using combo list, and put (when_list_changed) trigger on this list, to do the query on the specified block. and as the user enters characters and the data in blocks will be filtered instantly.
    i found it, and i thought that can help another users.
    best regards
    Mohammad

  • Don't have access to JOIN key for secured networks

    I have a 3GS iPhone and want to use my wireless internet connection at home. When I press my network name, it goes to a screen where I am supposed to type my password, however, the key JOIN is not accessible, so nothing happens. I tried with other secured networks and it's the same, when it goes to the password screen, the JOIN key is not accessible. What should I do?

    You have to enter the same number of digits required for that security level. For example if it is a six digit password and you enter four digits then Join will not turn blue and become available to choose.

  • Objects automatically duplicate when moving without holding the option key?

    Hello,
    I was wondering if someone could help me. I am using Illustrator CS4 on Mac OS X and I am having touble understanding why when I select an object (text block or embedded image) to move it in the artboard it dupliactes itself automatically and I am not pressing the "option" key when dragging the object. Is there a setting that I am missing? What is happening here?
    Thank you for your help!

    Jessie,
    You may find a list of the Usual Suspects in Item 7 here, in Other options

  • Filter and Join on same table

    Hi All,
    I am having a bit of hard time, implementing following.
    All suggestions welcome.
    (1) I have a file being mapped into an initial table with say, 10 fields (field1...field10).
    (2) I want to execute following logic for mapping
    For all records in the table, in a cursor
    If field1 = 10 Then
    update field10=x
    Else If field2 = 20 Then
    update field10=y
    End if
    If field10=x then
    update field3 =222
    End if
    I was thinking of using the filter, but am grappling with the problem that after I define the filter, how do I merge it with the original table data and execute the last conditional update (based on field10) on all records in the table?
    - Am thinking of doing as below
    Join the output from mother table with output from filter into a temp table (using non equal row id as the join condition), but this creates duplicate column names, and am wondering how to collapse them back into one column set again?
    is there an alternative possible, for this is very kludgy (if it works at all).
    Question 2
    (1) I have a sql expression defined, which I want to use in the filter bifurcation and also after the join. The sql expression's input column and output columns are same, just the target are to be different?
    Is it possible to do this, or do I have to duplicate the sql expression?
    Question 3
    My current load/stage is in PL/SQL procedure, which I am trying to model with OWB. Is there a guideline/ recommended best practice for doing this kind of activity?
    Appreciate your help.
    Deepak

    1. I think I already gave an answer on this question (and there is one more of the same in the forum), but here it is again:
    You can use an expression with a case statement:
    CASE field1
    WHEN 10 THEN 'x'
    WHEN 20 THEN 'y'
    WHEN ... THEN...
    ELSE field10 END CASE
    The input to this expression are fields field1 and field10, the output goes to field 10. So field10 will be updated with the value coming out of the expression - if field1 is 10 then it will be updated with 'x', when field1 is 20 then it will be updated with 'y' etc... when none of the CASE conditions are true (the ELSE case) it will be updated with the field10 (passt-hrough).
    2. The best solution would be to create a transformation (a function, for example) that contains your expression, then use it throughout the project without having to retype it.
    3. You should:
    - Import the source object structures and (where possible) the target ones
    - Design the new objects in OWB
    - Import your custom transformation library, if there is one
    - Design the extraction processes as mappings in OWB (you will not be able to reuse much of your old code if you want to take advantage of OWBs metadata management, runtime management etc. and if you want to maintain the system through OWB)
    - Run the two systems side by side for some time until you are confortable that the process logic you designed in OWB gives the same results as the old process.
    - Move the OWB system to production and switch the old system off.
    Regards:
    Igor

  • Unwanted automatic chrome filter in Photos

    My version of Photos, Version 1.0 (209.52.0), on 10.10.3 is automatically and routinely applying the chrome filter to all photos in my archive when I scroll through one-by-one with the right arrow key.
    How do I stop this please ?

    It seems to happen when the aspect ratio is close to the aspect ratio of the screen only. VERY annoying!

  • Automatically duplicate a table, minus a few columns.

    Thanks everyone for your help. I'm working on this quote system for our sales division, and I'm nearly done, I just need to solve this one last problem.
    I have two sheets - a work sheet and a print sheet. Obviously, the work sheet is for printing and the print sheet is the quote we print out and give to customers. There's a table on the work sheet with a lot of information (cost, markup) that we don't want on the print sheet we give to customers.
    Here's how I have it working now. The table on the work sheet is where we enter everything. The table on the print sheet is identical to the table on the work sheet, minus the columns we don't want clients to see. The print table is programmed to just replicate data from similar cells in the work table. As you enter data in the work table, it appears automatically in the print table.
    Here's my question: On the work table, I have a header and one row. When you need a second row, you just hit option-down arrow to make a second row. Unfortunately, that doesn't add a second row in the print table. Right now, I have a hundred rows in the print table and just delete the extra rows after I finish the work table, but that's inefficient (and confusing to my technically-challenged boss). Is there some way I can make it so when I add an extra row to the work table, an extra row gets added automatically to the print table?

    Two ideas:
    1) Have a whole bunch of extra rows in the print table, more than you'll ever need, and use a filter (Reorganization feature) to hide the empty rows.
    2) Create an Applescript specifically designed for this document and use it instead of option-down arrow to add a row. It would add a row to the work table and the print table at the same time and could be performed with a key combination (cmd-option-A, for instance). Whatever Mac is running the document will have to have the script installed, it won't be part of the document itself.
    A possible script, very basic, would be like the one below. Just change the sheet and table names to match your document. Create a new service in Automator that "receives no input in Numbers.app", use the Run Applescript action, paste this into it, save it with a name that makes sense to you. Then go to System Preferences/Keyboard to make a key combination for it.
    tell application "Numbers" to tell document 1
    tell sheet 1 to tell table 1
    add row below row -1
    end tell
    tell sheet 2 to tell table 1
    add row below row -1
    end tell
    end tell
    EDIT: After seeing Yvan's post below with the warning, if you use the script it would be a good idea to have such a warning just in case someone forgets and adds a row to the work table using one of the built-in methods.
    Message was edited by: Badunit

  • Windows 8.1 automatically activating after installing product key from VAMT 3.1?

    I use MAK keys (with the Count of 500 activations). I use the latest VAMT (3.1), and as soon as I "Install Product Key..." the target operating system will activate automatically without giving me the possibility to Proxy Activate and hence saving
    the CID. Anybody knows if this has to do with Windows 8.1 or the VAMT 3.1 itself? In my eyes this makes VAMT useless, since I can't save the CID!!!!!!!
    I just want to save the CID in the VAMT database already upon the first activation. I found some threads here on TechNet, but non of them seem to deal with the problem how to solve it within VAMT (or if there is some GPO to hinder the target OS go out to
    the internet and activate automatically).
    Please help me...

    You open the following key:
    HKLM\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Activation
    Where you set "Manual" to "1". I remember this from Windows 7 installations, that if manual was set to "0", that if would activate automatically after 3 Days. However, The grace period in Windows 8/8.1 is somehow different, it will start complaining directly
    if OS is not activated. Since the computers are domain-joined, I can roll out this regkey-entry using GPO Preferences without too much of a hassle.
    Found this regkey info from:
    http://www.somethingsomewhere.net/disable-the-automatic-windows-8-activation/
    Sorry for bothering you all with this thread. I will mark it as solved now.

  • Problem with outer join with filter on join column

    Hi,
    In physical layer I have one dimension and two facts, and there's an outer join between the facts.
    dim_DATE ,
    fact_1 ,
    fact_2
    Joins:
    dim_DATE inner join fact_1 on dim_DATE.DATE = fact_1.DATE
    fact_1 left outer join fact_2 on fact_1.DATE = fact_2.DATE and fact_1.SOME_ID = fact_2.SOME_ID
    When I run a report with a date as a filter, OBIEE executes "optimized" physical SQL:
    select fact1.X, fact2.Y
    from
    Fact_1 left outer join on fact_1.DATE = fact_2.DATE and fact_1.SOME_ID = fact_2.SOME_ID
    where Fact_1.DATE = TO_DATE('2009-05-28' , 'YYYY-MM-DD' )
    and  Fact_2.DATE = TO_DATE('2009-05-28' , 'YYYY-MM-DD')
    The filter on Fact_2.DATE effectively replaces outer join with inner.
    Is there a way to disable this "optimization", which is actually very good for inner joins, but doesn't allow outer joins?
    Thanks in advance,
    Alex
    Edited by: AM_1 on Aug 11, 2009 8:20 AM

    If you want to perform a Fact-based partitioning with OBIEE (two fact with the same dimension), you have to :
    * create in your physical layer for each fact table the joins with the dimension
    * create in the Business Model layer ONE star schema with ONE logical fact table containing the columns of your two physical fact table
    In this way when you choose minimal one column of your fact1 and one column of your fact2, OBIEE will perform two query against each fact table/dimension, join them with an OUTER JOIN and your problem will disappear.
    Cheers
    Nico

  • Display the second report as modalform and filter with primary key value of first report when you click on first report column link

    Hi All,
    I have two reports.
    1. order report
    2. order detail report
    when you click on the order report column it display the order detail report as a modal form.
    i was done below steps.
    1. In page header i was written the below code
    <link rel="stylesheet" href = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/
    redmond/jquery-ui.css" type="text/css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"> </script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"> </script>
    <script type="text/javascript">
    $( function() {
    $('#ModalForm1').dialog(
    autoOpen : false ,
    width :470,
    height: 500,
    resize :false,
    function openForm1()
    $('#ModalForm1').dialog('open');
    function closeForm()
    $('#ModalForm1 input[type="text"]').val('');
    $('#ModalForm1').dialog('close');
    </script>
    2. order report.
    3. order detail report
       select * from order_details where order_id = p_order_id;
    region header
    <div id="ModalForm1" title="Ordered Items" style="display:none">
    <p class="msg"></p>
    footer
    </div>
    4. created the hidden item in order detail report.
    5. in order report column attributes i was given link like below.
    javascript:$s('p_order_id','#order_id#');openForm1();
    when i click on the order report column link it passing the row primary key value to hiddent and open the report as modal form. however it is not filter the report with hidden item. it showing the no data found.
    problem is hidden item value is not submitting. once we submit that value it showing the 2nd report with filter data.
    can any help me to achieve above requirement.
    apex: 4.2
    oracle 11g
    Regards,
    Vijay.

    Vijay,
    Issue 1: Your usage of $s() JavaScript API seems to be wrong. For the first parameter, you need to use the name of the hidden page item and not p_order_id.
    javascript:$s('P1_ORDER_ID','#ORDER_ID#');openForm1();
    Issue 2: Seems like you are not setting the hidden page item's value in session state. Assuming your hidden page item is called P1_ORDER_ID, Under "Region Definition" tab of your "Order Detail Report" under "Source" tab, for page items to submit, enter the name of the hidden page item P1_ORDER_ID.
    Thanks!
    JMcG

Maybe you are looking for

  • How stop the automatic statistics collection job after the maintenance wind

    Hi, we are for a solution to stop the automatic statistics collection job after the maintenance window finished. we disable all jobs except the automatic statistics collection, because this is the only one we want to run. Then we define specific valu

  • Payment Integration for Servies

    Hi Guys, I am developing IOS app which requires payment integration part. I want to know about, Can I integrate Apple Pay or Third party payment (Like PayPal, Credit Card, debit card, etc.) in my app for services like Electricity bill, Movie Tickets,

  • Best Price Set to Zero on Auction

    Hello Guys: Currently I have the following issue on my SRM Server(5.5) system: When you create a Bid Invitation where a Bidder did not Bid for one or more items and then you convert this Bid Invitation to an Auction the system sets the Best bid price

  • Please help me out im having trouble with my touch. :)

    I have a Ipod touch and I downloaded all the music and synced it with my friends computer, now i have my own computer and i was wondering if its possible to have all the songs off the touch saved to my itunes? If you know what to do please dumb down

  • Is there some underlying problem with FlashPlayer 11,5,502,135 & previous versions?

    I, like so many here everyday, all seem to be having the same problem with FP just going to a black screen & not loading the video or sites will try to tell you t download the latest version of FP even though Micromedia.com tells you the latest versi