Functions & Aggregations in OBIEE

Report - We have detail level and summary level
In detail level, we use functions to populate data Ex .. Function_name(Product_id, Date, Queue) as my input parameter. this function runs for every product_id
At summary levelw
1) how do we use the same function in the summary level which aggregarate on column Region or Director and not on product level
2) on the same column where my function is implemented at detail level, how can i aggregate without using any function ??
Please provide inputs or work arounds
Thanks

OBIEE doesn't have the CDF functionality just yet but it would be a welcome change for sure in future. Evaluate and connections to other apps seems to be the only way as of right now. If you do find a way to expand the list of functions though, I'd be all ears.

Similar Messages

  • Help converting a Microsoft RS function to an OBIEE function.

    Hi All,
    I am using OBIEE 11.1.1.6.5 and I have to transform the following Reporting Services function into an OBIEE function :
    =IIf(isDate(Fields!QMIN_LAST_DATE.Value), DateDiff("D",Fields!QMIN_LAST_DATE.Value,Parameters!PDate.Value), "-")
    "QMIN_LAST_DATE" being the column in my database used in my report.
    As I have never used Reporting Services and not that good at OBIEE, could someone help me ?
    Many thanks !

    Hi All,
    I am using OBIEE 11.1.1.6.5 and I have to transform the following Reporting Services function into an OBIEE function :
    =IIf(isDate(Fields!QMIN_LAST_DATE.Value), DateDiff("D",Fields!QMIN_LAST_DATE.Value,Parameters!PDate.Value), "-")
    "QMIN_LAST_DATE" being the column in my database used in my report.
    As I have never used Reporting Services and not that good at OBIEE, could someone help me ?
    Many thanks !

  • Aggregation in OBIEE

    I have scenario, where Time dimension has levels 'Year' ---> 'Quarter' ----> 'Month' and fact has a measure 'Begin balance'. This is a balance at the starting of Month. When we look at this measure at 'Quarter' level it should values corresponding to first Month in the Quarter. Can you please let me know which aggregation function need to be used in this case? Will 'First' work fine.

    Create a column(QuarterlyBeginBalance) in RPD which gives you only the first month's balance as that particular quarter's balance.
    As it was mentioned you have a hierarchy down to month, i presume you have fact table grain at month level.
    Thus, beginbalance column for every row is assumed to be the beginning balance for that month.
    Now withing the RPD, create a column CASE WHEN Quarter IN (1,2,3,4) AND Month IN (1,4,7,10) THEN Amount ELSE 0 END -- same as kishore's formula but in RPD.
    Also is the "First" function your native database function. I don't see it in OBIEE 101341.
    -bifacts
    http://www.obinotes.com

  • TODATE and AGO function errors in OBIEE

    I have aggregated time dimension. The time calendar comprises of the following structure with a physical table for each level in the Physical Layer -
    Year -> Half Year -> Quarter -> Month -> Week -> Day
    These tables form the calendar. The RPD works fine until I use the TODATE and AGO based fields in the query.
    When I use the AGO and the TODATE time series function to generate the YTD and PY YTD calculations in the Business Modelling Layer. The system gives the following error on Answers -
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22045] AGO function is used on a time dimension which is logically snowflaked. (HY000)
    SQL Issued: SELECT "- Retail Calendar"."Year Identifier" saw_0, "- Sales"."Gallons Sold" saw_1, "- Sales"."Profit Amount" saw_2, "- Sales"."Sales Quantity" saw_3, "- Sales"."Retail Sales Amount" saw_4, "- Sales"."Licensee Sales Amount" saw_5, "- Sales"."% Retail Sales Amount" saw_6, "- Sales"."% Licensee Sales Amount" saw_7, "- Sales"."Store Average Profit" saw_8, "- Sales"."Sales Amount - Last Year" saw_9 FROM "Reporting Objects" ORDER BY saw_0
    Let me know what I am doing incorrect here?
    I have checked all the joins to see if the time calendar has been incorrectly joined, but I can't find anything. Please help.

    Below are the physical tables involved -
    Year - TIME_YEAR_DM
    Half Year - TIME_HALF_DM
    Quarter - TIME_QTR_DM
    Month - TIME_MTH_DM
    Week - TIME_WK_DM
    Day - TIME_DAY_DM
    Each of these tables has an Identifier key (for example, YR_IDNT, HALF_IDNT, QTR_IDNT, etc.) that uniquely identifies the rows. I am using these IDNT fields as my hierarchical keys.

  • Based on Dimension Aggregation method - OBIEE 11G

    Hi,
    I have a fact table with one measure value and 3 dimensions (Time, Issue, status). Fact table is loaded monthly data for different issues and with status and a corresponding value.
    I want my report to show always issues that is latest of that period and then status of the same.
    Lets say:
    Fact table has data like this:
    31/Jan/2011 - Issue1 - Open - 10
    28/Feb/2011 - Issue1 - WIP - 20
    31/Mar/2011 - Issue1 - WIP - 30
    30/Apr/2011 - Issue1 -WIP - 40
    31/May/2011 - Issue1 -Closed - 50
    31/May/2011 - Issue2 -Open - 60
    31/May/2011 - Issue3 - Open - 20
    Now I want to see the report by status and value and it should show me the latest of that time period.
    For Quarter1 :
    WIP - 30
    For Quarter2:
    Open - 80
    Closed - 50
    If I take Year then it should show me :
    2011 - Open - 80
    2011 - Closed - 50
    I tried using aggregation "Based on dimension" option in BMM layer and put Others - Sum() and LAST against time dimension.
    But in that case it is giving me the results by status what is latest for the time period. So it is ding sum by other dimension first and then applying LAST method.
    In that case result of Quarter -1 will be :
    Open - 10
    WIP - 30
    If I can change the order of aggregation method like first apply LAST method and then do sum then I think desired result will come. But I am not able to change the order.
    Is there any other of doing this solution?
    Any help is highly appreciated.
    Thanks

    Hi,
    There will be multiple records for an entire month as there are many issues. For a particular Issue it will be one with one particular status for a particular month.
    The join is based on the date colum of fact table and the dimension table.
    Regards,
    SS

  • MIN aggregation in OBIEE

    CONTRACT_NUM
    INVOICE DATE
    INVOICE AMOUNT
    001
    3/6/12
    504.75
    4/22/13
    504.75
    022
    6/19/13
    571.98
    7/1/13
    571.98
    013
    8/5/13
    571.98
    I am having an issue with a report similar to the tabular one above. I am trying to get the report to look like the one below:
    CONTRACT_NUM
    INVOICE DATE
    INVOICE AMOUNT
    001
    3/6/12
    504.75
    022
    6/19/13
    571.98
    013
    8/5/13
    571.98
    We use OBIEE 10g and in the Invoice date (fx) I tried putting in MIN( INVOICE DATE BY CONTRACT_NUM)  and it gives the correct Invoice dates, but it doubles the invoice amount for Contract #s 001 and 022. Contract 001 was cancelled and was not reissued to the vendor. Contract 022 was cancelled on 7/1/13 and reissued under new terms to the vendor on 8/5/13. To cancel a contract we write a new invoice that counters the original invoice hence the two invoice dates for contracts 001 and 022.
    The users are requiring a report that ONLY shows the original invoice date and amount.
    Any help would be greatly appreciated,
    Thank you.

    Can you send bi generated query for my suggestion?
    It would be nice follow-up on same post instead of opening new one... that would be like YOU are ignoring all who ever responded to that post.. and that would result ignoring YOU to respond and your post with no suggestions
    have fun

  • Issues with integrating Java script functions in OBIEE 11G

    Hello experts..
    I am trying to integrate some Javascript functions in my OBIEE 11G Dashboard..
    I have modified the original common.js file and renamed it as insight_common.js in the following directory (backed up the original file of course)
    OBIEE 11G Folder/user_projects/domains/bifoundation_domain/servers/bi_server1/tmp/_WL_user/analytics_11.1.1/7dezjl/war/res/b_mozilla/insight_common.js
    In my dashboard, I have a dashboard object as text component where I have checked 'Contains HTML Markup'. I have written the following code:
    hello
    <script src="/res/b_mozilla/insight_common.js" type="text/javascript"></script>
    <script type="text/javascript">
    sayHi();
    </script>
    However, when I launch the dashboard, it is not working.
    In the Google Chrome browser as I inspected the element to investigate the reason, I am getting the following error under 'console'
    Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/res/b_mozilla/insight_common.js
    Uncaught ReferenceError: sayHi is not defined saw.dll:611
    It seems that OBIEE is not recognizing the new file that I made..
    Is there a way around this?
    Thanks

    Srini
    I don't have backgrounds in coding, so a lot of what I wrote came from my own researching...
    Now I have tried your latest suggestions again as the below:
    1.<script type="text/javascript" src="res/b_mozilla/insight_common.js">
    sayHi();
    </script>
    and
    2.
    <script type="text/javascript" src="res/test.js"></script> ----- in my case: <script type="text/javascript" src="res/b_mozilla/is_common,js"></script>
    Now both codes this time do not yield any outputs when launching the dashboard. The section is blank and the preview of the Text section in the dashboard is blank as well..
    So, are you sure these are all the steps I need to take to call javascript function in OBIEE?
    Do I need to define anything in weblogic or other places?
    I hope I am not missing any steps..
    Thanks and let me know..

  • Leaset() and Greatest function in OBIEE???

    Do Leaset() and Greatest function exists in OBIEE which is present in SQL ??
    if yes what is the syntax for this???

    Hi,
    I think EVALUATE function might help you
    http://gerardnico.com/wiki/dat/obiee/presentation_service/obiee_period_to_period_lag_lead_function
    http://obiee101.blogspot.com/2007/12/obiee-evaluate-function.html
    Regards
    Monika

  • YTD, MTD, YAGO, Function (Time-series Functions TODATE, AGO) Like OBIEE

    Dear BO Gurus,
    I am a newbie to business object. I would like to ask are there any ready made time series functions which can be used in the BO Semantic layer (universe).
    Like Year to Date, Year Ago. Functions like TODATE and AGO functions found in OBIEE semantic layer (siebel analytics). It was just simple there, I had to use the function on the semantic layer and BI server would raise the query to get the answer.
    The syntax was
    Todate(measure, time_dim_attribute)
    Ago(measure, Time_Dim_Attribute, period)
    Thanks & Regards
    Ishaq

    Dear Gurus,
    There is no DB function in oracle to do this (AGO/TODATE).
    OBIEE issues time-series queries, in the form of AGO and TODATE. AGO gives you, for example, the value of sales one month ago or one quarter ago, whilst TODATE gives you the total of sales month-to-date, or quarter-to-date, or year-to-date. Both of these time-series functions rely on the existence of a time dimension in your business model and mapping layer, with the period you can refer to in the AGO and TODATE functions being determined by what levels you have in this time dimension.
    This eliminates the need to create and store complex time-based
    reporting tables.
    I would only like to know does the universe designer has this sort of functionality which is present in OBIEE semantic layer. Or I need to create and store time-based reporting tables.
    The question can best be answered by some-one has worked on both the BI platforms (OBIEE and BO).
    Thanks & Regards
    Ishaq

  • Drill up functionality in obiee10g and 11g

    Hi,
    Is Drill up functionality there in obiee?If so can any one tell me how to implement this?

    Hi,
    OBIEE 10g:
    BI doesn't support 'DRILL UP' as of the current version.
    There is a note on the web that, these are supported in the upcoming OBIEE 11g
    OBIEE 11g:
    Drill up and down
    Refer above thread.
    Re: Drill Up in OBIEE -- you need workround here.
    Hope this help's
    Thanks,
    Satya

  • Best practices on using EVALUATE functions

    hi, experts,
    I wanna know what is the best practices on using EVALUATE functions on obiee (calling oracle user defined functions)
    I found that if I use evaluate functions in Answers,
    obiee will construct a sql behind and then execute.
    sometimes, obiee contructs some unexpected sqls, and returns errors.
    so, is it better to use EVALUATE functions in logical columns ?
    thanks

    EVALUATE('DB_Function(%1)' as returntype, {Comma separated Expression})
    even when used in Logical columns, its gonna fire the same sql.

  • Rolling months - Time series function

    Hi,
    I am new to OBIEE and this forum, and wondering someone could guide me through this requirement.
    I have a requirement that User needs to see inventory for rolling past 13 months, and should display inventory numbers(snapshot) for the first day of the month.
    Date     Inventory $
    1-Jan-12     46652
    1-Feb-12     25145
    1-Mar-12     78542
    1-Apr-12     45215
    1-May-12     24156
    1-Jun-12     98541
    1-Jul-12     21478
    1-Aug-12     25144
    1-Sep-12     26545
    1-Oct-12     48855
    1-Nov-12     45698
    1-Dec-12     12546
    1-Jan-13     26586
    How can I get past rolling 13 months in OBIEE? I have a variable created for "Rolling 13 months" and "First Day of month", but I guess they are not working when combined. Please advise.
    Thanks,
    P

    If I understand correctly, I'd put a filter on the Date column using the Timestampadd function available in OBIEE. Something like:
    "Table"."Date">= Timestampadd(SQL_TSI_MONTH, -13, MONTH("Table"."Date")
    Let me know if this is not what you were looking for.
    Please award points if helpful/correct.

  • AGO function problem 10.1.3.4

    Hi,
    Anyone have any suggestions on this please???
    Still hoping for suggestions from anyone who has had similar problem with AGO function yielding strange results at certain levels of hierarchy??
    I have a facts folder with both AGO and 'regular' columns of data.
    I create a simple query with filters on period name and expense type.
    When I add 'regular' columns (default aggregate SUM) - it works okay.
    I then remove all 'regular' facts columns.
    When I add AGO based columns - it works fine.
    When I try any combination of AGO and 'regular' suddenly a lot of my data disappears.
    I have tried experimenting with report based totals off and setting the function aggregation to SUM for the AGO columns, but nothing works.
    i.e. AGO is pointing at previous period, so I have Yr, Qtr, Period in my time dimension and the AGO is linked to Period level (like a calendar month, but financial) and the AGO is -1.
    Filter is on period name - so for example "PERIOD NAME" is equal to / is in 'NOV-11'
    Any suggestions please??
    thanks,
    Robert.
    Edited by: Robert Angel on 08-Dec-2011 06:02 to clarify ago usage
    Further information; -
    I have just discovered that this strange behaviour only manifests when the 2nd segment of our five segment chart of accounts structure is present.
    I have checked the properties of this field and can see nothing strange, when compared to its (working) peers.
    Could it be a problem related to the dimension hierarchy that is associated with this chart of accounts dimension>??
    thanks for your input,
    Robert.
    Edited by: Robert Angel on 08-Dec-2011 07:30 additional detail
    Edited by: Robert Angel on 12-Dec-2011 07:33
    Edited by: Robert Angel on 19-Dec-2011 08:07

    To explain the structure first; -
    Chart of Accounts Dimension
    Trust Id
    Cost Centre
    Expense Type
    Sub Expense Type
    External Organisation
    Each level of the hierarchy is from the same phyical table 'Chart of Accounts'. The dimension references the underlying field as the Key at each level.
    Financial Periods Dimension
    Year
    Quarter
    Period
    Again all are from the same physical table, again all use the underlying field as the key at each level.
    FACTS table has; -
    Actual in Month, Budget In Month, Month Ago Actual in Month
    Working scenario ; -
    Add; -
    Cost Centre, Actual in Month, Budget In Month, Month Ago Actual in Month
    Filter on period_name = 'NOV-11'
    Cost Centre in ('801040','801041')
    results; - (works fine!)
    Cost Centre, Actual in Month, Budget In Month, Month Ago Actual in Month
    801040                 50000          65000                    55000
    801041                 15000          18000                    19000To the above scenario I can add any of the other Chart of accounts segments and it works.
    When I add Expense Type I get
    Cost Centre,   Expense Type, Actual in Month, Budget In Month, Month Ago Actual in Month
    801040                3001                    50000          65000                   55000i.e. I still get results, but less cost centres than I had when only cost centre was included.... all other things being equal??!!
    I can workaround this by pulling my concatenated version of all codes to get the full chart of account 'string' and then use substring to pull expense type only out of it, but this is less than ideal to suggest to a user community when it should work as is...
    Anyone seen anything like this before, can give me anything to investigate that might be making the difference??
    Edited by: Robert Angel on 13-Dec-2011 02:20
    Edited by: Robert Angel on 14-Dec-2011 08:28

  • TODATE Function used on a dimension which is logically snowflaked.

    Guys,
    PLease help me to resolve the below error.Can anone explain why do we get this error and how to resolve it?
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 171039483. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22045] TODATE function is used on a time dimension which is logically snowflaked. (HY000)
    SQL Issued: SELECT "Time"."Fiscal Quarter" saw_0, "Facts - Budget"."Total Operating Expenses" saw_1, "Facts - Actuals"."Total Operating Expenses" saw_2, "Facts - Budget"."Total Operating Expenses"-"Facts - Actuals"."Total Operating Expenses" saw_3, "Facts - Budget"."Total Operating Expenses YTD" saw_4, "Facts - Actuals"."Total Operating Expenses YTD" saw_5, "Facts - Budget"."Total Operating Expenses YTD"-"Facts - Actuals"."Total Operating Expenses YTD" saw_6, AGGREGATE(saw_1 BY ), AGGREGATE(saw_2 BY ), AGGREGATE(saw_3 BY ), AGGREGATE(saw_6 BY ) FROM "Financials - GL Budget and Expenses" WHERE ((Time."Fiscal Quarter" <= VALUEOF(NQ_SESSION."CURRENT_FSCL_QUARTER")) AND (Time."Fiscal Quarter" > VALUEOF(NQ_SESSION."FSCL_QTR_YEAR_AGO"))) AND (("WFS Segments".ORG_NUM = VALUEOF(NQ_SESSION."OU_ORG"))) AND ("GL Segment1"."Hierarchy ID" = 'TTTTT') AND (Time.Status = 'Closed') ORDER BY saw_0
    Thanks in advance...

    AGO and TODATE would only work with 1 physical time table..
    Re: TODATE and AGO function errors in OBIEE
    hope this link may helps you.
    Thanks,
    Chinna

  • Rtrim in OBIEE

    how to handle rtrim in OBIEE ? Do we have similar function available in OBIEE ?
    Thanks in Advance

    Check this Re: How to trim spaces from string in BMM layer?

Maybe you are looking for

  • How do I separate my contacts from my husband's list of contacts?

    I have a Galaxy S5 and my husband has an Apple iPhone 5S - how do I separate the contact lists - we DO ONT want to share the same ones but I cannot figure out how to separate them???

  • Can I open a CS2 file in CS4 without any problems?

    I need to send a file to someone with CS4, and I'm still running CS2. I'd like to know if they'll have any trouble before I send it.

  • I removed some files ... and now ...

    I have had a few adventures with my Mac during the last year. Basically - do it like in the textbook! I happened to want to change my Main account, because of much "garbage" lieing around. So, after a few nice tips, I just did that. Mail, Files and w

  • Why is iDVD ejecting DVD on "burn" part?

    I have iDVD and checked it's version 7.1.2 and updated. I have tried doing this 2years ago and one video worked, but another didn't. I didn't bother to know why. This week I tried to burn a video to a DVD and ejects the CD on the step when it says it

  • File Lock : FileOutputStream

    Hi, I have a program like this, where i acquire a lock on the existing file . But when i do this it creates the file which i specified instead of just reading it or acquiring lock on it. So the contents of that file will be erased. How can i get away