Error on AGO function

I'm using AGO function to calcuate the Month ago value of the fact. But I get following error:
[nQSError: 14026] Unable to navigate requested expression: Ago(Proforma Usage:[DAggr(Pro Ancillary Usage and Revenue Monthly Fact.Proforma Usage by [ Period.Month Name, Period.Year] )], [Level Month], 1). Please fix the metadata consistency warnings. (HY000)
The Period dimension is joined with the fact at month level. there are no metdata consistency warnings in the repository.
I have another fact in the same Subejct area joining similarly to the dimensions and hte AGO function works fine there. I can not figure what I'm doing wrong that I'm getting this error.

I was abel to fix this issue on my own. I needed to set the Chronological Key for the Time dimension. Once that was set, the error was gone.

Similar Messages

  • Error while using Ago function

    hi all,
    OBI 11.1.1.7.1
    I am unable to view data on result tab. No value returned in Calcutated Attribute. Please Help
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 22040] To use Ago function, the storage level of the query ('[Time Dim.PAY_DT]') must be a static level.Please have your System Administrator look at the log for more details on this error. (HY000)
    Regards,
    Nivedita

    Substr("Fin Account".ASSET_NUM, 1, instr(Fin Account".ASSET_NUM, ':')+1)
    or
    Substr("Fin Account".ASSET_NUM, instr(Fin Account".ASSET_NUM, ':')+1,50)
    i think you should use 3 parameters, did you try that if it would work?
    additionally check what is the default format of your data: go to column properties -> data format; if its text then ok; otherwise you will have to cast the number to char; in such a case the above could be:
    Substr(cast("Fin Account".ASSET_NUM as char(20)), 1, instr(cast(Fin Account".ASSET_NUM as char(20)), ':')+1)
    or
    Substr(cast("Fin Account".ASSET_NUM as char(20)), instr(cast(Fin Account".ASSET_NUM as char(20)), ':')+1,50)
    Edited by: UserMB on Jun 25, 2009 6:17 AM

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

  • Error using time function AGO()

    Hi everyone
    I am trying to make this report using OBIEE 11.1.5 with Essabas as datasource:
    Account     ActualMonth     MonthPreviousYear     PreviousMonth     Actual Year
    I have the time dimension (like in HFM), divided into two dimensions Years (Total -> Years) and Period (Total -> Quarters -> Months).
    I use the AGO() function in the repository (BML) to get PreviousYear and PreviousMonth:
    PreviousYear: AGO("Essbase_1"."Data"."Measure" , " Essbase_1"."Year"."Gen2,Year" ,1)
    PreviousMonth : AGO("Essbase_1"."Data"."Measure" , " Essbase_1"."Period"."Gen4,Period" , 1)
    If I use the columns PreviousMonth or PreviousYear separately they work fine. However using both in the same query, I get an error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 22036] Level in Ago function (Gen2,Year) must be a rollup of (or equivalent to) the measure level (Gen4,Period). (HY000)
    Any idea how to solve this issue?
    Many Thanks in advance
    Mojito

    Look at the following links:
    http://obiee101.blogspot.com/2008/11/obiee-ago-and-todate-series.html
    http://oraclebiee11g.blogspot.com/2011/01/ago-function-in-obiee-11g-answers.html
    hope this helps.

  • OBIEE 11.1.1.7-Ago Function Error-[nQSError: 46008] Internal error: File server\Query\Optimizer\SmartScheduler\PhysicalRequestGenerator\Src\SQOSPMarkMultiTargetSupport.cpp

    Hi All,
    I was performing the steps mentioned in Oracle Tutorial"http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/bi/bi11115/biadmin11g_02/biadmin11g.htm#t10"-BI RPD creation.
    After Using the AGO function data in the Time series metric(Month Ago Revenue) was null always. I updated the DB features in RPD physical layers by selecting support for time series functions.
    After that report started to fail with below error. Please let me know if its a bug and any option to fix it.
    Thanks,
    Sreekanth
    Error
    View Display Error
    Odbc driver returned an error (SQLExecDirectW). 
      Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P 
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 46008] Internal error: File server\Query\Optimizer\SmartScheduler\PhysicalRequestGenerator\Src\SQOSPMarkMultiTargetSupport.cpp, line 1680. (HY000) 
    SQL Issued: SELECT 0 s_0, "Sample Sales"."Time"."Year-L1" s_1, "Sample Sales"."Revenue"."Ago-Year Revenue" s_2, "Sample Sales"."Revenue"."Revenue" s_3 FROM "Sample Sales" FETCH FIRST 65001 ROWS ONLY
      Refresh

    I know that there is no relation between "SampleApp Lite"."D3 Orders (Facts Attributes)"."Order Date", "SampleApp Lite"."D0 Time"."Calendar Date", it's also the same thing in my own RPD.
    But as it's working with the 11.1.1.6.2 BP1 version I don't understand why it's not working with 11.1.1.6.9.
    Implicit fact column is not set on my repository, but I don't have any request with only dimensional column, so if my understanding is correct I don't need to use it. Also, the problem appears during the check of the repository not in answers.
    thanks anyway

  • AGO function error in Pivot Table

    Hi,
    I have a typical time dimension - year, period, week, date. Most of my facts are available at the most detailed level of date however I have some Budget facts that are only available at the week level. When I combine these facts in a report I am having the below problem.
    I use an ago function at the yearweek level ( I needed this so that I can compare week numbers as oppposed to week date ranges which is how the year ago function works - I believe).
    If I have a total on year in my pivot table I get the below error -
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22036] Level in AGO function (YearWeek) must be a rollup of (or equivalent to) the measure level (Year). (HY000)
    Has anyone come across this before ?
    Thanks
    Patricia

    I am getting the following error message, not sure how to get rid of this.
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22036] Level in AGO function (Fiscal Period) must be a rollup of (or equivalent to) the measure level (Fiscal Year). (HY000)
    SQL Issued: SELECT "GL Calendar"."Fiscal Period" saw_0, "Project Manager"."Project Manager Name" saw_1, Project."Project Number" saw_2, Project."Business Area" saw_3, Project."Business Unit" saw_4, Project."Delivery Ownership" saw_5, Project.Programme saw_6, "Fact - Project Cost".Cost saw_7, "Ago Measures"."MAGO Cost" saw_8, "Fact - Project Cost".Cost-"Ago Measures"."MAGO Cost" saw_9, REPORT_SUM(saw_7 BY ), REPORT_SUM(saw_8 BY ), AGGREGATE(saw_9 BY ) FROM "Project - Cost" WHERE ("GL Calendar"."Fiscal Year" = '2011') ORDER BY saw_0, saw_1, saw_2, saw_3, saw_4, saw_5, saw_6

  • Ago function Error

    Hi
    I'm trying to use the 'AGO' function to have The sales of one year ago
    My time dimension is a normal table imported from the database and has one hierarchy:
    Year Level
    --Week Level
    I defined the week date as a chronological key and made a the new calculated column:
    AGO(salesMeasure, DWH_TIME_DIM.WEEKS, 12)
    Then In Aswer I get This Error
    *[NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22040] To use AGO function, the storage level of the query ('[DWH_TIME_D.Dimension Key]') must be a static level. (HY000)*
    Any one knows why???
    Regards

    Naresh
    I don't see any *(use existing columns as source)* In the creation window of the repository variable I only have a default Initializer.
    What I manged to do also is to write this formula in the default initializer : ADD_MONTHS("orcl".."DWH"."DWH_TIME_D"."YEARIW_TIMEDATE" ,-12)and after to use it in a new calculated column with your expression :
    case when times.year=valueof(previousyear) then salescolumn end
    But I had a syntax error I think I can't use Add_months for this.
    Regards

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

  • Certificate issues Active Directory Certificate Services could not process request 3699 due to an error: The revocation function was unable to check revocation because the revocation server was offline. 0x80092013

    Hi,
    We have some problems with our Root CA. I can se a lot of failed requests. with the event id 22: in the logs. The description is: Active Directory Certificate Services could not process request 3686 due to an error: The revocation function was unable to
    check revocation because the revocation server was offline. 0x80092013 (-2146885613).  The request was for CN=xxxxx.ourdomain.com.  Additional information: Error Verifying Request Signature or Signing Certificate
    A couple of months ago we decomissioned one of our old 2003 DCs and it looks like this server might have had something to do with the CA structure but I am not sure whether this was in use or not since I could find the role but I wasn't able to see any existing
    configuration.
    Let's say that this server was previously responsible for the certificates and was the server that should have revoked the old certs, what can I do know to try and correct the problem?
    Thank you for your help
    //Cris

    hello,
    let me recap first:
    you see these errors on a ROOT CA. so it seems like the ROOT CA is also operating as an ISSUING CA. Some clients try to issue a new certificate from the ROOT CA and this fails with your error mentioned.
    do you say that you had a PREVIOUS CA which you decomissioned, and you now have a brand NEW CA, that was built as a clean install? When you decommissioned the PREVIOUS CA, that was your design decision to don't bother with the current certificates that it
    issued and which are still valid, right?
    The error says, that the REQUEST signature cannot be validated. REQUESTs are signed either by itself (self-signed) or if they are renewal requests, they would be signed with the previous certificate which the client tries to renew. The self-signed REQUESTs
    do not contain CRL paths at all.
    So this implies to me as these requests that are failing are renewal requests. Renewal requests would contain CRL paths of the previous certificates that are nearing their expiration.
    As there are many such REQUEST and failures, it probably means that the clients use AUTOENROLLMENT, which tries to renew their current, but shortly expiring, certificates during (by default) their last 6 weeks of lifetime.
    As you decommissioned your PREVIOUS CA, it does not issue CRL anymore and the current certificates cannot be checked for validity.
    Thus, if the renewal tries to renew them by using the NEW CA, your NEW CA cannot validate CRL of the PREVIOUS CA and will not issue new certificates.
    But it would not issue new certificates anyway even if it was able to verify the PREVIOUS CA's CRL, as it seems your NEW CA is completely brand new, without being restored from the PREVIOUS CA's database. Right?
    So simply don't bother :-) As long as it was your design to decommission the PREVIOUS CA without bothering with its already issued certificates.
    The current certificates which autoenrollment tries to renew cannot be checked for validity. They will also slowly expire over the next 6 weeks or so. After that, autoenrollment will ask your NEW CA to issue a brand new certificate without trying to renew.
    Just a clean self-signed REQUEST.
    That will succeed.
    You can also verify this by trying to issue a certificate on an affected machine manually from Certificates MMC.
    ondrej.

  • 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

  • Using text in AGO function

    Hi guys,
    I have a factless fact (indicator and some textual field) that I need to display for previous year.
    I need somehow to use it in AGO function - I'm getting error message that AGO can only accept aggregated measure.
    Any ideas?

    Great tip! I'll try...Mma - nice to see you back in action :-)...Worked like a charm!
    Message was edited by:
    wildmight

  • Internal error in FORM/FUNCTION CKMLKEPH_ROLLUP in position 2 with RC 4

    The order settlement terminates with the error Message no. MLCCS 099 "Internal error in FORM/FUNCTION CKMLKEPH_ROLLUP in position 2 with RC 4".
    The material ledger is active. The actual cost component split is active. I want to  carry out the order settlement for one plants.
    With the same production material no.in the plant. There are many other productin order are settled in thid period. But, only one production order got the error message, why?
    I knew that I could change the Price determ. (in material master) from 3 Single-/multi-level to 2          Activity-related, then I can continute settlement transaction in CO88. But , I want to know what's wrong this the order. What should I check about the order. Why other orders are settled without error with the same material no, and  plant.
    I had check about SAP note 711416 & 729901 & 523100 & 623701 & 653523, those can't slove my problem in CO88.

    Thanks for your answer.
    But, I have two production orders product the same material in the same plant and  will be settled in this period. Both of those two orders were consumed material in 3 months ago. But, only one of them were terminated with error message in CO88. Why? How can I find out the difference between those two orders? They seems the same.
    For SAP note 623701 & 871926 & 867755, I think we already implemented those. I had found program "MLCCS_KO88_TREATMENT " in SE38. And, I can find the message 013 & 015 in message class MLCCS. So, do you have other commendations?
    Do you know how could I check about "Display order history" that mentioned in note 86775. Which T-code should I go to?
    Thanks a lot.

  • AGO function issue

    Hello
    Im trying to use the AGO function in in my Column Formula to compare the difference between month to month. The formula is as follows:
    AGO("Fact - Revenue"."Revenue - DW","Period"."Period",1)
    ... but every time im getting the error message:
    Formula syntax is invalid.
    [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27037] Unresolved level: "Period"."Period". (HY000)
    SQL Issued: SELECT AGO("Fact - Revenue"."Revenue - DW","Period"."Period",1) FROM "LC ELT - Revenue and Margin"
    Not sure why this is. I have tried not inserting the 'time level' option which doesn't give me an error but does give me slightly incorrect results, just off the correct value.
    Has anyone experienced this before? If so, could you please let me know what you did to resolve it?

    The Ago syntax is
    Ago(<<Measure>>, <<Level>>, <<Number of Periods>>)
    I dont think "Period"."Period" is a level from time dimension.
    In your case valid Levels are
    - Year
    - Half
    - Quarter
    Pls mark as correct/helpful if helps
    Edited by: veeravalli on Nov 19, 2012 5:31 PM

  • Time series questions - how to do AGO function for prior year end

    Question on how to perform the following calculation in OBIEE:
    I need to create a time series calculation that will calculate a metric as of Dec prior year. For example, my users will select Mar 2010. I want to show the amount for Mar 10 as well as the amount for Dec 09. If the select Jun 10, I will show them the amount for that month as well as Dec 09.
    Is there a way to do an AGO function that will give me this value? I can't use a filter calculation on my column because filter on the period will exclude these records

    Thanks John. Your suggestions seems promising but I'm having issues when I tried it out. I am receiving the following error message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22046] To use AGO function, the query level ('Fiscal Period, Prior Fiscal Year End Date') must be a static level. (HY000)
    What I did was create a new level off my Fiscal Time dimension which is a child of Total. I tried creating my AGO calculation using this level but received that error message in Asnwers. Any ideas on what I may be doing wrong?

  • Ago function not working in reports

    Hi
    I created a logical column using ago function,when I'm using this column in the report it throws the following error.I'm using 10.1.3.4.1 version of OBIEE.
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22040] To use AGO function, the storage level of the query ('[TIMES.TIME_ID]') must be a static level. (HY000)
    SQL Issued: SELECT COUNTRIES.COUNTRY_NAME saw_0, SALES.AMOUNT_SOLD saw_1, SALES."Amount Sold LY" saw_2 FROM KNOWLEDGE WHERE (TIMES.CALENDAR_YEAR = 1999) ORDER BY saw_0
    Thanks
    Don.

    Hello Don,
    Have you set the chronological key for the time dimension ?
    Please refer the below post by Nico..
    http://gerardnico.com/wiki/dat/obiee/function_time?s[]=ago&s[]=function
    Same error it has been posted in below mentioned thread
    Re: Using the Ago Function
    One Request : Please if your post has been answered then please try to close the thread by awarding so that it can be helpful to others.
    thanks
    Edited by: user12116294 on Feb 4, 2011 5:18 PM
    Edited by: user12116294 on Feb 4, 2011 5:20 PM

Maybe you are looking for

  • Maximum Size for a Field in a TABLE.

    Hi All, I need to create a field in a ZTABLE which can hold the maximum data. This is intended to hold a structure (of any kind) on a temporary basis untill another event is completed. What can be the maximum recommended size of a field in a ZTABLE.

  • Regarding Reporting solution

    Hi, I am creation reports .But it is taking more time to display reports and data is more in my system. Is there any reporting tool in Oracle So, It gives performance while reports display? Thanks in advance.

  • Video in Quiz Feedback?

    Hi, I am creating an e-learning course with a digital agent who guides the learner through the course. During the quizzes, I want to have the agent  deliver the feedback. I'm using Adobe Captivate 5, and the agent is being generated from another prog

  • Y510, Windows 7 first impressions

    Well I got bored and curious so I put Windows 7 build 7000 on my trusty 510 and figured I would share the results with everyone. I searched and I found someone posting Win7 on an S10 but nothing on Y510 or similar.    So far here is what I have found

  • Hard drive fan comes on full blast for no apparent reason!

    I have had this problem since buying my new 27in iMac. It happens maybe once or twice a month. I took it to apple and they said "everything is ok". I come home from work at night and the machine sounds like a leaf blower on my desk. I pull up iStat w