Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

AGO function issue in OBIEE 12c

Received Response
452
Views
15
Comments
Uttam.Singh
Uttam.Singh Rank 4 - Community Specialist

Need some suggestion on this issue we started facing after upgrading to 12c (12.2.1.2.0) where we are using AGO function in the RPD to get the Year Ago sales. It used to work fine in 11g but after upgrading to 12c we are seeing this issue where the sales for the previous year is showing wrong values. Not sure if this is a bug or not.

Please provide your inputs which all places I should be checking to correct this.

1. We did use the W_DAY_D as the Time Dimension with all the right Chronological key set in the RPD correctly

pastedImage_4.png

2. The Physical Query generated is kind of a stitch join

3. I tried creating a measure at the webcat level using the similar formula after pulling in the Time hierarchy - AGO("Measures"."Amount ($USD)" , "Time"."Date Posted"."Year", 1) but it still shows the wrong value against the Year Ago measure of the current month.

4. The only difference I noted is that the Key used Year (PER_NAME_YEAR), Quarter (PER_NAME_QTR) are nullable at the DB level and does contain a row with null value. There is a row in W_DAY_D where ROW_WID = 0 which has all the above fields as null. I don't believe this would cause an issue but need your suggestion if I should replace the null with 0 and test it out (I will do this and check too).

pastedImage_5.png

Results: In the example below, the Year Ago Amount for 2017 / 01 should be from 2016 / 01 (3,850,804) but its showing 119,374,929.

pastedImage_0.png

«1

Answers

  • Joel
    Joel Rank 8 - Analytics Strategist

    I think you should start with tidying up your time dimension. That should be the 1st step to rule out the data in there that needs to be excluded.

  • Uttam.Singh
    Uttam.Singh Rank 4 - Community Specialist

    Hi Joel - Can you please help to elaborate on this?

  • Joel
    Joel Rank 8 - Analytics Strategist

    I think you mentioned that there were some invalid data entries in your time dimension. I was just suggesting that you clean these up and then retest in order to determine if this is the culprit of your issue.

  • [Deleted User]
    [Deleted User] Rank 10 - Analytics Guru

    You claim "We did use the W_DAY_D as the Time Dimension with all the right Chronological key set in the RPD correctly" but seeing what you're facing I'd say after making sure you have a properly populated physical time dimension you should make sure your logical time dimension is actually correct...

  • Uttam.Singh
    Uttam.Singh Rank 4 - Community Specialist

    Yeah - I did update that Null row with some values but it still didnt help.

  • Your analysis generate a physical query, take that query, read it and understand what kind of logic it's applying. You will probably find the error in the model or where it is ...

  • Uttam.Singh
    Uttam.Singh Rank 4 - Community Specialist

    Thanks Gianni - Its the same formula which was working fine in 11g. There are no other changes to the data model or RPD but still we are facing the same issue.

  • Uttam.Singh
    Uttam.Singh Rank 4 - Community Specialist

    Thanks Christian - Yes, the logical dimension is set properly as well.

  • You are missing the point: do not expect OBIEE 12c to generate queries in the same way as 11g does. The product will always try to get smarter and smarter and generate the best query. So if your model isn't perfect the query can change over the versions.

    That's why I said to take the physical query, read it, understand it, and find out what it does (these numbers you see on your screen probably aren't random, so find the logic the query used). Once you get the logic used by the query you can go back to your model to find out what and why made OBIEE think in that way.

  • Uttam.Singh
    Uttam.Singh Rank 4 - Community Specialist

    well said - I totally agree with you.. Frankly speaking the query generated by OBIEE is not easy enough to understand and hence I was looking for some suggestions from the SMEs to pin point the issue.