NQSError: 22047] The Dimension used in AGO function must be referenced

Hi All,
I am selecting the following columns in the report:
1. Dimension.Product
2. Sales: Directly mapped to physical datasource
3. Prior Month Sales: calculated using the AGO function at the Month Level
4. Var from Prior Month : Sales - Prior Month Sales (Calculated at the Logical Level)
Time Dimensional Hierarchy is Year > Quarter > Month
I am getting the data for the same but when I apply Grand Total is throws the error:
nQSError: 22047] The Dimension used in AGO function must be referenced in the query. (HY000)
When I use the filter for the Month filed it is coming up fine but when I remove the month filter and apply on Year it doesnt work.
Can anybody please let me know how this works?

This error is happening in request?
You have to apply filter MONTH because you are calling month in AGO function. Try to create YEAR AGO calculation and then try combining filters, you will see that then YEAR will be important, not month.

Similar Messages

  • Call a special function in the dll using Call Library Function Node????

    Dear all,
          I am calling a special function in the dll using call library function node. There is a input parameter that it is a enum type in this function. I don't know how to deal this parameter for calling this function.Has anybody solved this problem?Please advise!
          I am appreciated of you anytime. 

    Most of the times an enum is just a U8/U16/U32, internally so probably you can call it with just a U8/U16/U32 or something. For the correct value you have to look at the definition.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Proper use of AGO function

    Dear All,
    I have to report on cubes that have their data aggregated on the day level. Standard reporting works fine. Now I want to do some historic comparison. I therefore created some calculation columns in Administrator, e.g.
    AGO(fact, dim_time.month,1)
    which shall give me the value of the fact just one month (and quarter and year in other columns) ago. If I report this on a daily basis, e.g day, fact, fact_month_ago I can see the report and calculation is correct, fact_month_ago is exactly the sam as fact from one month ago.
    But now I start to aggregate such a report to the month level (in Answers). So the report is month, fact, fact_month_ago. Now, some months are correct some are different. Looking deeper into this I assume this belongs to the number of days in a month. February has 28 days, so in the monthly report 28 lines are aggregated, even for the fact_month_ago table.
    In this case month_ago is January, which has 31 days, but 29 to 31 are not aggregated, as the report goes only from feb 1st to feb 28th.
    In the end the sum of the month_ago calculation is unequal to the sum of the last month.
    Does this mean I cannot use AGO function to calcualte things like that, or is there any trick or other function that would help here ?
    Regards,
    Knut

    You can have problem if you are going in a lower level such as week or date but if you stay on the month level, normally you must have the good result.
    Check here to have an example of this problem:
    http://obiee101.blogspot.com/2009/01/obiee-leap-year-challenge.html
    Otherwise, check your set up:
    http://gerardnico.com/wiki/dat/obiee/bi_server/design/dimension/time_dimension_parameters_for_ago_and_td_functions#timecalender_dimension_design_verification
    See each punt that are listed under the paragraph Time/Calender Dimension Design Verification. A good time dimension is the key for a good result with the time series function.
    Cheers
    Nico

  • So my photos are taking up most of my hard drive storage because of the high quality of the images. Im wondering if anyone knows how to reduce the size using an iphoto function or other??

    So I need to find a way to compress all my images at once or resize them all so they wont take up as much space on my hard drive!! Please help!!

    There is no such function in iPhoto. If size is an issue you can run a Library from an external disk:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • AGO functions with diferent time attibutes

    i have problem! i have too columns Year ago and month ago. When i take these columns with Month i can see only results from Month Ago (Year ago is no results), but when i take year and year ago i can see results from year ago. How can ia see year ago results with month column?????
    My Ago functions :
    Month ago: Ago("RU"."FSG fact - Budget"."Budget sum" , "RU"."WH Dim - TimeDim"."period" , 1) period is like (2008.01; 2010.02; ....)
    Year ago: Ago("RU"."FSG fact - Budget"."Budget sum" , "RU"."WH Dim - TimeDim"."Year" , 1) year is like (2008; 2010;....)
    please help !!!!!

    For Month_Ago column i set level Period and for Year_Ago level Year! but i still get problem - when i take fact column with MonthAgo and YearAgo columns and Month column from time dimension, MonthAgo works fine, but YearAgo shows '0' in all months and in the end of table after last moth shows all sum by year !
    and i have also Time dimension made from 2 Logical source tables!
    when i use grand total level i get error massege:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 22047] The Dimension used in Ago function must be referenced in the query. (HY000)

  • AGO function an date parametar in request

    Hi all,
    I have problem with this calculation that I had created in Admin.
    *1. Mesure*
    ToDate(sum(ifnull(TABLE.COLUMN1 , 0)), [Level Month])
    *2.Mesure*
    nullif( ifnull(Ago(sum(ifnull(TABLE.COLUMN2 , 0)), [Level Year], 1) , 0) , 0)
    Calculation
    +ToDate(sum(ifnull(TABLE.COLUMN1 , 0)), [Level Month]) / nullif( ifnull(Ago(sum(ifnull(TABLE.COLUMN2 , 0)), [Level Year], 1) , 0) , 0) * 100+
    In Answers I have pivot table that has parameter date (ex. 11.08.2009) that user define in prompt (date filter in request is set to promted). When I use *1. Mesure* and *2.Mesure* it works fine, but when I use calculation I am getting error The Dimension used in AGO function must be referenced in the query. . I am able to fix it by adding Year and Month filter. Why it is not working just with Date?

    What is the pivot report structure, culumns?
    How did you create these three logical columns?
    Measure 1 -> ToDate(sum(ifnull(TABLE.COLUMN1 , 0)), Level Month)
    Measure 2 -> nullif( ifnull(Ago(sum(ifnull(TABLE.COLUMN2 , 0)), Level Year, 1) , 0) , 0)
    Calculation -> ToDate(sum(ifnull(TABLE.COLUMN1 , 0)), Level Month) / nullif( ifnull(Ago(sum(ifnull(TABLE.COLUMN2 , 0)), Level Year, 1) , 0) , 0) * 100
    By use existing logical columns as the source?
    You put ifnull(TABLE.COLUMN2 , 0) in the expression instead of TABLE.COLUMN2 and then set aggregation to SUM in the logical column?
    Regards
    Goran
    http://108obiee.blogspot.com

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

  • Problem using Ago function

    Hi all,
    My problem is that when i use ago function it displays next months value for example first column shows balance of april month and next to it ago column displays balance of the may not march. I am really confused. Please help,
    AGO(SR02BriefIncome.sr02_cube.BALANCE, SR02BriefIncome.timesDim."times Detail", 1);

    Hi Nico,
    Another question in relation to Ago function; I need to get value/balance a year ago which is 12 months ago, and also previous year's last months balances; the problem is that Ago function takes only integer, I have tried to put a variable, Is there is way i can get balances of the previous year's last month because it will be much easier to get it using built-in ago function.
    Also i need help with your answer for thread How to use row values in Presentation or Administration for calculation
    Re: How to use row values in Presentation or Administration for calculation
    "Yes, I forgot this one. Of course, this solution work when you have a pivot column.
    If you talk about period to period comparison, really often I must do a share like this one : ($2-$5)/$5.
    And unfortunately, this is not possible in a calculated item. Is it ?"
    We have a lot of reports with inter-row calculations, we have already used a lot sql model but we would like use answer also. Can u explain it with exact examples or steps.
    thank you again,

  • 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

  • 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

  • Obiee ago function

    Hi All
    I need to use a ago function for month comparision in obiee, but actually the column which i am using has alsoi '*' characters and also numbers so i am unable it aggregate the column and use it as a measure for calculating the Month Ago.
    Please help me in this regards
    Thanks

    Extract the actual dates then so you have a date column. Then use the AGO function on it.
    BTW, what do you mean by "*" characters? What kind of "dates" are they??

  • What are the proper settings to encode for the iPad using compressor?

    I'd like to use 1080p the specs say it is capable of.
    I can get it working using hand brake but I don't see why I can't do it with compressor.

    The official specs for the iPad 2 do not include the 1080p video format so your not going to find a 1080p preset in Apple's Compressor that is marked for use with any iOS device. Apple states the following in the iPad 2 specs:
    "Video formats supported: H.264 video up to 720p, 30 frames per second, Main Profile level 3.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format"
    However, the iPad 2 CAN mirror or scale up to a 1080p TV output and that's all they mean when they say:
    "Video mirroring and video out support: Up to 1080p with Apple Digital AV Adapter or Apple VGA Adapter (cables sold separately)"
    In any case, all of the A4/A5-based iOS devices can (unofficially) decode 1080p video but for quality results you do need the iPad 2 (the iPhone 4, 4th generation iPod touch, and the original iPad can decode some 1080p sources but you may see dropped frames or stuttering on those "lesser" devices).
    As for creating 1080p content you can use whatever tools you want (just select 1920x1080 as the dimensions, use an H.264 codec, and restrict the bitrate to something between 4 to 10Mbps -- you may need to experiment with the latter to find the best results). However, you MIGHT need a third-party app to actually transfer and play that content on your iPad since iTunes MAY not allow you to directly sync that file to your iPad (because it exceeds the "official" spec).

  • To fetch data using group by function

    Hi Guys,
    I am having a table where it holds data with value with zero in one of the column and i need to fetch the records from the table using group by function but to display all the records if zero occurs in my table
    for eg
    table1
    id,customer_name,country
    0     sam     aus
    1     peter     ind
    1 peter    ind
    0 samy     us
    0 rayan     nz
    if i use select count(*),id from table1 group by id
    i will get
    count(*),id
    3-0
    1-2
    but wat i need is like below
    0     sam     aus
    0 samy     us
    0 rayan     nz
    2 peter ind
    whenever zero is occurring i need to display all the records but group by should work for non zero records

    The simplest way would be to have two queries and UNION them together. For example:
    WITH test_data AS
    ( SELECT 0 AS id, 'sam' AS customer_name, 'aus' AS country FROM DUAL UNION ALL
      SELECT 1 AS id, 'peter' AS customer_name, 'ind' AS country FROM DUAL UNION ALL
      SELECT 1 AS id, 'peter' AS customer_name, 'ind' AS country FROM DUAL UNION ALL
      SELECT 0 AS id, 'samy' AS customer_name, 'us' AS country FROM DUAL UNION ALL
      SELECT 0 AS id, 'rayan' AS customer_name, 'nz' AS country FROM DUAL
    SELECT cnt
         , customer_name
         , country
    FROM   ( SELECT id
                  , customer_name
                  , country
                  , COUNT(*) OVER (PARTITION BY id) AS cnt
                  , ROW_NUMBER() OVER (PARTITION BY id ORDER BY id) rn
             FROM   test_data
             WHERE  id != 0
    WHERE  rn = 1    
    UNION
    SELECT id
         , customer_name
         , country
    FROM   test_data
    WHERE  id = 0
    This gives the following results:
           CNT CUSTO COU
             0 rayan nz
             0 sam   aus
             0 samy  us
             2 peter ind

  • How to get tables used by a Function Module

    Hi,
    How to know the tables used by a function module dynamically.
    Cuurently im using BAPI_MATERIAL_SAVEDATA in my report program.
    I tried FM GET_TABLES to know the tables, but could see only tables used in the report.
    Main issue in my case is when im running this update program, could observe different tables being displayed as updated in SM50(Process Overview).Want to clarify as why these tables which are not being used in my report are being displayed in SM50.
    So was doubtin weather this FM is using these displayed tables.
    Thanks in advance for u r replys.
    Regards,
    Dedeepya

    Hi Dedeepya,
    you could use a SQL Trace (tx. ST05) to list all tables affected and operations that realize. Just active the trace, execute FM, and Deactive trace. Then click in "Display trace" and check it.
    Best regards,
    Pablo

  • Creating Dimension using template in Analytical workspace manager

    Hi,
    I am rajan, I am working with Oracle's Analytical workspace manager Release 2.
    I am trying to create the dimension using the templates from the file. it throws the following error,
    The following errors have occurred when loading contents:
    Closed Connection
    Note :     I am referring the tutorial in the following URL,
    http://st-curriculum.oracle.com/obe/db/10g/r2/prod/bidw/awm/awm_otn.htm and also i have downloaded the awm.zip file from the same URL and imported into my desktop.
    Right now, I am working based on this tutorial only.
    Kindly,help me to resolve this issue.
    Thanks
    Rajan

    Francisco,
    Query DBA_REGISTRY to verify the status of "OLAP Analytic Workspace" component.
    Also, wait for the script to finish and check the status of the objects then.
    Thanks,
    Hussein

Maybe you are looking for

  • How do I sync outlook contacts and calendar without deleting apps?

    I have a second iPad.  I wish to sync my Outlook contacts and calendar with my second iPad, however, upon doing so, I am prompted that I will be deleting the apps on the second iPad, which I suffered through yesterday (twice).  Ideas on how to get ar

  • R6870 DVI+DVI+HDMI - Any two displays of three?

    Hi Gang, I just installed an MSI R6870 and connected three displays (2 x DVI + 1 x HDMI) and wanted to extend the desktop across all three screens.  Unfortunately it appears I can any two of the three but not all three at the same time.   What am I m

  • Printer prints too slowly

    My (relatively) new HP CP2025dn prints very slowly, less than 4 pages per minute. So far as I can tell, the driver is resending each page over the network, and the printer is regenerating the image each time. This happens even when I want to print mu

  • Anyone's iMessage still not working!!?

    Hey I saw on the site that they got iMessage back up and working but I still can't use it. It's been saying waiting for activation for hours. Someone help please

  • Java Debugging

    I am developing a demonstration program for my MSc and I wanna do something related to reflection. I was thinking of a small application that would permit u to pick a class file and it would show its fields, methods, implemented interfaces and inheri