Summarizing Percent Calculation in Answers

Hi,
I have been working on a report. The format of report is like this
Division (Attribute) | M1(Measure1) | M2 (Measure2) | (M1/M2) * 100
I am getting the correct resuts in all the rows except "Summary Row" or "Grand Total Row" in pivot table.
I am getting wrong result in last column (M1/M2) * 100, which is meant to calulate percentage values.
Any suggestions how to correct it.

HI Mike,
I am Durgaprasad from Pune-INDIA, working as a OBIEE developer, I have one query which I mentioned below can you please go threw it. I gone threw your document that’s why I am requesting you.
I have done migration Discoverer Admin EUL Layer into OBIEE repository using below methodology.
Navigate to the <installdrive>\OracleBI\server\Bin directory. There are two important files in this directory: the migration assistant executable file named MigrateEUL.exe and a properties configuration file named MigrationConfig.properties.
Could you please help me how to migrate discoverer plus workbooks and worksheets into OBIEE Answers?
This is very great full help to me …
Advance thanks for your suggestions .
Regards
Duraga Prasad.

Similar Messages

  • Percentage calculation in answers

    I have to calculate the % values. I used sum, rsum and % to achieve this. But for some reason I am not able to get the % going.
    Here is my table with three columns (Used Bin in answers for this requirement)
    # Days # Persons % Persons
    < 5 Days 14,090
    5-10 Days 1,486
    31 + Days 5,241
    21-30 Days 792
    11-20 Days 1,173
    Total 22782
    In the new column % Persons, I am looking to calculate % Persons based on the value in # Persons.
    I want to calculate % Persons for 14,090 as (14,090/22782) * 100 and rest follows.
    I have been using this in the column % Persons formula and getting the values as 0.
    #Persons/sum(#Persons)*100
    Any help with this is really appreciated.
    Thanks/

    hi
    in you bmm layer create a duplicate column for the #persons and double click it. Go to level and in the date dimension set the level greater than the least level.
    name your new column as #persons_total. select the aggregation as sum.
    add this column in the report. now your report looks like
    < 5 Days 14,090 22782
    5-10 Days 1,486 22782
    31 + Days 5,241 22782
    21-30 Days 792 22782
    11-20 Days 1,173 22782
    now you can calculate percent.
    Or you can directly get the percent value by the following..
    after creating a column as said above.. right click on the # persons column in bmm layer.. select calculated measure.. select the newly create measure for the comparison.. select percent... save the column as #percent.
    Use this column in the report. You will get directly what you requuired.
    Hope this helps. award points if it is.
    thanks,
    karthick

  • Rounding of a total with a percent calculation

    Post Author: jdomkus
    CA Forum: Formula
    I have a sales field that is taking .10 of the total and placing that total into a new field. This figure is then being used in a total calculation with other values.  My problem is the calculation is not being handled correctly  due to the percent field total (This is complex to explain but easy to show in a example.
    total sales = .25 (Cents)  This total is being multiplied by .10 to figure out 10% of the total sales = .03 (This calculation is correct)
    Then when I go to subtract .25 - .03 = .23 (Which is not correct, rounding is set to 0.01 on the field)
    I have this report in 8.5 with all the patches and I have also download crystal report 11 with the same result, Any help would be appreciated

    Post Author: SKodidine
    CA Forum: Formula
    For Total Sales, try
    round(0.25 * 0.10,2)
    Then when you subtract it from 0.25 it should give you 0.22 instead of 0.23.

  • Percent calculation

    I have a form where I need to add the dollar amounts for projected small business spend and large business spend. (which is entered by the user) Then, actual cumulative smal and large spend is also entered by the user.
    I need to know how to write the script for calculating the percentage of cumulative spend in relation to projected spend.
    cumulative spend = % of projected spend
    Projected spend = 200.00
    50.00 is what % of 200.00
    Here is the code I tried:
    if(TotalCurrent ne 0) then
    (SmallActual / TotalCurrent) * 100
    else
    null
    endif
    Here is the error:
    Script failed (language is formcalc; context is
    xfa[0].form[0].topmostSubform[0].Page1[0].SmallActual[0])
    script=endif
    Error: syntax error near token 'endif' on line1, column 5.
    Any help is appreciated. I am new to this program.

    Hi, Lony,
    Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using.
    Are you saying you now ahave a query that produces that output, except for the percent column?
    It looks like the total of all percents is about 18. How did you get that number, and not 100?
    RATIO_TO_REPORT compares a number to the total in the query, giving you a number between 0 and 1. Just multiply it by 100 to get a number between 0 and 100.

  • Trouble with Accumulation and percent calculation

    I'm fairly new to programming so please be gentle guys because I know this may seem like a stupid question. In this simple polling program I have written, I can not seem to get my number of votes to accumulate nor the percent to calculate and display correctly.
    Could some one please tell me what I'm doing wrong and possibly lend me some tips for future programs. 
       static void Main(string[] args)
                string[] candidates = new string[5] { "Hillary Clinton", "Barack Obama", "John McCain", "Ralph Nader", "None of these are my favorite" };
                double totalVote = 0,
                votePercent = 0;
                int choice1 = 0,
                    choice2 = 0,
                    choice3 = 0,
                    choice4 = 0,
                    choice5 = 0, numOfVotes = 0, VoteSelect = 0;
                char altPoll;
                do
                    Console.WriteLine("Opinion Poll with Functions\n\n");
                    Console.WriteLine("***********OPINION POLL***********");
                    for (int i = 0; i < 5; i++)
                        Console.WriteLine(candidates[i]);
                    Console.Write("\nPlease choose your favorite candidate based on its corresponding number=> ");
                    VoteSelect = (Convert.ToInt32(Console.ReadLine()));
                    Console.WriteLine("\nQuestion....\n");
                    Console.Write("Would you like to do this again (y/n): ");
                    altPoll = (Convert.ToChar(Console.ReadLine()));
                while (altPoll == 'y' || altPoll == 'Y');
                if (altPoll == 'n' || altPoll == 'N')
                    if (VoteSelect == 1)
                        numOfVotes += choice1++;
                    if (VoteSelect == 2)
                        numOfVotes += choice2++;
                    if (VoteSelect == 3)
                        numOfVotes += choice3++;
                    if (VoteSelect == 4)
                        numOfVotes += choice4++;
                    if (VoteSelect == 5)
                        numOfVotes += choice5++;
                    totalVote += numOfVotes;
                    votePercent = VoteSelect/ totalVote;
                Console.WriteLine("\nCANDIDATE\t\tVOTES\t\tPERCENTAGE");
                Console.WriteLine("____________________________________________________");
                Console.WriteLine("Hilary Clinton \t\t  {0} \t\t{1:P}",choice1,votePercent);
                Console.WriteLine("Barack Obama   \t\t  {0} \t\t{1:P}",choice2,votePercent);
                Console.WriteLine("John McCain    \t\t  {0} \t\t{1:P}",choice3,votePercent);
                Console.WriteLine("Ralph Nader    \t\t  {0} \t\t{1:P}",choice4,votePercent);
                Console.WriteLine("Not Offered    \t\t  {0} \t\t{1:P}",choice5,votePercent);

    Hi Billy,
    What you're doing wrong is that in the do/while loop, you're not calculating anything. You do the calculations once the user has said they're done, but you're only capturing one choice in your do/while loop, consequently, their last choice is the only one
    used in your calculations.
    You should put some of the calculations in a separate method, and call it from within your do/while loop. Also, use a switch/case:
    static void SumSelections()
    totalVote++;
    switch (VoteSelect)
    case 1:
    choice1++;
    break;
    case 2:
    choice2++;
    break;
    case 3:
    choice3++;
    break;
    case 4:
    choice4++;
    break;
    case 5:
    choice5++;
    break;
    default:
    totalVote--;
    break;
    Then, your do/while becomes this:
    do
    Console.WriteLine("Opinion Poll with Functions\n\n");
    Console.WriteLine("***********OPINION POLL***********");
    for (int i = 0; i < 5; i++)
    Console.WriteLine(candidates[i]);
    Console.Write("\nPlease choose your favorite candidate based on its corresponding number=> ");
    VoteSelect = (Convert.ToInt32(Console.ReadLine()));
    SumSelections(); // I added this
    Console.WriteLine("\nQuestion....\n");
    Console.Write("Would you like to do this again (y/n): ");
    altPoll = (Convert.ToChar(Console.ReadLine()));
    while (altPoll == 'y' || altPoll == 'Y');
    And after the do/while (you won't need to check for 'n' or 'N'), just do this:
    Console.WriteLine("\nCANDIDATE\t\tVOTES\t\tPERCENTAGE");
    Console.WriteLine("____________________________________________________");
    Console.WriteLine("Hilary Clinton \t\t {0} \t\t{1:P}",choice1, (double)(choice1/totalVote));
    Console.WriteLine("Barack Obama \t\t {0} \t\t{1:P}",choice2, (double)(choice2/totalVote));
    Console.WriteLine("John McCain \t\t {0} \t\t{1:P}",choice3, (double)(choice3/totalVote));
    Console.WriteLine("Ralph Nader \t\t {0} \t\t{1:P}",choice4, (double)(choice4/totalVote));
    Console.WriteLine("Not Offered \t\t {0} \t\t{1:P}",choice5, (double)(choice5/totalVote));
    UPDATE: I've got the double cast wrong, Magnus has it correct (cast each to double before dividing).
    ~~Bonnie DeWitt [C# MVP]
    http://geek-goddess-bonnie.blogspot.com

  • How to hide filter view calculations in answers in obiee 11g?

    Hi,
    I have a requirement to hide the "CASE WHEN" statements which are there in the filter view while viewing the report in Dashboard. User dont want to see the calculation part in filter view instead they just want to see the selected dashboard prompt value. For e.g
    case when (column name1('column value1' IN '@{Presentation_var}' ) > 0 AND "Table name"."column name2"='column value2') or (column name1('column value1' IN '@{Presentation_var}' ) > 0 AND "Table name"."column name2"='column value2') then "table name"."column name" end
    or
    case when 2 statement
    and
    Case when 3 statement
    or Case when 4 statement
    therefore user wants only the bold text value(table name"."column name) to be displayed only not the calculation at front end.
    I can think of Narrative view but how to do that exactly? Please help.
    Thanks..

    try this, It seemed to have worked for me..
    Below was my case statement
    (CASE WHEN '@{var_brand}' = 'Value1' and "Compl"."RecTypeId" IN (5,8,9) THEN 1
    WHEN '@{var_brand}' = 'Value2' and "Compl"."RecTypeId" IN (11,12,13) THEN 1
    ELSE 0 END)=1
    I used it as a column in my analysis with the following formula
    (CASE WHEN '@{var_brand}' = 'Value1' and "Compl"."RecTypeId" IN (5,8,9) THEN 1
    WHEN '@{var_brand}' = 'Value2' and "Compl"."RecTypeId" IN (11,12,13) THEN 1
    ELSE 0 END)
    and I made a change to the name of the column in the analysis using custom column headings and put it as "Brand"
    and now put a filter on this column and filtered it for for the value 1
    and my filters view now shows the column Name "Brand" instead of the Case Statement..
    See if this process works for you..

  • How to do percent calculations based on a value

    Hello,
    I'm trying to figure out how to send workflow notifications to only 40% of a selected group..
    For example - We have a survey that is sent out once a user completes our Infopath form - right now the survey goes out to 100% of the users..
    In the future, we would like the survey to ONLY be sent to 1 in 4 users that complete the form - so 40% of all the users that complete will be sent the survey upon completion..
    I know I need to use calculated fields but not sure which formula will work and how to incorporate within our current workflow.
    Any suggestions or how-to's would be appreciated since I'm pretty new to workflows.
    Thanks
    -Andrew

    Hi Andrew,
    You cannot determine 40% of total people who completed the survey randomly.
    If you are using SPD workflow, then this looks tough to do as you have to first find out the total number of Completions (assume 100). (SPDW does not have a way to count the number of items in list. If you can create custom workflow in VS then you can
    use SharePoint API with the list ID and get the count:   myList.Items.Count). Then divide that number by 4 (assume 40). If this is decimal then round it up.  Find the names of top 40 or bottom 40 responses. You cannot randomize 40
    items from the list.
    In my opinion, you need to have fixed algorithm to create workflow out of this. Hope other's can pitch in and provide some inputs.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Succession Planning: Suitability Percent Calculation

    Hi Experts,
    How is Suitability Percentage calculated in Succession planning in Personnel Development Module?
    Please guide..
    Thanks and Regards,
    Neetha

    Hi,
    in SAP Standard this processes can only be maintained in the backend with code hrtmc_ppom. There definitely no frontend component for succession planning available. Therefor NAKISA STVN can be used, but with additional license costs....
    Some customers developed own WDA Apps for some of theses processes. Maybe this is an option for you.
    best regards
    Martin Hastik

  • Percent Calculations fail in Scheduled and Excel exports

    We have a order report that calculates a simple Percentage Filled calculation (i.e. -
    units_shipped/units_ordered).
    Units_Shipped = 120 and Units_order = 185, you would expect an answer of 64.86%
    When we schedule this report, the answer is 3800.00%.
    Also when we export the answer from scheduled reports the answer in Excel is 3800.00%.
    When we run the report live, the answer is correct.
    Database Software: v9.2.0.5
    Operating System: HP/UX
    Application Server Version:      10.1.2.0.2 (10gR2)
    Discoverer Version: 10.1.2.48.18
    Thanks for any help,
    Bob

    Hi Bob
    No I'm afraid not. This issue was mentioned to be in passing by someone from within Oracle several months ago. After that the trail went cold and I just kept a note in case someone started reporting issues.
    You might want to raise an SR with support and quote what I have said to see if one of the myriad of patches that have come out over the past year could have fixed it. You might also want to ask whether the newer 10.1.2.2 fixes it.
    Best wishes
    Michael

  • Percent Calculation Assistance Needed

    What would be the best way, performance wise, to set a calculation that returns the percentage of a budget that is spent, even if the budget is set to 0?
    Using just spend/budget as a custom item doesn't work, since sometimes the budget is 0.
    As info, the spend is a summation of several invoices but the budget is not a summation. Should I be using the calculation of SUM(Spend), instead of using the default aggregate of SUM?
    Budget is setup with a default aggregate of detail. Should that be changed?

    Actually, you have two separate issues to deal with (ignoring the performance for now... we'll work on that later if necessary ;-):
    1) two measures to compare, with different levels of aggregations and
    2) divide by zero problem.
    Savest way to solve 1) is to create a calculation with something like SUM(spend) OVER (PARTITION BY ... data-items-you-want-to-aggretate-on i.e. month, department ORDER BY same-items).
    This makes sure that 'spend' always aggregates to the level you want. Disadvantage is that the calculation needs to be adjusted if you want another level of detail.
    Now 2), you have to include an explicit "work around" for this. For example: CASE WHEN budget IS NOT NULL (or <> 0 - depends on contents of column budget) THEN (budget/sum(spend) - calculation you just created)/100 ELSE xxx. You decide how to handle the case where budget is zero, what should be after the ELSE. Should variance (result) be shown as 100% or 0% or ...?
    Succes!

  • Percent calculation overflowing

    Dear SD gurus,
    Please guide me through this question:
    1.  when we run a contract detail report with number .172889100., system times out. The Net price is considered
         for 1000 units and cost is considered at 1 unit and percentage calculation is overflowing.
    Thank you!
    Raji

    I think there's still some confusion about how calculations are actually being processed with regards to execution precedence.
    Check this analysis here: http://slc02ojq.oracle.com:7780/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FYour%20Custom%20Public%20Content%2FExecutionPrecedence

  • Reg : PF Calculation for Layoff Emp

    Hi My client have a Scenario
    The requirement is as follows
    The client has concept of Retainer ie Off Season Layoff Employees , They will be laid off with no work and will be paid some % of amount based on their Grade.
    For them when layoff action is run automatically additional Wagetypes will be generated
    Normal                                                                 Layoff
    1000 – Basic Pay                                  1006 – Retainery Basic Provision
    1010 – FDA                                          1016 – Retainery FDA Provision
    1020 – VDA                                          1026 – Retainery VDA Provision
    Total of 1006+1016+1026 is stored in 1340 RETAINERY Wage Type
    For them PF Related Wage types are
    3PER – Employer PF Contribution
    3PPE – Employer Pension Contribution
    3PPF – Employee PF Contribution
    Now 3PPF = 1340*12%   -  some XXXX amount
             3PPE = if emp age is more than 58 no calc
                    If less less then 1340*8.33%  -  some YYYY amount.
    Till here iam getting correct  now I need to calc 3PER
    3PER = if Emp age is above 58 then 1340*12%   this is also getting correct
    But when age is less than 58
    3PER = 3PPF -3PPE    this is not calculation and getting error
    i have written the PCR as
    XY17 Provision PF calculation
        3
          1340 RETAINARY
            CPAGE 58N  Comp.age/employee
              <
                AMT=S 1340 Set
                AMT%12     Percent calculation
                ROUNDGK100 Round AMT to next
                AMT- 3PPE  Subtraction
                ADDWT 3PER OT   Output table
    iam getting error as
    This error message is currently only display in the old log.
    Please choose 'Old Log' and go to the end to display the error message
    and in  the OLD LOG showing
    ungültiges Feld $ in Zeile: 3PPE
    XY1731340<         AMT=S 1340 AMT%12     ROUNDGK100 AMT- 3PPE  ADDWT 3PER
    please suggest on this

    Hi Narendra,
    For You query
    3PER = if Emp age is above 58 then 1340*12%   this is also getting correct
    But when age is less than 58
    3PER = 3PPF -3PPE    this is not calculation and getting error
    you can try this logic
              ADDWT *
      1340
              CPAGE 58N
                                       AMT=1340
                                       AMT*12%
                                       ADDWT3PER
                                <
                                      AMT=3PPF
                                      ADDWT& 3PPF
                                      AMT=3PPE
                                      AMT+& 3PPF
                                      ADDWT 3PER
    Hope this will help you
    Thanks & Regards
    Saroj Hial

  • Calculation based on totals in Crosstab

    Hi,
    I have the following crosstab.
    Vendor 1234
         Dc Nbr 1     2     4     
    Sum Invoice Amt      1387.04     300.82     327.29     2015.15
    Sum Cost 44.86 57.43     25.54     127.83
    Sum Advanced Cost     102.44     0     0     102.44
    Sum Consolidation Cost     30.37     0      0     30.37
    Sum Allowance Amt     27.74     6.02     6.54     40.30
    Net Freight Cost     149.93 51.41     19     220.34
    Freight Percent     10.81     17.09     5.81     ****
    The last column are Row totals for those fields.
    What I need is how to get the **** to be 10.93 which is the Freight Percent calculation value based on the Total Column fields. The
    Frieght Percent field is calculated as follows for the rows.
    ( NVL(Sum Cost,0)+NVL(Sum Advanced Cost,0)+NVL(Sum Consolidation Cost,0)-NVL(Sum Allowance Amt,0) )/NVL(Sum Invoice Amt,0)*100                         
    I have tried to do the Row Total with Average, Sum, etc, but not getting the answer we need.
    Table structure is 3 rows per vendor with 1 row per dc nbr.
    Any help would be greatly appreciated.
    Thanks
    Edited by: clifford_d on Dec 4, 2008 9:46 AM

    See if this explains it better for my crosstab with page items of Vendor Number 1234.
    Vendor 1234
    Dc Nbr 1 2 4 AAAA
    Sum Invoice Amt 1387.04 300.82 327.29 2015.15
    Sum Cost 44.86 57.43 25.54 127.83
    Sum Advanced Cost 102.44 0 0 102.44
    Sum Consolidation Cost 30.37 0 0 30.37
    Sum Allowance Amt 27.74 6.02 6.54 40.30
    Net Freight Cost 149.93 51.41 19 220.34
    Freight Percent 10.81 17.09 5.81 ****
    As stated before, Frieght Percent is a calculation I created in Discoverer that looks like this :
    ( NVL(Sum Cost,0)+NVL(Sum Advanced Cost,0)+NVL(Sum Consolidation Cost,0)-NVL(Sum Allowance Amt,0) )/NVL(Sum Invoice Amt,0)*100
    Column AAAA was created in Discoverer using Sum of field and show to the right.
    What I need is for the **** to be the correct calculation for the totals in column AAAA. If I use do a total for Freight Percent using the Cell Sum I get 33.70., what I want is it to be 10.93, which is (127.83 + 102.44 + 30.37 - 40.30)/2015.15*100.
    If I use an Average Total row for Freight Percent, I get 11.24 which is 33.70 / 3 (the 3 would be the # of dc nbr's)
    I did start with using the detail level data to create this crosstab. Then I made a new version and used the SUM data. I seem to get the same results but am still having issues with the one **** value.
    Hopefully this explains it better.
    Thanks for the ideas so far.

  • Sum of calculated key figures in a report

    Hi,
    i have the following report :
    Country      percent
    FR                0%
    SP               100%
    GE               100%
    UK               100%
    I want to display at end a line with : sum percent / number of country
    The result should be : 300/4 = 75%
    but my result is 60 / 4 = 15%
    ( value 60 corresponding at percent calculated for all the country
    - formul to calculate percent for one country is applicated for all the country in global).
    Version 3.1
    Any suggestion is highly appreciated.
    Thanks in advance.
    JC.

    Hello JCA,
    Create a Formula or CKF like this (FR + SP + GE + UK) / 4. This will give you the average of these four keyfigures.
    In the Column it will be like this
    FR
    SP
    GE
    UK
    CKF/Formula containing the above
    Thanks
    Chandran

  • 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

Maybe you are looking for

  • ITunes 7.2 error message (-9813)

    Since installing iTunes 7.2, everything seems to be working and my podcasts are downloading, but when I try to purchase music, I get an error message saying, "iTunes could not connect to the iTunes Store. An unknown error occurred (-9813). Make sure

  • Function module to get customer balances

    Hello , is there a FM to get customer balances?

  • Help with Unix in Java

    Hi All, I am currently stuck in a program that I am coding. I have written a java program that should execute a system command and capture the output of the command. Here is my code: String boxname=""; String box = new CmdExec().run("echo $__box_name

  • How to reconfigure Cards installed in PCI slots

    Hi All My customer has OEL linux. installed on his HP DL380 G7 server. It has 4 Emulex LPe11002 dual port cards installed. The cards in PCI slot 3 and 5 are needed for network connection. So he needs to configure the cards in PCI slot 3 and 5 to be u

  • Hibernate datatable component

    Hi, I'm building a component to display a datatable from a hibernate select statement. I want to have pagination and a sorting mechanism. The problem now is that my component goes two times to the database. First time when he restores my view (lifecy