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.

Tags: Business Intelligence

Similar Questions

  • How can I add a column with my favorites for my screen?

    I just started using Firefox now and can not find a way to add a column on the left side of my window in Firefox (which I didn't in Internet Explorer) showing all the links to my favorite site. In which case it is important, I use Window XP as my operating system).

    To show your Firefox Bookmarks Sidebar ("Favorites" are in IE, not Firefox), use CTRL + B to open or close the sidebar. If the bookmarks bar is open when you exit Firefox (Firefox button > exit or file > exit), it should be open when you restart Firefox.

    • You can also use the following to open or close the bookmarks bar

      • Press ALT or F10 to temporarily show the Menu bar, click View > sidebar > bookmarks to check/uncheck it (checked = displayed; United Nations-checked = not displayed
      • Hold down the ALT key while pressing the VEB keyboard letters

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • 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

  • I can add a column to an existing table with the data.

    Hello

    I'm working on
    The Version of database: Oracle 9i

    I can add a column to an existing table that already has data with below given command.

    ALTER TABLE table_name
    ADD the definition of the column_name column;

    Kind regards
    John

    Add to that:

    If your new column is NOT "null", you need the task in 3 steps:

    1. Add the column without a NOT NULL constraint
    2. the default value of the new column added.
    3. Add the NOT NULL constraint in the new column.

    concerning
    AJ

  • Need to add a column with a default value

    I need to add a column of type char (1) to a table and there should be a value default of'm '

    I want to check first if this column already exists in this table.
    If so, I still want to check if the default is am'

    How can I do this?

    I was able to all_tab_columns to query for the presence of column with the type of data and all, but not able to do the second part.

    Thanks in advance.

    The DATA_DEFAULT field in dba_tab_columns stores information.

  • 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

  • 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

  • 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

  • Can I add a column 'To' in the message lists?

    Looking at items, I want to add a column 'To' in the list of messages, so I can see that they have been sent to, but I don't see that option anywhere. Is this possible?

    Click with the right button on the headers, or click on the little thing on the end.

  • Classic report - add the column "select box"?

    I have a classic report and you want to add a column with a check box so that the user can select several lines and perform an action on all of the lines (delete selected, for example).  Looks like it should be easy and maybe integrated features, but I don't find it.  Is there a standard way to do this?

    Steve

    APEX 5.0

    Hello

    to add a box to your classic report using apex_item.checkbox like this API function:

    select
        APEX_ITEM.CHECKBOX(p_idx=>1, p_value=>DEPTNO)  as select_dept,
        DEPTNO as DEPTNO,
        DNAME as DNAME,
        LOC as LOC
    from DEPT
    

    You can access the values checked (for example in a process page)

    declare
    v_deleted_depts number := 0;
    begin
    FOR i in 1..APEX_APPLICATION.G_F01.count
    LOOP
      v_deleted_depts := v_deleted_depts + 1;
      delete from dept where deptno = APEX_APPLICATION.G_F01(i);
    END LOOP;
    :P1_DEPTCOUNT := v_deleted_depts;
    end;
    

    P1_DEPTCOUNT (hidden) is just for later interaction with this procedure - for example, you want to present your users with a message of success and error custom as "Deleted & P1_DEPTCOUNT. departments. »

    Maybe you would like to add an option to check all checkboxes at once. If so, read this blogpost Blog of Carl Backstrom: September 2007.

    Kind regards

    Pavel

    Edit: don't forget to toggle the leak key for special characters not your column "checkbox.

  • 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.

  • Is that we can add a column to the existing index

    Hello

    I did some research but I just want to get some clarification

    I have an index create index n1 on emp (comm);

    now I want to add a sal column in this index n1, an option is droping and create the index, can we just add a column with falls, more (regarding my review and research, we can not do, but just confirm with you)

    If we are unable to add it, I want to know the reason behind it, why we can not do?


    Thank you
    Sunil Noothi

    The reason why you can't just add a column to an index has to do with the nature of a Btree index. A Btree index is structured in a very special way, so that all the index entries appear in the order when the index is read. Essentially, all indexes are unique indexes. Those who are not declared unique add ID to the key in order to get a unique sort order.

    If you just add another column to the index, there is no guarantee (and in fact, it would be extremely unlikey) that the new column would sort in exactly in the same way as the old column more the rowid. So, to add a column to the index, the entire structure should be demolished to maintain good order sorted, which would be at least the same amount of work as a creation of the index of zero and probably more work.

    John

  • Can I add dummy columns in OBIEE10g?

    Hello

    I have a situation where I have to add three columns that are not available in the repository. Can I add in OBIEE 10g?

    Given that regulatory reports, it follows a specific structure, in which I have not the columns are not available in RPD., I need to show them the empty values throughout the report.

    Pls help me.

    Thank you
    Pavan

    Hi Pavan,

    Yes, you can add dummy columns which are not available in the .rpd. You add any column of the report and change its function to reflect that the static value as the fx could be "NA".

    I hope this helps.

    Thank you
    Diakité

  • Add a column without reference

    I would like to know how to add a column to tabular presentation without reference. I built a report and has been able to do a group in my source code. The tabular presentation is not allowing me to do the same thing. I get an error:

    ORA-01446: cannot select ROWID, or sample, a view with DISTINCT, GROUP BY, etc.

    my code is:

    Select
    'REF_ACTIVITY_TYPE '. "" ACTIVITY_TYPE_NAME "as"STAFF_TS_ACTIVITY_ID. "
    'WORK_ITEM '. "" WR_NUM "as"STAFF_TS_WR_ID. "
    'STAFF_TS_DETAILS '. "" STAFF_TS_MON "as"STAFF_TS_MON. "
    'STAFF_TS_DETAILS '. "" STAFF_TS_TUE "as"STAFF_TS_TUE. "
    'STAFF_TS_DETAILS '. "" STAFF_TS_WED "as"STAFF_TS_WED. "
    'STAFF_TS_DETAILS '. "" STAFF_TS_THU "as"STAFF_TS_THU. "
    'STAFF_TS_DETAILS '. "" STAFF_TS_FRI "as"STAFF_TS_FRI. "
    'STAFF_TS_DETAILS '. "" STAFF_TS_SAT "as"STAFF_TS_SAT. "
    'STAFF_TS_DETAILS '. "" STAFF_TS_SUN "as"STAFF_TS_SUN. "
    'STAFF_TS_DETAILS '. "" STAFF_TS_REF_ID "as"STAFF_TS_REF_ID. "
    'STAFF_TS_DETAILS '. "" STAFF_TS_DETAILS_ID "as"STAFF_TS_DETAILS_ID. "
    SUM ('STAFF_TS_MON' 'STAFF_TS_TUE' 'STAFF_TS_WED' + 'STAFF_TS_THU' + 'STAFF_TS_FRI' + 'STAFF_TS_SAT' + 'STAFF_TS_SUN') AS 'TOTAL '.

    Of
    "STAFF_TS_DETAILS,"
    "WORK_ITEM,"
    "STAFF_TS_SUMMARY,"
    "PLAN_ACTIVITY,"
    'REF_ACTIVITY_TYPE '.
    where
    'STAFF_TS_DETAILS '. "" STAFF_TS_WR_ID "="WORK_ITEM. " "" WR_ID "and
    'STAFF_TS_DETAILS '. "" STAFF_TS_REF_ID "="STAFF_TS_SUMMARY. " "" STAFF_TS_SUMMARY_ID "and
    'STAFF_TS_DETAILS '. "" STAFF_TS_ACTIVITY_ID "="PLAN_ACTIVITY. " "" PLAN_ACTIVITY_ID "and
    'PLAN_ACTIVITY '. "" ACTIVITY_TYPE_ID "="REF_ACTIVITY_TYPE. " "" ACTIVITY_TYPE_ID "and
    'STAFF_TS_SUMMARY '. "" STAFF_TS_SUMMARY_ID "=: P31_HIDDEN_SUMMARY_ID
    GROUP OF 'STAFF_TS_MON', 'STAFF_TS_TUE', 'STAFF_TS_WED', 'STAFF_TS_THU', 'STAFF_TS_FRI', 'STAFF_TS_SAT', 'STAFF_TS_SUN', 'ACTIVITY_TYPE_NAME', 'WR_NUM', 'STAFF_TS_REF_ID', 'STAFF_TS_DETAILS_ID '.


    Can someone share some of their knowledge with me please.

    Ryan

    I think that - which means I'm not sure it's the right way to do it, but - if no one answers, you can try this - that the reason is the fact that the Apex created postings on items in table form. Try to remove these validations of the element, and then apply the changes to your query.

    If it turns out to be OK, recreate validations (PL/SQL) by yourself, if necessary.

Maybe you are looking for