Aggregate on logical column

Hello:

I was testing two columns, ID and value as follows:

ID value
1-2
2 1
2 2

and the value < /b > for < b > aggregation type is Sum. In the report, it will be looks like:

ID value
1-2
2 1

It is ok. Then I define a logical column, < b > < /b > Calc is:

When case value < 0 then 0 else value end

So I think that the computed column must be:

ID value Calc
1     -2     -2
2     -1     -1
2      2      0

And then on the report page, is to expect a show:

ID value Calc
1     -2     -2
2      1     -1

But in fact, I had:

ID value Calc
1     -2     -2
2      1      0

Why has this happened?

Thank you!

This is basically good example for condition after aggregation. Condition is the application after the total, that is why it shows 0. For the 2nd rank sum is 1 that is greater than 0, so it is showing 0.

If you want to avoid this, one solution would be the calculation to the RPD, the physical columns in calculations. You'll get to put it as expected.

-Madan

Tags: Business Intelligence

Similar Questions

  • Can I remove Logical columns that I will not use in the layer of presentation as the id or foreign key columns?

    Hello

    Can I remove Logical columns at the level of the business layer that I'm not going to use the layer of presentation as the ID or foreign key columns? It will not affect the relations to the business layer?

    Kind regards

    Nestor

    Hi Nestor,.

    It won't unless they are used as keys, columns sort order, the ID column or the likes. But you can leave them in the MDB layer and expose just in the presentation layer - just in case you need it later. It is not use all the resources or generate overhead. More: Developer of the RPD should be used to work with loads of columns

  • OBIEE logical column has same SQL but returns different results

    I have a SQL query with a case statement that returns the correct results by operating in Oracle SQL Developer. I've created several logical columns in OBIEE, one for each case in the original query. However, the results returned by each logical column OBIEE are radically different from the original SQL query results, even if the SQL code is virtually identical.

    For example, a column logical OBIEE that returns incorrect results contains the following SQL code:

    SUM (CASE when

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '% a %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%B %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%c %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like"% %") or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%G %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like"hour %") or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like"%%J") or

    ("Registration - College". "" Effective colleges F. ("' Postal code ' like '%R %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%s %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%T %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like"% %") or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%x %') or

    ("Registration - College". "" Effective colleges F. ("' Postal code ' like '%Y %')

    THEN 0 OTHERWISE 1 END)

    The case statement in the original SQL query, which returns the correct results, is as follows:

    CASE

    WHEN (postal_zip_code_permanent like "%%K") or (postal_zip_code_permanent like '% %') or (postal_zip_code_permanent like '%m %') or (postal_zip_code_permanent like '%n %') or (postal_zip_code_permanent like "%p %") THEN "Ontario".

    WHEN (postal_zip_code_permanent like '% a %') or (postal_zip_code_permanent like '%B %') or (postal_zip_code_permanent like '%c %') or (postal_zip_code_permanent like '% %') or (postal_zip_code_permanent like '%G %') or (postal_zip_code_permanent like "%hour") or (postal_zip_code_permanent like "%%J") or (postal_zip_code_permanent like "%%R") or (postal_zip_code_permanent like '%s %') or (postal_zip_code_permanent like '%t %') or (postal_zip_code_permanent like '% %') or (postal_zip_ code_permanent like '%x %') or (postal_zip_code_permanent like "%%Y") THEN "Canada, other than Ontario.

    WHEN (substr(postal_zip_code_permanent,1,1) IN ('1 ', '2', '3', '4', '5', '6' ', 7',' 8 ', ' 9',' 0') or (postal_zip_code_permanent like '%d %') or (postal_zip_code_permanent like '%f %') or (postal_zip_code_permanent like ' % I %') or (postal_zip_code_permanent like "% O") or (postal_zip_code_permanent like "%%Q") or (postal_zip_code_permanent like "%%U") or (postal_zip_code_permanent like ' % W ') or (postal_zip_code_permanent like "%%Z")) THEN 'other')

    WHEN (postal_zip_code_permanent like '% + %') or (postal_zip_code_permanent like '%. %') or (postal_zip_code_permanent like ' %? %') or (postal_zip_code_permanent like '% %') or postal_zip_code_permanent IN ('+ ','.', '?)) (',',') And THEN "Invalid."

    WHEN postal_zip_code_permanent is null THEN 'Blank '.

    Of OTHER postal_zip_code_permanent

    END

    Now I see what the problem was. In the original SQL query, each condition is exclusive, for each record will only be categorized in one of the scenarios WHEN. But in OBIEE, each logical column is autonomous, so some records were classified into more than logical column, even if each logical column was supposed to be exclusive.

  • Hundreds of rename logical columns

    Hello!

    I am new to OBIEE and I could not find a solution on google, so I hope you could help us. I have so few physical tables with many columns I want to rename it, but Assistant rename is not an option for me. Most of the names of columns are as assistant to rename and "BF5648" who is unable to transform into a human-readable text.

    So I, in Excel, all the names of physical column and alongside the description I want to use in the business layer and presentation. Can I create a kind of script or I don't know, something I would say OBIEE bulk rename a column with this description.

    If I have to do it manually, it would be a huge waste of time to rename every single logical column one by one.

    I really hope that there is some sort of solution to this!

    I think I have an idea, as we tried to export of AWM to OBIEE and it creates a file of text which I think I can examine and recreate one for my needs, or something like that and I hope it works. It seems to me that a lot of code, but if there is no other way, so be.

  • Variblae presentation that goes to the logical column of the RPD

    Hello

    Can someone please tell me how to pass the variable to the presentation to logical column RPD
    I capture a date from a command prompt and set a State column based on the user date selects from the command prompt.

    can some please tell me how to get there...

    Thanks in advance

    You can pass the query variable to RPD.

    Create a session named PRESENTATION_VARIABLE variable. Write some SQL block initialization as select 'something' double.

    You can now use this session variable in the logical column as VALUEOF (NQ_SESSION. PRESENTATION_VARIABLE).

    Now, go into the dash prompt, change the column by which you want to set the variable presentation. Select request Variable throughout a variable drop-down list.

    Type the name of the variable to query PRESENTATION_VARIABLE.

    Now in your dashboard report, you can use the logical column that uses this query variable.

    Let me know if it worked or not.

    Thank you

  • Apply the sequence as a logical column

    I need to add a logical column in my table of facts or the dimension that generates a unique ID for each row selected in the answers. I have a sequence is created called camp_con_seq on my database. I wish I had my logical column run the camp_con_seq.nextval for each returned row. How can I set this up in the RPD?

    Thank you...

    Created the view in the layer using 'select' as a Type of Table with query
    Select double pubs.nextval;
    Add a nexval column.
    Saved it and when I discover data error
    ORA-02287: sequence number not allowed here

    Joint made with join complex fac.row_wid > = seq.col and followed by MDB and PS layer changes

    The same thing in answers too.

    I tried with EVALUATE('pubs.nextval(%1)' AS number, 'EMPLOYEES '. ("' Job_id") but no luck.

    I suggest you go for a slider or sp using seq gen I know no can go for it or not, tried to get errors, he left.

    Try to go for tables system... see how you can use using V$ SQL.

    Hope this helps

  • new logical column MDB

    Hello
    I created a new logical column in MDB (column name: Total amount FY13), check the fact table and I marked "use existing columns of logic as the source. That's what I have in the box below. Even if these individual columns have values in them, this new logical column is not populated.

    «Resource FY13-FY17 '.»» Because of resources. " AMOUNT_FY13 + "resource FY13-FY17. "" Resources ". TAX1_AMOUNT_FY13 + "resource FY13-FY17. "" Resources ". TAX2_AMOUNT_FY13

    Let me know if there is anything wrong and how to fix it.

    Thank you for your time and your help.

    Hi ssk.

    Check this by placing the straps correctly for columns of logics.
    «Resource FY13-FY17 '.»» Because of resources. " AMOUNT_FY13 + ("Resource FY13-FY17". "" Resources ". TAX1_AMOUNT_FY13 + "resource FY13-FY17. "" Resources ". TAX2_AMOUNT_FY13)

    (GOLD) If it still does not, have the column created instead of checking using the existing column. You write what is necessary for your expression which is the complement your performance.

    hope helps you.

    See you soon,.
    KK

  • Add logical column in RPD with aggregation

    Hello

    I have about a data warehouse contains data of students, in my table of facts, I a measure called number of all students, I also have another measure called sum of lack of student data that I have in my fact is: I all pupils and students who is absent I calculated the sum of the absence of the student in my ETL (ODI) , the other measure I want to calculate in my RPD.


    How can I get the number of all students


    Thank you

    Ah (sorry, maybe a little slow as it is at night...)

    Add a COUNT DISTINCT aggregation on your id_student column and you get many students.

  • How to recover new logical column based on values of table hint.

    Hello
    I have two tables in SPR
    1. file table contains the coulmns-> date, numero_fichier, record_count, cldm_stg, cmsa_stg, archive_stg
    2 rejection table columns are--> same as above
    both have same common requirement of columns.my is to publish a dashboard as:

    Date | County land_files | alnd_recordscount | County target_files | target_records County | Rejection filecount | number of records release

    These report ineed recover from these two tables.based on countcomes values.taget flag when all values of ILI value = 'y '.
    IE (cldm_stg = 'y' and cmsa_stg = 'y' and archive_stg = 'y') if not then it will be in the release file.
    Please give solution how to achieve my output.






    [nQSError: 14026] Impossible to navigate the requested term: Target_record: [DAggr (FILE_CONTROL. Target_record by [FILE_CONTROL. FILE_NAME, REJECTED_FILES. File_name, REJECTED_FILES.NO_OF_ROWS, File_landing.NO_OF_ROWS, File_landing. (FILE_LOAD_DATE] SB FILE_CONTROL)]. Correct metadata consistency warnings. (HY000)

    Published by: user8767586 on January 12, 2010 04:29

    First answer the following questions:
    What is your fact table?
    What are your dimension tables?

  • Column derived logical of the MDB - visit bounced

    In Web Metrics, a "visit rebounded" when a session views a page on a Web site and then leaves. In my table of facts, I capture the "total pages" read for each session and I set this metric in my Business Model with a rule of aggregation "sum". I'm trying to use this measure to calculate the metric 'bounced visit' but I'm running into issues.

    Session ID number Total of Pages
    1179860475 5
    1179861625 1 < = this is a visit of rebound
    1179861920 7
    1179866260 2
    1179868693 13

    If I set 'bounced visits' as

    BOX WHEN "total pages" = 1 THEN 1 ELSE END 0

    What I see in the newspapers of session is:

    CASE amount WHEN ("total number of pages") = 1 THEN 1 ELSE END 0

    The aggregation of the pages 'total' is made first, and then the derived metric calculation. This leads to incorrect results. Is in any way to solve this in the business model? I know that I can go back to the ETL, calculate a metric "bounce tour", store it in the fact, create aggregates, etc.. I was looking for a short term solution.

    I tried other things:

    (1) make a copy of the column "total pages" and put off aggregation, call him 'total pages - no aggregation '.

    This leads to queries of the form:

    Select distinct T22583. TOTAL_PAGES C1
    Of
    WEB_SESSIONS_A1 T22583
    order of c1


    (2) create a logical column based on 'total pages - no aggregation '.

    has bounced visit = CASE WHEN EnterpriseWarehouse. "" Web sessions. "' Total Pages - no aggregation ' = 1 THEN 1 ELSE END 0

    This leads to [nQSError: 14020] none of the fact tables are compatible with the query request Web Sessions.bounced visit.

    Sorry that if I wasn't clear... you don't need a new select statement for this... you need to do is to define a column using the physical layer (not an existing column of logic in use)... To do this, you must create a new column in MDB... then you go under the mapping tab and click on button... and you enter it formula using the physical column... Let me know if it is clear...

  • column formula logic repository obiee

    Hi all

    I am creating a logical column using below three physical columns

    I am providing the column values;

    total of accounts receivable (data type: double) = 21476.15

    tot_bill_M (data type: double) = 3276.03

    tot_bill_M_1 (data type: double) = 18200.12


    When case (ifnull (total receivables, 0)-ifnull (tot_bill_M, 0) -ifnull (tot_bill_M_1, 0)) < = 0, 0, another condition to achieve


    but here the first condition less than or equal to 0 should be has been reached and should publish as 0 in obiee reports.


    But here, it goes to the second step of calculation.


    is there anyway we can do this?


    Why not add a TOUR around your measurements to make sure do them the same "accuracy"? Do not round to a higher accuracy than you display or 1 more and you'll most likely get a match.

    And also look at the SQL generated physical because at least you are 100% of what you need to do to get the digits of your correspondents.

  • Table repository - Business model - 10g OBIEE logical to physical table, column mapping is empty

    Hi, I'm really new to OBIEE 10 g.

    I've already implemented a database SQL Server 2005 in physics and import a vw_Dim_retail_branch view.

    The view has 3 columns: branch_id, branch_code, branch_desc.

    Now, I want to set up the business model to map this physical table (view).

    I created a new business model

    Adding new logic table Dim_retail_branch

    In sources, added the vw_Dim_retail_branch as a table source.

    But in the logical table source column mapping tab window, it is empty. I thought he should be able to identify all of the columns in vw_Dim_retail_branch, but no. The spectacle of the mapped column is checked.

    What should I do here? Each column type manually?

    Hello

    You can drag and drop the columns from the physical layer to layer MDB.

    Select 3 columns and drag and drop it to the logical column created in the MDB layer.

    For more reference: http://mkashu.blogspot.com

    Kind regards

    VG

  • Having trouble getting the calculations of percentage on logical aggregation count column

    Hi Experts,

    I am trying to create values of percentage based on the count aggregation.

    For example in the 11g Sample Sales Data Model, I added 3 logical columns, Order_Count, Orders_Shipped, OrdersShipped %

    As follows:
    (1) Order_count
    Derives from physical mapping of count (Revenue.ORDER_NUMBER F1)

    Shipped_Count 2)
    It's an expression derived for add a filter on the order_count of order_status. So I did this:
    Filter ("Sample Sales".) "Revenue of F1" "." " Order_Count"using"Sample Sales ". "' Revenue from F1. ("' Order_status ' = 3-expedie ')

    (3) % OrdersShipped
    Again, it is an expression derived from calc the % of
    "Sample Sales". "' Revenue from F1. "" Shipped_Count "/" Sample Sales ". "' Revenue from F1. "" Order_Count "* 100

    In my analysis, the Order_Count and the Shipped_Count display correctly.

    However, the % OrdersShipped always displays as 0.0000%.

    I changed the format of data for the % OrderShipped to a type of percentage with 4 decimal places.

    I also tried to add the % column analysis directly instead of the DM by doing this
    "Basic facts". "count_shipped" / "core facts". "" Order_Count "* 100

    Yet once, it appears as 0.000%

    Any ideas would be greatly appreciated.

    DB

    Published by: user4990932 on March 12, 2013 07:04
    Repost

    DB,

    Try multiplying the numerator and the denominator by 1.0. This will throw your integers to floating-point numbers and your result will display correctly.

    I hope this helps.

    -Akshay

  • By dragging the columns in source existing logical table...

    Hello
    I'm learning just OBIEE 11 g and I use a turorial from oracle, it is
    "Creating a repository using the BI of Oracle 11 g Administration tool" for aim practice.
    In this tutorial, it's say that do drag the columns of phscial layer of Logica Table Source
    MDB layer to avoid creating a second source of logical table... But when I try to drag the columns to
    source of existing logic, it is disabling I mean that is not to allow... is there any other technical
    IT... or I'm wrong addresses.... The following are briefly in the
    Tutorial.


    "Drag all six columns of D50 Sales Rep in the physical layer to D5 Sales Rep in the MDB layer." This action
    creates logical columns and adds a logical table source D50 Sales Rep to D5 Sales Rep.
    The logical table D50 source Sales Rep and rename LTS1 Sales Rep.
    In the physical layer, expand D52 Sales Rep Position.
    Drag the POSTN_DESC and POSTN_LEVEL D52 Sales Rep posted to LTS1 Sales Rep that you are
    by dragging columns from the source to the logical table, not the logical table. Dragging to the logical table would create a
    second source of logical table.
    Drag the DISTANCE of D51 Sales Rep Parent child at LTS1 Sales Rep. Yet once, you drag the column to the logic
    the source of the table, not the logical table. »

    help would be appreciated.
    Thank you and best regards,
    Sri_Oracle.

    Hi Sri,

    When you drag a physical column on an existing source of the logic table and if it doesn't let you do, then it means that there is no physical join between the existing physical table (which the logical source already points to) and the new physical table (which you drag the column now). Then, please, make sure the joint in place.

    I hope this helps.

    Thank you
    Diakité

  • What is the use of the associated columns?

    In the model business, logical columns are associated with a dimension level. But the columns are nether primary key or used for display. What is the purpose of these related columns?

    To expand our example a little more.

    You have one day sun, as well as a month Dim. Your month logical name column is mapped to two tables through sources different logical table. Your levels of content is defined accordingly for these LTS.

    You have a grain day fact table and a grain months aggregated fact table. You have a measure ($ quantity, no matter) mapped to two physical tables through two LTS with levels of content defined (as the time Dimension).

    So when you query the name of the month and in Dollars, the BI server uses the global table as it can serve both the attribute of the dimension and the measure of the global table. He knows its more effective because the ratio between the number of items that you have defined in the hierarchy told him about 30 times less data on the whole of the month, by the ratio of 365 days 12 months ago.

    So far so good.

    Allows to introduce more dimensions, a.n.other dimension is attached to the base of fact table but NOT in the whole month. You model everything as per normal, when you drop this dimension in your report, the BI server recognizes that there is no comprehensive source that can give the right answer in all the areas required in the report falls to the next best form requested in the report, grain in this case simple, it would default to the base's table because it is only capable of serving the month and all fact table the attributes of the other dimension. In more complex models, you may have a few tables of aggregation with two more high grain (high) or less dimensionality (fewer lines). Setting levels LTS the existence of physical layer Joins tell the BI server which can be attached to the dimensioning, it tells what tables of aggregation would be more effective.
    Not to be confused with the establishment of a limit on a measure - it's something different (level total function, % of the year etc etc.)

    I have it?

    These might help:
    http://gerardnico.com/wiki/dat/OBIEE/fragmentation_level_based
    http://www.rittmanmead.com/2006/11/aggregate-navigation-using-Oracle-BI-server/
    http://obiee101.blogspot.com/2008/11/OBIEE-making-it-aggregate-aware.html

    Let us know if any more Q

Maybe you are looking for