Calculation in OBIEE 11G

Hi,
I am working on a calculation in OBIEE 11g.
its like :
CASE WHEN MEASURE1 = 0 THEN MEASURE2 + MEASURE3 + MEASURE4 ELSE 0 END
Results were not coming correct. I analyzed the backend SQL and the problem is it not applying MEASURE1 in GROUP BY. I have tried to cast it as char but it is just nt applying it in GROUP BY. Any one have any suggestion.
Another issue I am facing is purging cache. I use CALL SAPurgeAllCache(); but later if u try to get physical SQL i can see it is still referring to some Cache table any idea how can I GET FULL PHIYSICAL SQL EVERY TIME I RUN A REPORT BY PURGING CACHE.
Looking forward for your response thanks!
Thanks

Hi,
Please check follow the steps.
Group by problem please refer the below thread.
Re: Group By
All measures columns are comming single table are multiple tables ?-- If yes those columns are comming multiple tables please check join conditions.
2. Another issue I am facing is purging cache. I use CALL SAPurgeAllCache(); but later if u try to get physical SQL i can see it is still referring to some Cache table any idea how can I GET FULL PHIYSICAL SQL EVERY TIME I RUN A REPORT BY PURGING CACHE.
A. If you run the above script it will remove bi server cache only. You have to remove BI presentation cache also, Go--> settings-->Administrator--> manage session--> close all cursors also.
or .
your need to check Go--> physical layer--> click table properties --> here are you defined any cache times.
Hope this help's
Thanks,
Satya
Edited by: Satya Ranki Reddy on Jun 1, 2012 12:08 PM

Similar Messages

  • 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

  • Calculated Items and Action Links (OBIEE 11g)

    Hi,
    On OBIEE 11g here...
    I have an anaylsis which shows a pivot table with only 6 columns of calculated items, with all of the standard columns hidden. The split of the pivot has been achieved using a variable created using the bin function.
    I have set an action link on the measure shown in the pivot table to navigate to another analysis and, while clicking on one of the measures in a pivot column runs the specified report, it is not run using the the necessary parameters required to match the dataset shown in that particular column.
    Is it possible to drill to a separate report and pass through the required filters from a measure showing in a calculated item, as it would be on a measure showing in a standard pivot table column?
    Thanks,
    Ang

    You need to have 'Is Prompted' for that specific measure. I would suggest to use action links on other columns instead of metrics.
    Pls mark as correct/helpful if helps

  • Different calculation on each column in table in obiee 11g report??

    Hi ,
    I have to display values in a table for measures in obiee 11g report which should hold different calculation on each column. For ex:
    Result 1:
    Flag  Display   Transaction  Amount
      C      'A'                 2              3
      C      'B'                 3               0
           SubTotal1            5             3
    Result 2:
    Flag  Display   Transaction  Amount
      H      'C'                 2              11
      H      'D'                  0              0
           SubTotal2          2             11
    Result 3:
    Flag  Display   Transaction  Amount
      H      'C'                 1              0
      H      'D'                  1            0
           SubTotal3          2            0
    Final Result:(Transaction shd hold :-subtotal1-subtal2 , Amount should hold:-subtotal1-subtal2+subtota3)
    Flag   Display               Transaction         Amount
    C    'total tran(1-2)              3                     8
           Total Amnt(1-2+3)'     
    Please help me how can i achieve this ... ??? I am new to OBIEE 11g.
    Thanks,
    Pavi

    There are a few things I cannot understand; I'm assuming Transaction and Amount are fact columns. Then how do they have different values for the same values of Flag and Display ??
    Anyway, sub total can be achieved by going to edit view for the table and from columns and measures area under the Layout pane click on the summation icon and select After.  This will automatically display a grand total value at the bottom of each fact column.
    Now, to get the final result, say Total Transaction you can add a dummy column and edit its formula.
         Total Transaction = trans_subtotal1 - trans_subtotal2 and
         Total Amount = amt_subtotal1 - amt_subtotal2 + amt_subtotal3
         Now if we could say that trans_subtotal1 is the total of transaction value when Flag = 'C' or something like that then you can get this value of subtotal1 by using the formula FILTER(SUM("Subject Area"."Folder".Transaction Column") USING (DESCRIPTOR_IDOF("Subject Area"."Folder"."Flag column") = 'C')).  Similarly we can obtain subtotal2 and subtract them to get the total transaction value.  But I am sure if we can do this because for the same values of Flag and Display, Transaction has different values.  But by using the above formula, the values we obtain for subtotals 2 and 3 will be the same.  So calculating Total Amount would be a problem.
    The above formula is obtained by going to edit formula and selecting the filter option at the bottom of the edit dialog box.
    Hope I made my point clear

  • Division calculation using different filters in OBIEE 11g

    Hello,
    I have a requirement where I want to calculate division of same column using different filters in one report.
    e.g. No. of Units (Where Active flag='A')/No. of units (Where Active flag='I').
    I am using OBIEE 11g.
    Thanks.

    Try this:
    ((case when Active flag='A' then No. of Units end)*1.0)/
    (case when Active flag='I' then No. of Units end)
    It would nice if you create a new metric based on physical expression using rpd. If possible try to create it so that you can have aggregation after the calculation.
    If helps pls mak as correct/helpful
    Edited by: Srini VEERAVALLI on Jan 8, 2013 11:56 AM

  • Calculating YTD column in OBIEE 11g

    Hi ,
    Here is my requirement :
    I have to create a report , which shows several measure values (revenue , gross mergin etc as rows of a pivot table) against a certain period (Months , i.e. Jan , Feb ....etc as columns of a pivot table ) . Taking period prompt as presentation variable prompt . For example , If 'Jan' is selected from period dropdown list ,then only Jan values are shown . I am able to do upto this part .
    Next , I have to add one YTD column (calculated ) , which will eventually sum the values of upto selected period value , i.e if selected month is 'Mar' then March values will be shown in one column and 'Jan + Feb + Mar ' values will shown in another .
    How to achive this ?
    FYI , I am taking essbase 11.1.2.0 as datasource and using OBIEE 11.1.1.5.0 version .
    Thanks in advance.
    Edited by: 937268 on Jul 2, 2012 3:04 PM

    Hi,
    by using time series Ago function method and also by suing obiee-date-expression method you can solve it.
    YTD:
    http://download.oracle.com/docs/cd/E21764_01/bi.1111/e10540/dimensions.htm#i1023744
    http://gerardnico.com/wiki/dat/obiee/function_time
    http://www.vlamis.com/blog/2011/6/17/doing-time-series-calculations-in-answers-11g.html
    OBIEE - date expression method
    http://obieedue.blogspot.com/2011/06/obiee-date-expressions-reference.html
    Thanks
    Deva

  • OBIEE 11G Calculation the Correct Way

    Hi All,
    My requirement is like this that I want to calculate value Gross Profit which is simple Total Revenue - Total Expense. Now I want this to act as a Hierarchy i.e Gross Profit should be drill able to Total Revenue followed by Total Expenses. For this I created a Accounts Dimension table since no Drill Down facility is available on Fact Table(Therefore I had to move my Accounts to Dimension table rather than Fact Table). Now the problem is that there is no minus based aggregation present in OBIEE BMM layer because of which my all other sum based aggregation work correctly except where there is a negative based aggregation required like in the case of Gross Profit. Kindly Suggest what is the correct way to approach this problem. I am working on OBIEE 11g in this case.
    Warm Regards
    Abhishek Kapoor

    Financial reporting is difficult in BI because of the user preference of how to see signs on different accounts and requirements for adding/subtracting depending on the type of account.
    A few ways to approach:
    a. Use case statement to make total rev and total expense columns. Subtract to build a gross profit column. You can do this in the presentation services front end or the BMM.
    b. If you have opposite natural signs for rev and exp, you can create an account hierarchy in the account table which will net out to gross profit. Ex:
    Column 1 – account number
    Column 2 – hierarchy level 1, ex Gross Profit
    Column 3 – hierarchy level 2, ex Rev or exp
    Column 4 – account name
    Etc…
    c. Remember you can always build your own drilldown using navigation links to a report instead of the built-in drilldown.
    Good luck!

  • OBIEE 11g : Supply Chain Analytics : How Supplier Performance is calculated

    Hi All,
    In OBIEE 11g : Supply Chain Analytics out of the box RPD has a report called "*Top 10 On Time Performance By Supplier*".
    Can anyone tell me what are the fields are being used to calculate this measure?
    Any information on this report will be helpful.
    Thanks
    Sudipta

    Hi you can find it in bellow document "oracle business intelligence applications 7.9.6 Metric reference guide " in section 12. i have PDF format i dont have any URL to share with u. if u pass me ur email i ;ll share with u.
    Regards

  • Row subtraction in obiee 11g

    Hi ,
    I want to display my report as given below. I have achieved till displaying the values using pivot table in obiee 11g
    India
    Product     amount
    a     50
    b     35
    America
    Product     amount
    a     100
    b     50
    Can someone help me to achieve the below substraction of rows in obiee 11g ?
    India
    Product     amount
    a     50
    b     35
    a-b     15
    America
    Product     amount
    a     100
    b     50
    a-b     50
    Thanks,
    Pavni

    Hi...
    Follow the steps:
    1)Create a Pivot view
    India
    Product amount
    a 50
    b 35
    America
    Product amount
    a 100
    b 50
    2) Click on selection steps:
    Under the product column click on Then, New Step... ->      Add Groups or Calculated Items -> New Calculated Item
    or (else u can select this option New Calculated Item from result pane besides New View)
    Display Label Name: a-b
    Values From: Product
    Function: Custom
    Here u should select and write condition like
    Product a - Product b
    Click ok, then save....
    See the result......
    Mark as a correct it helps u....
    Thanks

  • Obiee 11g Chart sorting issue

    Hi All,
    I am trying to plot a graph in OBIEE 11g answers which shows Calendar Month in X-axis and percentage of marks in Y-axis,
    in such a way that Calendar Month in X-axis should be in the order Jan Feb Mar Apr .....(where as now it is Apr Aug Feb ... which is sorted in ascending order) Calender month is a calculated column in the report which has the following calculation
    case when cal_month=1 then 'Jan'
    case when cal_month=2 then 'Feb'
    case when cal_month=12 then 'Dec'
    How do i arrange the calendar month in a proper order of Jan Feb Mar .....
    Please advise
    Thanks,
    LonaD

    I've already mentioned OOB column to use, I'm not sure about your data. If you dont have it then might go for workaround to get number 1 to 12.
    BTW:Existing column 'Col month' as referred is not helping you?
    For ex: work around might be something like
    cast(substring("Year",3,2) as int)
    Mark if helps
    Edited by: Srini VEERAVALLI on Feb 5, 2013 12:43 AM
    you can create same in rpd so that you can sort it._
    Or else can go with work around using year column as above_
    Edited by: Srini VEERAVALLI on Feb 5, 2013 12:59 AM
    Edited by: Srini VEERAVALLI on Feb 5, 2013 1:01 AM
    Edited by: Srini VEERAVALLI on Feb 5, 2013 3:19 PM

  • Need help -To Restrict Huge temp file, which grows around 3 GB in OBIEE 11g

    Hi Team,
    I am working on OBIEE 11.1.1.5 version for a client specific BI application. we have an issue concerning massive space consumption in OBIEE 11g installed linux environment whenever trying to run some detail level drill down reports. While investigating, we found that whenever a user runs the drill down report a temp file named nQS_xxxx_x_xxxxxx.TMP is created and keep's growing in size under the below given folder structure,
    *<OBIEE_HOME>/instances/instance1/tmp/OracleBIPresentationServicesComponent/coreapplication_obips1/obis_temp/*
    The size of this temp file grows huge as much as around 3 GB and gets erased automatically when the drill down report output is displayed in UI. Hence when multiple users simultaneously try to access these sort of drill down reports the environment runs out of space.
    Regarding the drill down reports:
    * The drill down report has around 55 columns which is configured to display only 25 rows in the screen and allows the user to download the whole data as Excel output.
    * The complete rows being fetched in query ranges from 1000 to even above 100k rows. Based on the rows fetched, the temp file size keeps growing. ie., If the rows being fetched from the query is around 4000 a temp file of around 60 MB is created and gets erased when the report output is generated in screen (Similarly, for around 100k rows, the temp file size grows up to 3 GB before it gets deleted automatically).
    * The report output has only one table view along side Title & Filters view. (No Pivot table view, is being used to generate this report.)
    * The cache settings for BI Server & BI Presentation services cache are not configured or not enabled.
    My doubts or Questions:
    * Is there any way to control or configure this temp file generation in OBIEE 11g?
    * Why the growing temp file automatically gets deleted immediately after the report output generation in screen. Is there any default server specific settings governing this behaviour?
    * As per certain OBIEE article reference for OBIEE 10g, I learnt that for large pivot table based reports the temp file generation is quite normal because of huge in-memory calculations involved . However we have used only Table view in output but still creates huge temp files. Is this behaviour normal in OBIEE 11g. If not, Can any one Please suggest of any specific settings to be considered to avoid generating these huge files or atleast generate a compressed temp file.
    * Any other work around solution available for generating a report of this type without the generation of temp files in the environment?
    Any help/suggestions/pointers or document reference on this regard will be much appreciated. Please advice
    Thanks & Regards,
    Guhan
    Edited by: 814788 on 11-Aug-2011 13:02

    Hello Guhan,
    The temp files are used to prepare the final result set for OBI presentation server processing, so as long as long you dataset is big the tmp files will be also big and you can only avoid this by reducing your dataset by for example filtering your report.
    You can also control the size of your temp files by reducing the usage of the BI server.I mean by this if you are using any functions like for example sorting that can be handled by your database so just push to the DB.
    Once the report finished the BI server removes automatically the tmp files because it's not necessary anymore.you can see it as a file that is used for internal calculations once it's done the server gets rid of it.
    Hope this helps
    Adil

  • Using CASE WHEN for Essbase column in OBIEE 11g

    Hi all,
    I have a business model in OBIEE 11g, taking the source from Essbase 11. The measures of the Essbase cube in the physical layer is flattened, and the aggregations for the measures are set to SUM.
    The Product dimension has 5 generations. In Product logical table, I created a logical column called "Product Grouping" using a simple CASE WHEN formula:
    CASE
    WHEN "TEST"."Product"."Gen5,Product" IN ('100-10', '100-20', '200-10', '300-10') THEN 'Group 1'
    WHEN "TEST"."Product"."Gen5,Product" IN ('100-30', '200-20') THEN 'Group 2'
    ELSE 'Group 3'
    END
    Problems:
    1. If I don't place this "Product Grouping" in the logical level/hierarchy, I got error in the report when I simply show Product Grouping and a measure.
    2. If I place this "Product Grouping" in the logical level/hierarchy (on the 5th level), no more error in the report when I simply show "Product Grouping" and a measure. The measure value also shows the correct SUM (group by). However, when I add "Gen1,Product" the "Product Grouping" and the measure value suddenly becomes not grouped by.
    Has anyone ever tried and encountered something like this? Any thoughts?
    Thank you very much!

    Hi Deepak, thansk for the suggestion.
    However, I can't use calculated item for this report because:
    1. incorrect result will be shown when my measures involve a formula to derive a percentage value.
    2. calculated item is not available if we do "combine requests" (or union) in 11g.
    Any thoughts anyone on how to solve this? Is this just me, or it's a bug?
    Thank you very much.

  • Selection Steps greyed out for a Union Query - OBIEE 11g

    Hello,
    I did some research and could not find possible solution/explanation for the issue I am facing.
    For one of the report which is based on Union of 3 queries in OBIEE 11g, I recently added a calculated item which now I would like to remove. The best way to achieve this was by removing respective step in selection steps.
    However I could not see complete list of steps in this Union report and also cannot modify or remove the selection step for calculated item (2 below). Also Selection steps on task bar is by default greyed out
    Below is what I see when I select selection steps
    1. Start with all members
    2. Then Add Average
    Any ideas or workaround.
    Thank you,
    Sai

    RqList <<184070>> [for database 3023:147018:DEVFRC,57] /* FETCH FIRST 1000001 ROWS ONLY */
    0 as c1 [for database 3023:147018,57],
    D2.c1 as c2 [for database 3023:147018,57],
    D1.c1 as c3 [for database 3023:147018,57]
    Child Nodes (RqJoinSpec): <<184109>> [for database 3023:147018:DEVFRC,57]
    RqJoinNode <<184107>> []
    RqList <<184082>> [for database 3023:147018:DEVFRC,57] distinct
    sum(FCT_LEDGER_STAT.N_VALUE) as c1 [for database 3023:147018,57]
    Child Nodes (RqJoinSpec): <<184085>> [for database 3023:147018:DEVFRC,57]
    RqJoinNode <<184084>> []
    FCT_LEDGER_STAT T147426
    ) as D1
    RqJoinNode <<184108>> []
    RqList <<184088>> [for database 3023:147018:DEVFRC,57] distinct
    DIM_FINANCIAL_ELEMENT.V_FINANCIAL_ELEM_NAME as c1 [for database 3023:147018,57]
    Child Nodes (RqJoinSpec): <<184099>> [for database 3023:147018:DEVFRC,57]
    RqJoinNode <<184098>> []
    DIM_FINANCIAL_ELEMENT T147109
    ) as D2
    OrderBy: c2 asc NULLS LAST [for database 3023:147018,57]
    =========================================================
    PHYSICAL
    ==================================================
    WITH
    SAWITH0 AS (select sum(T147426.N_VALUE) as c1
    from
    OFSAAATOMIC.FCT_LEDGER_STAT T147426),
    SAWITH1 AS (select distinct T147109.V_FINANCIAL_ELEM_NAME as c1
    from
    OFSAAATOMIC.DIM_FINANCIAL_ELEMENT T147109)
    select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3 from ( select 0 as c1,
    D2.c1 as c2,
    D1.c1 as c3
    from
    SAWITH0 D1,
    SAWITH1 D2
    order by c2 ) D1 where rownum <= 1000001

  • Export OLAP 11G AW/Cubes to OBIEE 11g

    Hi Experts,
    If anyone has handled this assignment of exporting OLAP 11G AW/Cubes to OBIEE 11g, Please share all details. Currently we use BO for reporting requirements and before going ahead with OBIEE 11g would like to make sure there is not much of a gap. As of now we see a lot of incompatibility while exporting  like some dims and cubes cannot be exported and so on. Any white paper/docs/information on this from experienced folks are welcome.
    We are on 11.2.0.3 db release.
    Thanks in advance,
    MS

    Here is some basic information about importing 11g analytic workspace cube and dimension metadata into OBIEE.
    There are two basic options as I suspect you already know:
    Option 1) Before the release of OBIEE 11.1.1.5 (I believe), there was no native support for the OLAP option within the administrator tool of OBIEE, and
      one needed to use the AwM plug-in to OBIEE. The AwM plug-in generates a UDML file which can be imported into OBIEE using the OBIEE admin tool.
      The AwM plug-in to OBIEE generates metadata for the source, business model, and presentation layers. The very latest version of the AwM plug-in will specially
      handle calculated measures created in AwM and create the proper calculcated measure expression in OBIEE. This is very important if you are querying above the cube
      to get the correct aggregation results. One area that has limited support is if a dimension only has value-based hierarchies. The plug-in will create a very simple level-based
      hierarchy to at least allow the dimension to be successfully created. You then need to do more work within the OBIEE administration tool to create the fully baked
      value-based hierarchies. I do not have any real-world experience with value-based hierarchies in OBIEE. Again, the AwM plug-in to OBIEE works with level-based hierarchies
      and supports multiple hierarchies per dimension. The AwM plug-in to OBIEE is available on the OTN download page for the OLAP option.
      Here is the link:  Oracle OLAP Downloads: Software & Samples
    Option 2) OBIEE 11.1.1.5 and later allows for native integration for accepting OLAP 11g dimension and cube metadata as a supported source.
       This integration makes the AwM plug-in somewhat obsolete (except for the calculated measure expression integration which is unique to the AwM plug-in and using
       AwM to create calculated measures including time-based calculated measures)
    Please expand on the incompatibility issues you are running into. Is this related to a lot of value-based hierarchies or other issues?

  • What needs to be done in OBIEE 11g when underlying data types change?

    I have an SQL table that I am referencing. It contains several date fields that were varchar(8). In order to do calculations, I just cast the fields as date, and performed my calculation.
    Recently, the DBA changed the fields to date type.
    I did a "View Data" and "Update row count", but it seems as if OBIEE is still treating the fields as varchar fields.
    What is the proper procedure in OBIEE 11g to recognize the changes that occurred in the underlying table?

    Hi
    In your scenario, I can suggest you can change manually to  each field lengths in physical layer.
    If you really looking one time fix then try to import the new table stricture into new rpd then save it then try to  merge original rpd . – But it is risky process ( We have two methods, patch merge and fully repository merge).
    Before doing above method take the backup original rpd and do it in your local.
    Thanks,
    Satya Ranki Reddy

Maybe you are looking for

  • Can I set up a password for when renting movies from my Apple TV without having to sign out?

    Can I set up a password when renting movies from my Apple TV without having to sign out?

  • Erroneous time in graphs in output cluster

    I have an application that reads a binary file and then displays, analyzes and presents the data in charts and indicators. The 'main' application is "06_ATP_Read and Analyze SubVIs.vi" with the "04_ATP_Read.vi" and "05_ATP_Analyze & Present Data.vi"

  • How much is it to buy Pages?

    How much is it to buy Pages? I clicked 'buy' and it took me to a page about the app store, but I can't use the app store on my macbook because i'm running 10.5.8, so i couldn't see the price

  • Displaying Missing Font Dialog when exporting to PDF?

    Does anyone knows a way to display the missing font dialog again, after it has been shown when the document was opened? We need to export to PDF with font embedding/subsetting, but if a font is missing, the substituted font is embedded instead. InDes

  • Slideshow export path not accepted

    i'm setting up a slideshow in CS 4. i've completed all the input screens but when I try to select a folder for the export path, nothing happens no matter which folder i choose. i hit "select" in the popup but it just remains blank and i can't create