Choosing which table is used for results

To make this simple I am going to use two dimension tables and one fact table.
If you were to have two dimension tables. One for Country and one for Region.
Then you have one fact table which shows transactions at the Region Level, but Country is also in the PK for the table. So there is a join from Country to F1 and another from Region to F1.
When I select Country and Region in my query and no fact, it is using the fact table to get the results. The problem with this is that if there are no transactions for a given Region then the data does not exist. I would like the result to pull from the Country Dimension for Country and the Region Dimension for Region.
Any help is greatly appreciated.

Hi user10800227,
So if I understand your situation correctly, you have the following going on:
TABLES)
COUNTRY_DIM
REGION_DIM
FACT
JOINS)
REGION_DIM.F1 1-to-many FACT.F1 many-to-one COUNTRY_DIM.F1 (INNER JOINS)
In your report, you pull one field from COUNTRY_DIM and one field from REGION_DIM.
Assuming that the above is correct, then what you are seeing is the right behavior. Each Answer Request is sent out as a single query. So when you pull a field from REGION_DIM and COUNTRY_DIM, OBIEE has to find a way to join those two tables together in a single query. Based on the metadata you setup in the RPD, OBIEE sees that the proper way to relate a REGION_DIM record to a COUNTRY_DIM record is through the FACT table. So when it generates SQL it joins REGION_DIM to the FACT, and the FACT to COUNTRY_DIM. Hence, if all your joins are inner joins, then if there are no transactions for a given COUNTRY&REGION combination, you won't see it in your list.
If you want to see all the data points, you might want to make that join an outer join in the repository.
Your other option is to use Nico's data densification technique. Visit this link for details: http://gerardnico.com/wiki/dat/obiee/logical_sql/obiee_sql_densification
Good luck and if you found this post useful, please award points!
Best regards,
-Joe

Similar Messages

  • Which tables are used for Quality Efficiency calculation of OEE report ?

    Hello,
    We're confirming OEE report behavior.
    I'd like to know OEE report and ME table specification.
    Which tables are used for Quality Efficiency calculation of OEE report ?
    According to I know, the definition of Quality Efficiency is (complete qty) / (start qty).
    For this calculation, does OEE report just use qty_started and qty_completed of PRODUCTION_LOG table?
    If any other tables/columns/logic are implemented, your information is appreciated.
    Best Regards,
    Takahiro Uesugi

    hi
    Go to BSIS & BSAS
    BKPF
    SKA1
    SKAT
    SKB1
    Regards
    Roobal

  • Which tables to use for Project Status Report in CR2008 accessing R/3 data?

    I am working on a Project Status Report on a WBS in Crystal Report 2008 that is accessing data from a R/3 system level that will provide me the following fields:
    1) Purchased Hours
    2) Billed Hours
    3) Non-Billed Hours
    4) Credit Memo
    5) Remaining Hours
    The report will be displayed at the WBS level (grouped at WBS level) but will also list the different activities under each WBS.
    Can anyone help me identify which tables and fields I need to be working with? This is how the report will look like:
    CustID     ProjectID     PlantID      WBS#     Activity#      PurchasedHours     BilledHours    Non-BilledHours     CreditMemos    RemainingHours
    Please help.
    Regards.
    -Rohit
    Edited by: RohitBora on Feb 2, 2012 5:59 AM

    If you are using Business One then please post to that forum. CR 2008 is an OEM build for B1 so they support it in that forum.
    Don

  • Which  Tables are used  for   RequestForQuatation(RFQ),MM

    Hi Gurus,
    When i have created RFQ number, where it holds and
    TABLES  used for RFQ
    could anyone tel me..............
    Thanks in Advance.
    Edited by: siva kumar kasa on Oct 22, 2008 8:41 AM

    HI
    Check with the following Tables :
    EKKN      - Account Assignment in Purchasing Document          
    EKKO      - Purchasing Document Header                     
    EKPO      - Purchasing Document Item
    Thanks & Regards,
    Senthil

  • Which table MIGO use for schedule planning?

    Hello,
    I have one schedule planning which contains 50 items. When I go to MIGO, I choose the schedule planning, but I just see 32 items. I guess some materials are processed before.
    I need to get this 32 items into an internal table but I can not find the right table name.
    I tried MSEG, EKKO, EKET but didnt have the right result. Any ideas?

    Any inputs on this please?
    I am trying myself too
    Thanks

  • Is there a custom function available which can be used for logging errors captured in a sp in a sql table

    Is there a custom function  available which can be used for logging errors captured in a sp during and after execution in a sql table?
    Basically we  would like to utilize such function  in every sp and log errors of each sp in a error log table
    Mudassar

    Thanks .
    I was able to write this however I am thinking I am missing something
    CREATE FUNCTION testfunction1()
    RETURNS @temp_error TABLE (
    id int identity(1,1),
    procedure_name varchar(255),
    line_number int,
    error_number int,
    error_message varchar(max),
    error_state int,
    error_severity int,
    occurence_datetime datetime default current_timestamp,
    user_name sysname default suser_name(),
    login_name sysname default suser_name()
    AS
    BEGIN
    insert @temp_error(procedure_name,line_number,error_number,error_message,error_state,error_severity)
    select error_procedure(),error_line(),error_number(),error_message(),error_state(),error_severity()
    RETURN;
    END;
    CREATE TYPE test_type AS TABLE(
    id int identity(1,1),
    procedure_name varchar(255),
    line_number int,
    error_number int,
    error_message varchar(max),
    error_state int,
    error_severity int,
    occurence_datetime datetime default current_timestamp,
    user_name sysname default suser_name(),
    login_name sysname default suser_name()
    GO
    create proc usp_error_test
    @test_type AS test_type READONLY
    as
    begin
    begin try
    select 1/0
    end try
    begin catch
    select * from testfunction1(@test_type)
    end catch
    end
    Mudassar

  • Which function is used for  adding days to given month

    which function is used for  adding days to given month

    Hi Jagrut,
    Good ... Check out the following examples
    <b>Get a date</b>
    DATE_GET_WEEK Returns week for a date
    WEEK_GET_FIRST_DAY Returns first day for a week
    RP_LAST_DAY_OF_MONTHS Returns last day of month
    FIRST_DAY_IN_PERIOD_GET Get first day of a period
    LAST_DAY_IN_PERIOD_GET Get last day of a period
    RP_LAST_DAY_OF_MONTHS Determine last day of month
    <b>Date calculations</b>
    DATE_COMPUTE_DAY Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc.
    DATE_IN_FUTURE Calculate a date N days in the future.
    RP_CALC_DATE_IN_INTERVAL Add days/months to a date
    RP_CALC_DATE_IN_INTERVAL Add/subtract years/months/days from a date
    SD_DATETIME_DIFFERENCE Give the difference in Days and Time for 2 dates
    MONTH_PLUS_DETERMINE Add or subtract months from a date. To subtract a month, enter a negative value for the 'months' parameter.
    DATE_CREATE Calculates a date from the input parameters:
    Example: DATE_CREATE
    CALL FUNCTION 'DATE_CREATE'
    EXPORTING
       anzahl_jahre  = 1
       anzahl_monate = 2
       anzahl_tage   = 3
       datum_ein     = '20010101'
    IMPORTING
       datum_aus     = l_new_date.
       Result:
       l_new_date = 20020304
    Example: MONTH_PLUS_DETERMINE
    data: new_date type d.
    CALL FUNCTION 'MONTH_PLUS_DETERMINE'
    EXPORTING
    months = -5 " Negative to subtract from old date, positive to add
    olddate = sy-datum
    IMPORTING
    NEWDATE = new_date.
    write: / new_date.
    <b>Hollidays</b>
    HOLIDAY_GET Provides a table of all the holidays based upon a Factory Calendar &/ Holiday Calendar.
    HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the
    date is a holiday by checking the parameter HOLIDAY_FOUND.
    Example: HOLIDAY_CHECK_AND_GET_INFO
    data: ld_date                 like scal-datum  default sy-datum,
          lc_holiday_cal_id       like scal-hcalid default 'CA',
          ltab_holiday_attributes like thol occurs 0 with header line,
          lc_holiday_found        like scal-indicator.
    CALL FUNCTION 'HOLIDAY_CHECK_AND_GET_INFO'
      EXPORTING
        date                               = ld_date
        holiday_calendar_id                = lc_holiday_cal_id
        WITH_HOLIDAY_ATTRIBUTES            = 'X'
      IMPORTING
        HOLIDAY_FOUND                      = lc_holiday_found
      tables
        holiday_attributes                 = ltab_holiday_attributes
      EXCEPTIONS
        CALENDAR_BUFFER_NOT_LOADABLE       = 1
        DATE_AFTER_RANGE                   = 2
        DATE_BEFORE_RANGE                  = 3
        DATE_INVALID                       = 4
        HOLIDAY_CALENDAR_ID_MISSING        = 5
        HOLIDAY_CALENDAR_NOT_FOUND         = 6
        OTHERS                             = 7.
    if sy-subrc = 0 and
       lc_holiday_found = 'X'.
      write: / ld_date, 'is a holiday'.
    else.
      write: / ld_date, 'is not a holiday, or there was an error calling the function'.
    endif.
    Checking dates
    DATE_CHECK_PLAUSIBILITY Check to see if a date is in a valid format for SAP. Works well when validating dates being passed in from other systems.
    Converting dates
    DATE_CONV_EXT_TO_INT Conversion of dates to SAP internal format e.g. '28.03.2000' -> 20000328 Can also be used to check if a date is valid ( sy-subrc <> 0 )
    Function to return literal for month
    he table you want to use is T247. You can also use the function MONTH_NAMES_GET.
    You can also try table T015M. It has the month number in it's key.
    Formatting
    DATUMSAUFBEREITUNG Format date as the user settings
    Other
    MONTH_NAMES_GET It returns all the month and names in repective language.
    Good Luck and thanks
    AK

  • Which tool is used for database designing

    Hi,
    Can you please share which tool is used for database(Oracle) designing most
    Thanks

    Kim Berg Hansen wrote:
    Personally I use brain, pen and paper for designing/modelling - then simply write scripts to create those tables.Me too.
    But of course I realize that is not the way of a modern programmer :-)No, modern programmers rely less on the brain part.
    I have heard other people saying that the (now free) [url http://www.oracle.com/technetwork/developer-tools/datamodeler/overview/index.html]SQL Developer Data Modeler is helpful for modelling. I haven't any personal experience, though.
    I have used it to reverse engineer the design resulting from the brain / pen / paper / scripts process and produce pretty pictures for the modern programmers to try and understand. It works quite well for this.

  • Which method is used for event creation

    Dear All,
    My client has more then one Purchase Organization. Workflow for Purchase order release very from pur org to pur org. For example - workflow WS92000030 is trigger when PO is created for India pur org where as workflow WS92000021 is trigger when PO is created for US pur org.  
    I checked and found that same Object Type - BUS2012 & event - RELEASESTEPCREATED is used in all Pur. Org PO release workflow. Also I found in Transaction code - SWETYP that Type linkage activate for  BUS2012, RELEASESTEPCREATED in all the PO workflow - WS92000030 & WS92000021.
    As per my knowledge, event can be created in various way such as Function module, Change document, General status management, Business Transaction Events etc.
    Can some one guide me, how can I found that which method is used for event creation in different pur org?
    How can I fould what is the fuctional module used for event creation if Fuctional module used for event creation. 
    For your information, I can see in T. Code - SWUO that 'Result dependent on a check function module'  for all the workflow - WS92000030, WS92000021 etc.
    Thanks in

    Hi Sahu,
    I dont think they have used the Function module or change document or any other kind of methods to trigger the workflow. This is because RELEASESTEPCREATED method is a standard method and it will be triggered by standard SAP. They can not make changes in standard sap saying RELEASESTEPCREATED should be triggered for this Purchase Org .
    Istead what i think is, they might have given the Event Condition for each workflow.
    In SWDD>> basic settings>> Start Events, we can give condition on triggering the workflow.
    Please check this.
    Regards,
    Gautham

  • Which CKM is used for moving data from Oracle to delimited file ?

    Hi All
    Please let me know Which CKM is used for moving data from Oracle to delimited file ?
    Also is there need of defining each columns before hand in target datastore. Cant ODI take it from the oracle table itself ?

    Addy,
    A CKM is a Check KM which is used to validate data and log errors. It is not going to assist you in data movement. You will need an LKM SQL to File append as answered in another thread.
    Assuming that you have a one to one mapping, to make things simpler you can duplicate the Oracle based model and create a file based model. This will take all the column definitions from the Oracle based model.
    Alternatively, you can also use an ODI tool odiSQLUnload to dump the data to a file
    HTH

  • Which TABLEs are used in RWB ADAPTER ENGINE ?

    Hello everyone,
    Runtime Work Bench -> message monitoring
    we can hier select message from
    Messages of component: Integration Server  from Database 
    Which TABLEs are used to query? 
    Thx in advance
    Best Regards
    Yaning

    hello Seshagiri,
    do you know? in RWB--> Message Monitoring after selection i can get many columns.
    for example:
    End-to-End-Informationen     
    Engine          
    Status          -
    > as System Error or successful
    Start     
    Ende          
    Sender-Partner          
    Sender-Service          
    Sender-Interface     
    Empfänger-Partner     
    Empfänger-Service     
    Empfänger-Interface
    which table contains this Info. column Status ?
    Thank you
    regards
    yaning

  • Which tables are used...

    Hello
    I have a script, which makes a lot of things on the database. Is there a tool or a script, that I can see which tables are used by the script?
    Thanks for the help.
    roger

    Street wrote:
    Thanks for the answers. We know, what the scripts do. But we need a list from all tables, that we can export this tables, its for a migration!Yes, but we don't ... and the response depends on what kind of script it is, and what it does.
    For example, if the "script" is a sequence of pure DML commands which would be run from sqlplus then I would let the PL/SQL compiler do the work by creating a procedure containing the script text, compile it, query user_dependencies and then drop the procedue.
    If it contains DDL then that might work as well (not near a computer with Oracle on it so I can't check whether a procedure containing a create table statement would show that as a dependency or not ... )
    The script could already be a procedure / package, in whcih case just query user dependencies, or it could be a shell script which invokes all manner of strange things, in which case you're probably on your own.
    Maybe I'm being naive, but couldn't you just run the thing in an empty schema (or even a fresh instance - a local XE for example), and then look at what's appeared?
    Dave
    Edited by: Dave Rabone on 10/01/2012 03:16
    finger trouble ...

  • How to check which table is using my table

    Hi,
    I have a table say Temp_Rd.
    How do I check which table is using my table Temp_Rd??
    Which table is using my Temp_Rd as the dependencies in the sql database?
    Thank you very much.

    Oops, pardon me for asking the questions unclearly.
    Its like some table Foreign Key is references to my this table Temp_Rd.
    Eg,
    CONSTRAINT "FK_SomeTable" FOREIGN KEY ("ID")
         REFERENCES "Temp_Rd" ("ID")
    How do I know which are the some table?
    I hope I explain it better this time.
    Sorrie about it.

  • Which tool you use for your datamodel?

    Which tool you use for your datamodel?
    To show your tables with pk and fk and all.
    designer
    jdev
    other?

    I am using ERwin® Data Modeler r7.1 (7.1.1.1207). It supports most new features of Oracle 10g such as hash, list, composite hash, setting LOB storage properties etc.
    We just upgraded from version 4 recently. In the old version, I had to manually modify the generated scripts.
    ERWin r7 supports all Oracle 10g (Release 2) new features we need for our projects. It offers far more functionality and options than the old version. It supports all partition types in Oracle 10g: Range, Hash, List, Composite-Hash and Composite-LIST and offers more storage settings.
    Another nice new feature of ERWin r7 is that it offers purge option in the DROP TABLE statement. In Oracle 10g, the recycle bin contains all the dropped database objects until you permanently drop them with the PURGE option. Otherwise, you will see many funny looking objects like this: 'BIN$0+ktoVChEmXgNAAADiUEHQ==$0'.
    With the purge option, you don't need to purge the recycle bin after the forward engineering.
    SQL> purge recyclebin;
    My favorite is Oracle Designer.
    http://www.oracleabc.com/forums/thread-24-1-1.html

  • How to specify which cert to use for software virt server?

    Is there a way to specify which certificate to use for each software virtual server? So, for example a user hitting https://somewhere.com would get the certificate for somewhere.com while the virtual server https://somewhereelse.com would use the certifcate with the name somewhereelse.com in it?

    No, this is not possible due to limitations of the underlying protocols.
    HTTP requests are sent over TCP connections which deal with IP addresses and port numbers (i.e. hardware virtual server properties), not hostnames (i.e. software virtual server properties). The HTTP protocol adds software virtual server support by allowing a client to identify the hostname (e.g. "www.iplanet.com") of the server it wishes to communicate with. This is achieved by including a "Host:" header with each HTTP request.
    Unfortunately, the SSL/TLS protocols require that the web server present its SSL/TLS certificate BEFORE the client sends its HTTP request. Since the software virtual server information is contained in the HTTP request, it is not possible for the server to select different certificates for different software virtual servers.
    You will need to use hardware virtual servers (i.e. virtual servers that have different IP addresses and/or port numbers) if you wish to use distinct SSL/TLS certificates.

Maybe you are looking for

  • Error when running setup: Attach to native process

    Hi, I try to install the oracle iplanet webserver (version 7.0.13) on linux (centos 6.2, 64 bits). I first installed the compat-libstdc++-33 packages. After that I installed JRE, this version: java version "1.6.0_31" Java(TM) SE Runtime Environment (

  • HT4101 Problem with SD card reader

    The connection between my camera and computer is working properly; but when I connect the SD card reader, nothing happens.  Anyone else experience this problem?

  • Customized Bulk Action Form

    I saw that there are multiple unanswered questions about this, so I am assuming the answer is no but wanted to give it a shot. Is there any way to customize the Bulk Action form besides building an entirely different workflow? For example, I want to

  • Cisco NAM - Capabilities

    Hello All, I'm looking for features of NAM 3.0 which may help on daily operational basis, below are few questions regarding the same: 1. Can NAM give real time data showing which IP addresses are connected to a particular server? 2. Can it provide de

  • Why "Adobe [InDesign, AI, PS...] CC" and "Adobe [ditto] CC (2014)"

    Why does my Control Panel show that I have two versions of Adobe CC's installed on my Win 8.1 (Pro-64) PC? Different version numbers and different file sizes. The Windows "Metro-tile" for InDesign starts Version 9.0 but opening an InDesign file from