How to create a calculated column in another dimension

Hi all

I use OBIEE 11.9 on oracle 12 c.

I have the following two dimensions in Bussiness model,

I want to create FEMALES TOTAL logical column in dimension F1 student Graduation which is based on the column between the sexes in the student D1 dimension. The gender column has two possible values 'F', have '. the column TOTAL WOMEN should have sex for F.

How I do that?

Thank you.

Kind regards.

Add the dimension as a join table in the LTS made-> general tab, and then in the formula in the column, use a case statement to evaluate the dimensional condition and return the column done or 0.

KEY: Size is not an LTS on its own by the way (as your picture shows)

Oracle BI applications example:

For staff than for those who is marked as active employees.

Then the column DISTRIBUTION is: CASE WHEN 'Oracle Data Warehouse'. "'"' Catalogue'."" """dbo"."" "" "Dim_W_EMPLOYMENT_D '." " W_ASG_ACTIVE_INACTIVE_CODE' = 'A' AND ' Oracle Data Warehouse. "'"' Catalogue'."" """dbo"."" "" "Dim_W_EMPLOYMENT_D '." " W_WORKER_TYPE_CODE' = 'Worker EMPLOYEE' THEN ' Oracle Data Warehouse. "'"' Catalogue'."" """dbo"."" "" "Fact_W_WRKFC_EVT_MONTH_F_Snapshot '." " END OF MEMBERSHIP"0 OTHERWISE

Tags: Business Intelligence

Similar Questions

  • How to create a multi column list control?

    Currently is a single-column listbox using StdListBoxWidgetN.

    How to create a multi columns as an image list control?

    What I see a sample? or add any source?

    Thanks for help.

    You must use the TreeView Widget.

    See the example persistentlistui or wlistboxcomposite in the sdk.

  • I have a column with two values, separated by a space, in each line. How to create 2 new columns with the first value in a column, and the second value in another column?

    I have a column with two values, separated by a space, in each line. How do I create 2 new columns with the first value in one column and the second value in another column?

    Add two new columns after than the original with space separated values column.

    Select cell B1 and type (or copy and paste it here) the formula:

    = IF (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    shortcut for this is:

    B1 = if (Len (a1) > 0, LEFT (A1, FIND ("", A1) −1), ' ')

    C1 = if (Len (a1) > 0, Member SUBSTITUTE (A1, B1 & "", ""), "")

    or

    the formula of the C1 could also be:

    = IF (Len (a1) > 0, RIGHT (A1, LEN (A1) −FIND ("", A1)), "")

    Select cells B1 and C1, copy

    Select cells B1 at the end of the C column, paste

  • How to create a status column in the table

    Hello everyone

    I am trying to create a column of the table status in frontview Panel. I enclose a picture with her to say clearly what I say.plz tell me how to create the active status column in the table.

    I want to show green for safety stock and red for safety stock below.


  • How to create a new column of two different result sets

    How to create a new result column different two sets, both the result set uses the dimensions of different date.

    I got solutions for is to apply the filter in the formula in the column it itself, based on the requirement.

  • How to create the default column in XML schema?

    Hi all

    I would like to define a default column Let's say Run_Date as Date data type in XML (XSD) schema definition and would fill column Run_Date SYSDATE, when XML documents are parsed to this schema.
    Let me know, how can we achieve?

    Thanks in advance.

    Also, I can not change the contents of the XML file, because it is generated by another language, but I can change the definition of XML schema, if necessary.

    Well, if you can not change the XML instance, you cannot change the schema, it conforms to the.
    You can add an optional attribute whose value by default, but we can only use a static value.

    How do you insert the file into the table?

  • If you programmatically, via an INSERT statement, then I think your best bet is to create a new table with a relational schema XMLType column and a DATE column:

    CREATE TABLE employees (
      dt_created date default sysdate not null
    , xmldoc     xmltype
    , CONSTRAINT emp_pk PRIMARY KEY (xmldoc."XMLDATA".EMP_NO)
    )
    XMLTYPE COLUMN xmldoc STORE AS OBJECT RELATIONAL
    XMLSCHEMA "EMP.xsd" ELEMENT "Emp" ;
    

    If you choose to do so, remove the XML schema and enter it again with "genTables-online false."

  • If you have inserted the file via the XDB (FTP, WebDAV, createResource) repository and relying on the table by default feature, then you may be out of luck.
    There is probably a way to tamper with the underlying structure of GOLD among a hidden column do accept a default value, but since it is not supported I won't even try.

  • How to create a 2-column format?

    How to change a page of a column which is located in the middle of a long document that has all the pages in 2 columns?

    This page for some reason is not the 2-column format, and I don't understand why.

    I checked the Format > page layout > layout of columns, but I'm confused b/c the settings are the SAME for pages in two columns and this one column to a random page. I thought that if I noticed a different number I could change the numbers for this page to display pages 2-col. I also noticed that the leader for this weird page tabs are on the far left and far so that the text reads all the way through a column instead of being divided into 2 columns to the right. I played with the tabs as well. Oh and also checked the master pages - there are 2 and both are size 2 columns. How can I have a page that is a column in the middle of a doc that is all the 2 columns to the format? Only the masters pgs dictate what will be the body pages?

    I did not create this doc; just go in and try to fix.

    Thank you very much!

    Jessie,

    Looks like there is a substitution on this particular organ page. This could be done by applying a page master diferent or manually tweaking the properties of the text frame to have only a single column.

    You can reapply the master pages by default (left/right) using the Format > Page Layout > use Master Page options.

    It is also possible that a Master Page mapping rule is applied to a specific paratag on this page which automatically (re) applies to a specific master page whenever this paratag is encountered.

  • How to create indexes on columns all - the flames begin

    Yes read you it correctly.

    Is it possible to create a procedure that will create an index on each column in a table without specifying the column names?

    index_all_cols exec ('xxx', 'parallel');

    You ask why? There is no reason that I can give you that will quench the flames coming my way. But, finally, it's because (1) I am tired of using excel to generate create statements of the index and (2) I want the speed at the expense of everything else, (3) I do not use a mouse... I know, I would hate first.

    Jason

    Oracle 10g

    ... at least I didn't to index every column in every table in my diagram!

    Had, it works!

    CREATE OR REPLACE PROCEDURE index_all_cols (pTABLENAME IN varchar2)

    IS

    CURSOR c1 IS SELECT distinct COLUMN_NAME FROM USER_TAB_COLS WHERE TABLE_NAME = pTABLENAME;

    BEGIN

    FOR c IN c1 LOOP

    BEGIN EXECUTE IMMEDIATE 'create index X_ "| c.COLUMN_NAME |' WE ' | pTABLENAME | ' ('| c.COLUMN_NAME |') parallel logging ";

    -EXCEPTION WHILE some other THEN NULL;

    END;

    END LOOP;

    COMMIT;

    END index_all_cols;

    /

    ... and not even a flame

  • How to create a database link to another workspace

    Hi all

    Run now, I'm two workspaces in apex.oraclecorp.com.

    For example, one is one, the other is b. In the space of only one I need used data in the workspace b,.

    So, how can I create a link of database for b in the workspace one?

    Kind regards

    Patricia

    Database of links are created between the databases. In my case, the schema are the same database and I own both the schema.

    Thus,.

    workspace: one, scheme: (default)

    workspace: b, diagram: b (by default)

    Connect to the workspace of b -> SQL Workshop:

    Grant select on b.table to aDB.

    Connect to a -> SQL Workshop workspace:

    Select * from b.table;

    the precondition is that you must have grant privligle on workspace b.

    Kind regards

    Patricia

  • How to create an additional column for the description of the virtual computer object?

    Hi all

    I would like to know if it is possible to add a column more in the description of VMware vsphere, for the moment we have column / field called 'Notes' in which we can add our comments on a particular virtual machine / items.

    I wanted to add a column called the backup status, is it possible to add it to the database of the VM? which can be edited client VSphere.

    Any ideas would be greatly appreciated.

    Thank you

    AWT

    You can add fields for virtual machines.

    Click on a virtual machine.

    Then, go to the menu Manager

    Choose custom attributes.

    André

  • How can I create a calculator to include in a folio iPad?

    I have a request to re-create and re-design of the functionality of a calculation in a folio iPad excel spreadsheet. I understand that I might be able to do so using HTML5 + javascript, but my knowledge of coding is limited. Any ideas on where I could begin to learn how to create a calculator into a folio in the overlays in web content panel in Indesign?

    Use HTML and scripting to encode a calculator. Try and use it in a folio. I enclose an example.

  • Create a new calculated columns

    Hi all

    I want to create a calculated column with the following formula:

    Sales/Sum (Sales) * 100

    I got an error saying:
    ERRORS:
    [14041] error in the measure for the test of the column definition. Nested aggregate measure definitions are not currently supported.

    I can of course create in response but the user like a column or a shared measure (which may be reusable).

    Concerning

    In fact, you must create two columns in the business model.

    First, create a column of the measure based on the level for the denominator. It must be a measure of the year-level.

    Then, create the measure part as a separate column. Select 'Sales' in your business model, right click and select "Wizard of calculation" in the context menu. You can create an action that compares the year-level measurement.

  • ask a calculated column

    In a report, I used the source area to create a query that uses / creates calculated columns.
    Query:

    SELECT id, name, amount, percentage,.
    amount * percentage AS CalCost
    store
    where id = 3;

    Now, I want to create a calculated column in the query using the column "CalCost" created, similar to:

    SELECT id, name, amount, percentage,.
    amount * percentage AS CalCost.
    amount - CalCost AS difference,

    However, I get the error ORA-0094 indicating that 'CalCost' is an invalid identifier.

    Is it possible to calculate this column without raising this error?

    963510 wrote:
    However, I get the error ORA-0094 indicating that 'CalCost' is an invalid identifier.

    Is it possible to calculate this column without raising this error?

    Yes - the alias is not available as of the SELECTION list. You will have to redo the calc, i.e.:

    SELECT id, name, amount, percentage,
           amount * percentage AS CalCost,
           amount - (amount * percentage) AS Difference
    FROM   store
    WHERE  id = 3;
    

    Alternatively, you can rewrite it as follows, where the alias expected to be available, but I see no reason to:

    SELECT id, name, amount, percentage, CalCost
           amount - CalCost AS Difference
    FROM   (SELECT id, name, amount, percentage,
                   amount * percentage AS CalCost,
                   amount - (amount * percentage) AS Difference,
            FROM   store
            WHERE  id = 3
           );
    
  • How to create a specific calculation

    Hi all

    I would like to create a named calculation using the amount of sales as the measure and the geography dimension

    The geography hierarchy is:
    ALL THE
    -Region
    -Countries
    -Store

    And the calculation I want is:

    Sale of a country / SUM (sales region)

    using level based on the measures allows me to create


    Sales of store / SUM (sales of country)
    Sales of store / SUM (sales region)
    Sales of store / SUM (ALL sales)

    because sales are aggregated at the lowest level wich is "Store".

    Anyone know how I can create it in the repository?


    Concerning

    Hello

    I don't really see the problem, because the solution is quite simple:

    1. create a shaved base measure: sales by country
    2. create a shaved another basic measure: sales by region
    3. create a logical column with the calculation of sales by country / sales by region based on the logical columns 1 and 2.

    Kind regards
    Stijn

  • How to create a simple calculated measure?

    Hello

    I'm having problems creating a very simple calculated measure within the OBIEE administrator. Let's say I have a dimension 'product' with the 'product price' attribute and a measure "number of sales. I'm trying to define in the layer of "Business Model" of the measure calculated 'total sales. To do this I have defined as as a logical column with the phrase 'product price' * 'number of sales.

    But OBIEE isn't calculating what I expect, this makes a Cartesian product of the products and the grand total of the sales, which makes no sense. To relieve that I tried to define the measure as partners at the product level, then I correct the calculations but sales per product are not added together in a total.

    In any case it seems to be a very simple thing to do, but I was not able to find any documentation about it; 'Help' internal documentation is extremely limited. Is there another source of documentation that I don't know?

    Thanks for your help,
    Chris

    Calculate the physical level itself at the logical level

    I would be more careful with possible calculations on the physical columns since the results are different
    But in this case, it seems a good approach,

    -> chris3110.

    If you want to try with physical columns, you can find detailed instructions in the tutorial (http://download.oracle.com/docs/cd/E10352_01/doc/bi.1013/e10312/repository.htm), Section 4.6.3 OBI 'Create a calculation measure using physical columns'

    It will be useful,

Maybe you are looking for