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

Similar Messages

  • OBIEE 10g AGO Function Dynamically Change the Heading

    I created columns in my rpd named Sales Previous Month, Sales 2 months ago and Sales 3 months ago using the AGO Function. This is working fine.
    My problem is when displaying these headings the users would like to see the Month Name instead of the Headings I created. For example if looking at a report for January the users would like to see:
    Sales Previous Month = December
    Sales 2 Months ago = November
    Sales 3 Months ago = October
    Is there any way to dynamically change the value of the column header to show the name of the month?

    Hi SriniVEERAVALLI,
    Thanks for the reply. I have found that I might haven't created the relationship between dimension and fact tables correctly.
    I initially created the foreign key relationship (instead of creating complex join) in physical diagram between the dimension and fact table. And the relationship type is hence greyed out.
    I have deleted the foreign key relationship in physical diagram. Then
    1. In physical diagram, create complex join between dimension and fact . The relationship is 'inner' and can't be changed.
    2. In Logical table diagram, create foreign key between dimension and fact . The relationship can be changed (inner, outer, etc).
    Is this the correct way?
    I tried these on two newly created dummy tables and it worked.

  • OBIEE 11g EVALUATE function working fine with Administrator but

    Hi,
    We have a report with EVALUATE function , which is working fine with Administrator User but when we run for other users its giving following 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: 42015] Cannot function ship the following expression: Evaluate( COUNT(%1) OVER (PARTITION BY (%2)),D901.c1, D901.c2) .Please have your System Administrator look at the log for more details on this error. (HY000)
    Is there any parameters that we have to set for the user level to use Evaluate ?
    Thanks,
    Raj

    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

  • OBIEE 11g time series: regression on ago / todate function ?

    Hello,
    We are testing the migration to OBIEE 11G.
    We are currently in 10.3 version
    We have a problem on AGO / TO_DATE OBIEE functions that returns null results on existing reports.
    In 10.3 version, these functions work properly with the actual TIME dimension.
    Here is how we designed time Dimension:
    TOTAL -> Year -> Quarter -> MONTH -> WEEK -> DATE_KEY, FULL_DATE
    DATE_KEY is a number and referenced as a foreign key on our fact table.
    CREATE TABLE TD_DATE
    +(+
    DATE_KEY NUMBER (11) NOT NULL,
    FULL_DATE DATE
    WEEK NUMBER (2),
    MONTH NUMBER (2),
    QUARTER NUMBER (1)
    YEAR NUMBER (4),
    TOTAL_DATE VARCHAR2 (11 BYTE)
    +)+
    Database version: Oracle 11g
    All elements of the dimension are chronological key (except full date) in order to optimize performance.
    Have you encountered similar problems in inplémentation of AGO / TO_DATE function on version 11g?
    Thanks,
    Romain

    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
    Success
    Nico

  • 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

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

  • How to Calculate Leap Year ago in OBIEE 11g

    Hi Gurus,
    I have one fact table and having one measure column. I have to calculate current year and Last year.
    Using Time series function (Todate,Ago) have calculated current year as well last year also.
    The problem is Current year is showing correct value only but Last year was showing wrong data.
    We found the problem is Leap year, last year FEB month is having 29 dates. Due to this we are getting wrong date.
    Kindly suggest me how to achieve this requirement.
    Thanks

    Hi Gurus,
    How to resolve Leap Year calculation in OBIEE 11g.
    The problems is Year Ago column.
    Please suggest me how to resolve this.
    Thanks

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

  • Applying decode function in obiee 11g

    DECODE(A.AC_CCY,'INR',DECODE(DRCR_IND,'D',-1,1)*A.LCY_AMOUNT,DECODE(DRCR_IND,'D',-1,1)*A.FCY_AMOUNT),
    DECODE(DRCR_IND,'D',-1,1)*A.LCY_AMOUNT,
    Can any one help me how to decode the above sql statement in obiee 11g.
    Edited by: 925104 on Apr 3, 2012 12:48 AM

    you can achieve it by using CASE WHEN condition END function in obiee. nested case also supported by obiee.
    check the below link Decode Join  Condition in OBIEE RPD
    Thanks
    Jay.
    Edited by: Jay on Apr 3, 2012 12:56 PM

  • OBIEE 11g - Report Aggregate Function

    Hi Folks,
    I am facing one error in OBIEE 11g, saying that
    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: 22038] Function REPORT_AGGREGATE requires at least one measure column in its first argument. (HY000)
    SQL Issued: SELECT saw_0, saw_1, saw_2, saw_3, saw_4, saw_5, saw_6, saw_7, saw_8, saw_9, saw_10, saw_11, saw_12, saw_13, saw_14, saw_15, REPORT_AGGREGATE(saw_2 BY ), REPORT_AGGREGATE(saw_3 BY ), REPORT_AGGREGATE(saw_4 BY ), REPORT_AGGREGATE(saw_5 BY ), REPORT_AGGREGATE(saw_6 BY ), REPORT_AGGREGATE(saw_7 BY ), REPORT_AGGREGATE(saw_8 BY ), REPORT_AGGREGATE(saw_9 BY ), REPORT_AGGREGATE(saw_10 BY ), REPORT_AGGREGATE(saw_11 BY ), REPORT_AGGREGATE(saw_12 BY ), REPORT_AGGREGATE(saw_13 BY ), REPORT_AGGREGATE(saw_14 BY ), REPORT_AGGREGATE(saw_15 BY ) FROM ..............
    What is meant by REPORT_AGGREGATE funtion ?
    in my Project i am building reports by using Combine similar Request functionality..
    actually the same report is working fine under OBIEE 10g Environment, but when i migrated this it into OBIEE 11g its rasing the above error ?
    Help me out in this ..?
    Thanks in Advance
    Edited by: Siva Kumar Budagam on Sep 13, 2011 3:23 AM

    Here is fix for Bug.
    Patch Number: 12926133 for Windows 64 bit.
    "Even though the readme does not show it the fix for bug 12926133 includes the fix to bug 12391045."
    We tested and its works 100% for us.
    Thanks,
    Kiran.

  • OBIEE 11g Dashboard Prompt Reset Button Functionality

    Dear Experts,
    Can anyone explain what is the exact functionality of 'Reset' Button in any OBIEE 11g Dashboard Prompt.
    If anyone found any documentation related to it... please let me know.
    thanks,
    Varun

    Hi Varun,
    This is the functionality of Reset button,
    Reset will go back to last applied values. It does not clear values. Currently the Reset button works in the following ways:
    if 1) the prompt is blank 2) select some value, 3) reset 4) it should go back to blank.
    if 1) the prompt is blank 2) select some value, 3) apply 4) reset. 5) it should NOT to back to blank. actually it does not change anything.
    if 1) the prompt is blank 2) select some value, 3) apply 4) change any values 5) reset. 6) it should undo any changes in step 4.
    Rgds,
    Dpka

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

  • Removing drag functionality of column in OBIEE 11g

    Hi all,
    Can any one say me how to remove the draging functionality for the columns in OBIEE 11g ? It is creating an issue for me when i hide the columns in pivot and has only rows over there. It is creating one more layer on the top of the measures.
    Thanks for your help.

    Fightclub,
    Edit the Pivot view and goto Row section -> Row Properties -> Option - Uncheck the Display Heading.
    But you'll loose your columns heading of rows.
    Thanks,
    Balaa...

  • 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

  • Pavilion DV& screen changing colors

    When turning on the laptop, the screen changes colors (red, green, gray, blue, etc) before coming on.  It took almost 25 minutes for it to stop and then finally get the sign on screen. What could be the problem? The laptop is about 3 years old.  If i

  • Partial Paging on Report Regions

    I haven't seem a large use of Partial Paging on Report regions on any of the example packaged application Is there a way I can implement partial paging on a subset of a report region ? e.g. I have a grid like the following project 1 task 1 task 2 pro

  • Problem while installing iPlanet App server 6.5

    when trying to install iplanet app server 6.5 on solaris 2.8, downloaded from the net, the installation hangs when displaying the progress bar. We have iplanet web server 6.0 sp2 installed in the machine. We also installed all the solaris patches it

  • HP Pavilion, i3, 6GB RAM is super slowly

    My  computer is running very slow. It takes really long time to start up and all the programs i am using are running very slowy.  When I try to open a powerpoint document it take ages (10 seconds) and when I start the system i need to wait few minute

  • Downloaded ios 5 - pc now does not recognize

    pc does not recognize ipod after install new ios