AGO function in  11g

Hi,
Can any one have idea about AGO function in OBIEE 11g in Answers area?
Please share the links regarding this topic.
Thanks
Arvnd

Yes, it will work. Just double click the Time level (say year/month/week), mark it as a chronological key (on keys tab). Use that in your AGO function

Similar Messages

  • AGO function is not returning value in OBIEE 11g

    I have 2 tables FIN_MASTER AND FIN_TRANS. 
    FIN_MASTER  is having the following fields org_code, type_code, vr_no, vr_Date, pay_to .FIN_TRANS is having the columns org_code, type_code, vr_no, acct_code. debit, credit.
    PK of FIN_MASTER is org_code, type_code, vr_no
    PK of FIN_TRANS is org_code, type_code, vr_no, acct_code
    I have imported these two tables in to physical layer and created join between these two tables on the following keys. org_code, type_code, vr_no. Then i dragged these two to BMM layer. Now i created 3 new logical columns in DIM_FIN_MASTER as year, quarter, month. These 3 columns are created using the functions year(vr_date), month(vr_date), quarter_of_year(vr_date). Then i created a dimension heirarchy called TIME( structure type is TIME) from this DIM_FIN_MASTER. and set chronological key on month level. Then I applied the AGO function on debit column with month level. After that, repository is uploaded and BI server is restarted. Now amount is not displaying in AGO function column in analytics. That column is appearing as empty. 
    Please advise me.

    Here is the dirty fix, I'm heading off to sleep.
    If the function CurrentAdId doesn't return a number, then
    this will ensure it returns 0 (prevents your error, may not display
    an ad):
    <CFFUNCTION
    NAME="CurrentAdId"
    ACCESS="Private"
    RETURNTYPE="numeric"
    HINT="For internal use. Returns the Id of the current ad in
    rotation.">
    <!--- Return the adId from the current row of the
    GetAdIds query --->
    <cfset var returnVal = ListGetAt(THIS.AdList,
    THIS.CurrentListPos)>
    <cfif NOT IsNumeric(returnVal)>
    <cfset returnVal = 0>
    </cfif>
    <CFRETURN returnVal>
    </CFFUNCTION>

  • OBIEE 11g Ago Function

    Hi All,
    I am using ago function in Answers it works fine
    But
    when observing the data, data is mismatched at particular Product category, why because two category s (A,B)   has same subcategory name (Basic)
    CAT       Sub Cat
    A  ------        Basic
    A  ------       Value Add
    A  ------       High
    B -------     Basic
    B ------       low
    B ------     medium
    My report has five columns like CM -1 , CM-2,CM-3,CM-4,CM-5 ,
    when i was selecting cat A and subcat is Basic, Data as below ....
    CM-1         CM-2     CM-3     CM -4    CM -5
    A basic   A basic  B basic B basic   A basic
    if sub cat name is different no issue
    Please help me.
    Regards
    Rm

    You can create a compound key of Cat + SubCat (concatenation in a logical column is a quick win) which will render the SubCats unique and assign that as the logical level key:
    SubCat:
    A-Basic
    A-Value Add
    A-High
    B-Basic

  • Does ago function works at day level in obiee 11g

    Hi,
    I want to know does AGO function works well at day level in Obiee 11.1.1.6 .
    Edited by: user12635494 on May 8, 2012 2:58 AM

    Yes, it will work. Just double click the Time level (say year/month/week), mark it as a chronological key (on keys tab). Use that in your AGO function

  • Does OBIEE 11.1.1.7 support AGO function at Week level

    Hi,
    I have a time dimension with Year,Quarter,Month,Week and Day Levels.
    Year - 2013,2012...
    Quarter- Q1,Q2,Q3,Q4
    Month - 1,2,3..12
    Week - 1,2,...52
    Day - Date_id (20130101...(YYYYMMDD).
    My Keys are : Year Level(Year_Number)
    Quarter Level (Year+Quarter Number)
    Month Level(Year+Month number)
    Week Level(Year+Week number)
    Day - Date_id(also defined as chronological keys)
    I am creating a AGO(Measure,Level,1) in answers for Year and Week Level and they don't render correct results.
    I started building the hierarchy with only Year and Day levels..verified the results - Looks Ok.
    Similar fashion proceeded with Year,Quarter,Month and Day - Looks OK.
    When I introduce Week level - All the AGO values are incorrect.
    Any help on this is really appreciated.
    Regards,
    Swetha

    Thanks Srini Veeravalli for your reply.
    Yes I have verified it thoroughly.I have implemented this before on 10G for other customers and I don't feel that something is wrong with it .
    I found this link on AGO Function in OBIEE 11G:
    =======================================
    https://forums.oracle.com/message/9323083
    Does a month have always the same number of week and begin with the first day of a week ?
    If it's not the case, your dimension is not good when you make a report on the week grain for a year ago for instance.
    Here a check list:
    http://gerardnico.com/wiki/dat/obiee/ago_todate_configuration#timecalender_dimension_design_verification
    ============================================
    OBIEE 10G/11G - How to set up the time dimension (for time series functions Ago, Todate, ...) ? | GerardNico.com …
    In the above post also, Time dimension configuration for AGO/TODate ( Time series) are set up with 4 levels: Year,Quarter,Month and Day.
    So Just needed a confirmation  if week level shouldn't be in the hierarchy in 11.1.1.7.
    Regards,
    Swetha

  • Ago Function

    Hi all
    I upgraded from 10g to 11g and now my Ago function seems to not be working but i have no idea why.
    The data is basically coming from a table like so:
    AcctNbr EffDate Balance
    12345 01/01/2010 $200
    12345 01/02/2010 $205
    12345 01/01/2011 $206
    12345 01/02/2011 $207
    So you can see that I have a balance amount for each day of the year.
    So What I am trying to do is get the Year Ago amount.
    I have this table joined to a basic time dimension table. Year > Quarter > Month > Week > Day.
    In 10g I created a logical column using this and it worked fine:
    AGO("LDW"."FA_ACCTBAL"."NOTEBAL", "LDW"."DimTime"."Year", 1)
    In 11g I get no results. The log file says it my YAGO Measure is being converted to a null. (converted to NULL because its grain is below query's grain.)
    SELECT s_0, s_1, s_2, s_3, s_4, s_5, s_6 FROM (
    SELECT
    0 s_0,
    "LDW"."FA_ACCTBAL"."EFFDATE" s_1,
    CASE WHEN "LDW"."FA_ACCTBAL"."MAJOR" ='CK' THEN 'Chequing'
    WHEN "FA_ACCTBAL"."MAJOR" ='TD' THEN 'Term Deposit'
    WHEN "FA_ACCTBAL"."MAJOR" ='SAV' THEN 'Savings'
    WHEN "FA_ACCTBAL"."MAJOR" ='MTG' THEN 'Mortgage'
    WHEN "FA_ACCTBAL"."MAJOR" ='CNS' THEN 'Consumer'
    WHEN "FA_ACCTBAL"."MAJOR" ='CML' THEN 'Commercial' END s_2,
    "LDW"."FA_ACCTBAL"."% Chg YAGO Notebal" s_3,
    "LDW"."FA_ACCTBAL"."Chg YAGO Notebal" s_4,
    "LDW"."FA_ACCTBAL"."NOTEBAL" s_5,
    "LDW"."FA_ACCTBAL"."YAGO Notebal" s_6
    FROM "LDW"
    WHERE
    ((FA_ACCTBAL.MAJOR IN ('CML', 'CNS', 'MTG')) AND (((FA_ACCTBAL.EFFDATE IN (current_date-1)) OR (FA_ACCTBAL.EFFDATE IN (current_date-366)))))
    ) djm ORDER BY 1, 3 ASC NULLS LAST
    [2011-03-23T21:51:55.000+00:00] [OracleBIServerComponent] [TRACE:7] [USER-23] [] [ecid: 0000Iv^gxcn99hWjLxMMOA1DX^y9000GDt] [tid: 1b6c] [requestid: 5df40012] [sessionid: 5df40000] [username: Administrator] -------------------- General Query Info: [[
    [2011-03-23T21:51:55.000+00:00] [OracleBIServerComponent] [TRACE:7] [USER-52] [] [ecid: 0000Iv^gxcn99hWjLxMMOA1DX^y9000GDt] [tid: 1b6c] [requestid: 5df40012] [sessionid: 5df40000] [username: Administrator] -------------------- Expression 'Ago(NOTEBAL:[DAggr(FA_ACCTBAL.NOTEBAL)], [Level Year], 1)' converted to NULL because its grain is below query's grain.
    [2011-03-23T21:51:55.000+00:00] [OracleBIServerComponent] [TRACE:7] [USER-52] [] [ecid: 0000Iv^gxcn99hWjLxMMOA1DX^y9000GDt] [tid: 1b6c] [requestid: 5df40012] [sessionid: 5df40000] [username: Administrator] -------------------- Expression 'Ago(NOTEBAL:[DAggr(FA_ACCTBAL.NOTEBAL)], [Level Year], 1)' converted to NULL because its grain is below query's grain.
    [2011-03-23T21:51:55.000+00:00] [OracleBIServerComponent] [TRACE:7] [USER-52] [] [ecid: 0000Iv^gxcn99hWjLxMMOA1DX^y9000GDt] [tid: 1b6c] [requestid: 5df40012] [sessionid: 5df40000] [username: Administrator] -------------------- Expression 'Ago(NOTEBAL:[DAggr(FA_ACCTBAL.NOTEBAL)], [Level Year], 1)' converted to NULL because its grain is below query's grain.
    [2011-03-23T21:51:55.000+00:00] [OracleBIServerComponent] [TRACE:7] [USER-52] [] [ecid: 0000Iv^gxcn99hWjLxMMOA1DX^y9000GDt] [tid: 1b6c] [requestid: 5df40012] [sessionid: 5df40000] [username: Administrator] -------------------- Expression 'Ago(NOTEBAL:[DAggr(FA_ACCTBAL.NOTEBAL)], [Level Year], 1)' converted to NULL because its grain is below query's grain.
    [2011-03-23T21:51:55.000+00:00] [OracleBIServerComponent] [TRACE:7] [USER-52] [] [ecid: 0000Iv^gxcn99hWjLxMMOA1DX^y9000GDt] [tid: 1b6c] [requestid: 5df40012] [sessionid: 5df40000] [username: Administrator] -------------------- Expression 'Ago(NOTEBAL:[DAggr(FA_ACCTBAL.NOTEBAL)], [Level Year], 1)' converted to NULL because its grain is below query's grain.
    [2011-03-23T21:51:55.000+00:00] [OracleBIServerComponent] [TRACE:7] [USER-52] [] [ecid: 0000Iv^gxcn99hWjLxMMOA1DX^y9000GDt] [tid: 1b6c] [requestid: 5df40012] [sessionid: 5df40000] [username: Administrator] -------------------- Expression 'Ago(NOTEBAL:[DAggr(FA_ACCTBAL.NOTEBAL)], [Level Year], 1)' converted to NULL because its grain is below query's grain.
    Any idea what has happened here?

    Hi,
    I'm facing the same issue. Did you find a solution for this problem?
    Thx
    Jan

  • Ago function not working properly with time dimension

    Hi all,
    In OBIEE 11g we have the following issue:
    We have a fact which contains transaction's sum for the last day of each month.
    We use ago function like this : ago(<fact.column>,1)When we want to see the result from the time hierarchy the fact with the ago function works properly for quarters and half years but for the months shorter than the previous one can't take the right value /equals to NULL/.
    For example :
    sum for YEAR: 10000
    sum for Half Year 1 : 4000
    sum for Half Year 2 : 6000
    sum for Quarter 1: 1000
    sum for Quarter 2: 3000
    sum for Quarter 3: 2000
    sum for Quarter 4: 4000
    sum for month... - here the ago function is confused with the last day of previous month if it's shorter than itself: For example - for march it cannot take value for end of February ..etc.
    Any ideas?
    Thanks in advance,
    Alexander.

    Hi,
    I faced some issues previously with month, so I used month+year as id instead of month id. Instead of tragging month id 1-12 into your hierarchy, create another column into your table like month+year - 201201, 201202 which creates unique month_year_id and drag this column into month level instead of month_id. So the problem might be solved.
    Regards,
    Anitha.B

  • How can I use AGO function with aggregates

    I use aggregated table and a detailed table
    I have time hierarchy whose lowest level is date. For sales I
    created year-to-year (YTD) comparision with AGO function. It
    works OK.
    BUT, I want to speed it up, so I used aggregates. I created new
    time table grouped by MONTH and corresponding agg_SALES table. I
    created connections and mapped the fields. It works OK for
    normal queries, that means my queries at month level use
    aggregates. BUT when I add YTD measures or YAGO measure in query, it goes to
    then SALES table whose grain is date.
    How can I force BI Server to use AGO function with aggregates?
    I use OBIEE 10.1.3.4
    Thank you
    Ishaq
    (Question originally taken from ITtoolbox and posted by Gorazd)
    SORRY - THE QUESTION IS IN THE WRONG FORUM
    Edited by: ishaq12 on Nov 19, 2008 12:21 PM

    Hi,
    you can not do it in Administration tool but you can set agregation for that field in Answers (fx->Agregation rule->Sum) and effect should be the same. Note that it may not work properly on Oracle 10g as generated SQL is not 100% recognized, on 11g everything is OK (at least in my case).
    Regards,
    Marko
    Edited by: user10449532 on 2008.11.19 06:29

  • Any alternative to ago function

    Hello,
    I am using obiee 11g.Trying to use ago function at quarter level with the date prompts as filter
    instead of year prompt but somehow the data is not matching properly.
    Would like to know if there is any alternative to ago function?
    I just want to calcultate the count(distinct(id)) for current and previous quarter,where the report gets filtered by date fields.
    The report has user column,quarter column and the currrentcount and previous count.
    like
    user1->Q1->10->19
    user1->Q2->20->10
    User3->Q1->11->26
    Any help on this please?
    Thanks

    Hello,
    Thanks for reply.
    Is the grain below quarter level?
    ------> Calc date is below quarter level in the time dimension,Time dimesnion has FS Year(level1)->FS Quarter(level2)->Cal Date and Time key(Time key is the primary key with the combination of cal date and the pk of some other table (level3))
    Does quarter exists as a field in your date dimension?
    --------->Yes Fs Quarter is a field/column in the table and in the dimension
    check if quarter is a chronological key, does your quarter contain year in it(2011-02)?
    -------->In each level i have key defined, also in the FS Quarter i have.
    In the level3 i have both the key defined as key but cal_date as pk.
    Yes, Data of the qtarter is in the form 2012-01.
    Do you have quarter in your report, without date field?
    --------->yes, the report has FS_qtr,count for current qtr,count for previous qtr using ago function
    and the filter used is cal_date>='01-JUN-11'
    facts->
    There is a view in the database which is being created for time dimesnion.
    The view has
    FS_Year , FS_Qtr , Calc_Date ,Cal_month , cal_qtr, TimeKey(PK) , Pk_from someother_table_acting_as_fk.
    Please let me know where i am going wrong?
    One more thing i would like to add if i use the filter as FS_YEAR>=2011 then the counts comes perfectly.Problem is with cal date field.Just not bale to understnd where i am i going wrong?
    Please help
    Thanks
    Edited by: user123 on Feb 10, 2012 11:00 AM

  • Ago function against Essbase

    Hi,
    I'm finding very big problems in using AGO function against a Essbase source (BIEE 11g & EPM 11.1.2).
    Any experiences on that?
    any feedback will be apreciated,
    Regards,
    Daniele

    Hi Peak,
    I'm not able to make it works, differents errors are generated:
    sometimes:
    SQOIMDXGeneratorHyperion.cpp
    others:
    [nQSError: 96002] Essbase Error: Syntax error in input MDX query on line 10 at token '[' (HY000)
    I'm building simple query on these cubes...
    I'll try to describe you better the problems asap...
    But I'm looking if I'm the only finding this issues (and is related to my environment) or if someone else found this kind of problem.
    Regards,
    Daniele

  • Issue in Configuring ACT as functionality obiee 11g

    Dear Expert,
    I had done the below steps in creating ACT as functionality in 11g. I am using MS SQL Server 20005 and had created table called OBIEE_PROXY.
    1. Created system variable called "PROXY"
    2. Created Session initialisation variable (PROXY and PROXY LEVEL) and associated the connection pool
    3. Created customs templates
    4. Configured the instance.xml
    5. Done the setting in the Manage privileges
    6. Restarted the BI services
    I had taken repository rpd to offline and done the above changes .Modified RPD is uploaded through EM and restarted the services. When I login and see the ACT as there is no users appearing in the screen .
    Please advise if I missed any step. Also please advise that should i need to create a user’s in the web logic console which i am trying to pass from MS SQL Server.
    Edited by: 964262 on 11/10/2012 14:38

    Hi ,
    Below is the error i am getting in the nqserver log .
    [2012-10-12T14:25:37.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: cdd7e05bc54bf9a4:-1b0c887b:13a4e5a3825:-8000-00000000000062ea] [tid: 15dc] [nQSError: 16002] Cannot obtain number of columns for the query result. [[
    _[nQSError: 16001] ODBC error state: 37000 code: 102 message: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near '‘'.._
    _[nQSError: 16001] ODBC error state: 37000 code: 8180 message: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.._
    _[nQSError: 13011] Query for Initialization Block 'PROXY_BLOCK' has failed._
    _]]_[2012-10-12T14:25:37.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: cdd7e05bc54bf9a4:-1b0c887b:13a4e5a3825:-8000-00000000000062ea] [tid: 15dc] [nQSError: 13021] Failed to get the value of PROXY session variable.
    [*2012-10-12T14:25:37.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: cdd7e05bc54bf9a4:-1b0c887b:13a4e5a3825:-8000-00000000000062ea] [tid: 15dc] [nQSError: 13021] Failed to get the value of PROXY session variable.*
    *[2012-10-12T14:25:43.000+00:00] [OracleBIServerComponent] [NOTIFICATION:1] [] [] [ecid: cdd7e05bc54bf9a4:-1b0c887b:13a4e5a3825:-8000-00000000000062ef] [tid: 15dc] [nQSError: 13011] Query for Initialization Block 'ExternalAuthenticationProvider' has failed.*
    *[2012-10-12T14:25:43.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: cdd7e05bc54bf9a4:-1b0c887b:13a4e5a3825:-8000-00000000000062ef] [tid: 15dc] [53012] User authentication failure: user3.*
    *[2012-10-12T14:25:43.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: cdd7e05bc54bf9a4:-1b0c887b:13a4e5a3825:-8000-00000000000062ef] [tid: 15dc] [53012] User authentication failure: user3.*
    Please advise .
    thanks in advance

  • AGO function in OBIEE

    Hi,
    I am creating a new logical column on my fact table and would like to use time series function(AGO) to compare trends a month ago. I have a time dimension too.
    I am using this expression defined in the new logical column properties:
    Ago("HCBF"."Workflow Fact"."Total Case Handlers" , "HCBF"."Time"."Month of Year" , 1)
    I get the following error message:
    [nQSError: 27009] Unresolved identifier: "HCBF"."Time"."Month of Year".
    The function expression appears to be fine, month of year is numeric and total case handlers is a count.
    Can anybody help resolve this error message.
    Thanks

    Hi,
    An issue remains with the AGO function in BI Answers, when I try to run a report in answers with the new column created in the fact table I get the following error in the log file:
    Query Status: Query Failed: [nQSError: 22040] To use AGO function, the storage level of the query ('[Time.Dimension Key]') must be a static level.
    I am selecting month name(Filtered on May 2010) and choosing fact measures(total cases, lastmonthcases). lastmonthcases is the new logical column created using AGO function.
    Does this error look familiar, there is a time dimension key in the logical time dimension table but this is not referenced in the hierarchy.
    Thanks

  • AGO function in OBIEE to display weekly sales data of this year vs last yea

    All,
    I would to create an analysis that display this year sales numbers vs last year by weekly
    I was able to do this at month level by specifying the offset value to 12 to the AGO function in repository.
    I am not able to do at week level.
    Can someone please help?
    Thanks

    Check the W_DAY_D or W_WEEK_D for number of weeks per year, validate the year/4 then its leap year then 53
    Use this in ago function at <<Number of Periods>>.
    I think you have to go for 53 based on these tables some times 54.

  • Nested AGO function in OBIEE

    Hi ,
    I am not able to understand the reason behind using Nested AGO functions.
    In one of the logical columns (Sales LastYear LastWeek) the mapping was in the following fashion:
    Ago(Ago("Core"."Fact - Retail Inventory Receipts"."Receipts Retail" , "Core"."Date Retail Fiscal Calendar"."Fiscal Week" , 1) , "Core"."Date Retail Fiscal Calendar"."Fiscal Week" , 52)
    Is it the same as writing a ago function with period of 53?
    Like this:
    Ago("Core"."Fact - Retail Inventory Receipts"."Receipts Retail" , "Core"."Date Retail Fiscal Calendar"."Fiscal Week" , 53)
    Please help me understand.
    Thanks for your help.
    Anand

    Hi Anand,
    This is how I interpret the function:
    Display the fact 'Receipts Retail' for the current fiscal period minus one fiscal week minus 52 fiscal weeks. So basically: Display the fact for the current fiscal period minus 53 fiscal weeks.
    However, since the column is named 'Sales LastYear LastWeek', this definition is a bit tricky. The formula is only true, if the fiscal year consists of 52 fiscal weeks (most of the time this is correct, but you never know!). I would prefer changing the second part of the forumula to Fiscal Year, 1:
    Ago(Ago("Core"."Fact - Retail Inventory Receipts"."Receipts Retail" , "Core"."Date Retail Fiscal Calendar"."Fiscal Week" , 1) , "Core"."Date Retail Fiscal Calendar"."Fiscal Year" , 1)
    This will substract a fiscal week and a fiscal year.
    I hope this helps.
    Regards,
    Marco Siliakus

  • Problem with AGO function in OBIEE

    Hi I am new to OBIEE,
    I am working on Trend Analysis of ETL Mappings,
    I am using AGO Function to get the Previous day Elapse Time of a mapping but while generating the report its behaving in a strange way.
    like
    AGO("BI Performance"."Map Val Fact"."Elapse Time Minutes","BI Performance".ETLStartDim."Day",1) -- Day Ago Elapse time
    AGO("BI Performance"."Map Val Fact"."Elapse Time Minutes","BI Performance".ETLStartDim."Day",2) -- Two Day Ago Elapse time
    For example, in database there is date like
    Date Elapse Time
    2nd June 10 min
    1st June 11 min
    30th may 10 min
    My date in Report should be like
    Date Elapse Time Day Ago Elapse Time Two Day Ago Elapse Time
    2nd June 10 11 10
    But the date coming over here is
    Date Elapse Time Day Ago Elapse Time Two Day Ago Elapse Time
    2nd June 10
    3rd June 10
    4th June 10
    So if any one could help me out of this, it would of great help.
    With Regards
    Chaitanya

    This is posted to the incorrect forum. Please post to an OBIEE forum.

Maybe you are looking for