Using DynamicCalc Members in a Calculation

I am facing a weird behaviour while I am trying to use DynamicCalc members in a calculation
I have 2 DynamicCalc members i.e. Total Volume, Total Revenue
Differences between them are the AccountType and Data Type properties. For the Total Volume, Account Type is SavedAssumption and Data Type is Unspecified, for the Total Revenue the Account Type is Revenue and Data Type is Currency
I was trying to perform the following calculation:
Total ARPU = Total Revenue/Average Subscribers
Total Usage per Sub = Total Volume/Average Subscribers
The first one works properly but the 2nd one result in an incorrect value and unfortunately I was unable to trace where did this value com from.
Any advise?
Thanks
Mohamed Adel

First you should check each item individually in business rule whether individual items are appearing correct or not.
First try
Total Usage per Sub = Total Volume
if the values is correct then try
Total Usage per Sub = Average Subscribers
If they are appearing correct then proceed for Total Usage Per Sub.
Total Usage per Sub = Total Volume/Average Subscribers
Through this procedure you will most probably identify the problem
Edited by: ar_aff on Apr 25, 2011 6:36 AM

Similar Messages

  • Would like to use apex_item to popup a calculator for a text item field, is this possible in apex 4.2.2?

    would like to use apex_item to popup a calculator for a text item field, is this possible in apex 4.2.2?

    I imagine you could reverse engineer what APEX delivers when you declaratively choose text field with calculator.
    For example, the generated source includes an event:
    onclick="calculatorPopUp_p_t01();"
    These get added to the attributes of your apex_item.text() call.
    Alternatively you just paste the entire generated content, escaping the necessary data.

  • MDX Query using BottomCount to limit Median calculation returns null

    I'm building a new cube that includes some person age values that aren't useful when summed, but are
    useful when the median is determined. The measure group that contains the measure for the age has a 1-1 relationship with a dimension in the cube because both use the same table as the source. This is important because I use the key attribute of the dimension
    as the set expression in the Median function to prevent any summation before the median is found. Here is the code for the original median calculation:
    MEMBER Measures.[Median Age] AS
    MEDIAN(
    [Placement Dimension].[Id Removal Episode Fact].Members,
    [Measures].[Age At Removal Months]
    This median naturally represents the half-way point in the series of values. My analysts have also requested
    median-type values at the quarter and three-quarter points in the same series. I've been able to accomplish this for the three-quarter point by nesting the TopCount function in the set expression of the Median function to limit the set to the last half of
    the records and then find the median point like this:
    MEMBER Measures.[75th Percentile] AS
    MEDIAN(
    TOPCOUNT(
    [Placement Dimension].[Id Removal Episode Fact].MEMBERS
    ,Measures.[Episode Count] / 2
    ,Measures.[Age At Removal Months]
    ,Measures.[Age At Removal Months]
    However, my attempt to use the BottomCount function in the same way as TopCount to find the quarter point
    in the whole data set by limiting the calculation's set to the first half of the data always returns null. Here is how I've formed the code:
    MEMBER Measures.[25th Percentile] AS
    MEDIAN(
    BOTTOMCOUNT(
    [Placement Dimension].[Id Removal Episode Fact].MEMBERS
    ,Measures.[Episode Count] / 2
    ,Measures.[Age At Removal Months]
    ,Measures.[Age At Removal Months]
    And here is the query that returns the values:
    SELECT
    Measures.[Episode Count]
    ,Measures.[Median Age]
    ,Measures.[25th Percentile]
    ,Measures.[75th Percentile]
    } ON 0
    ,[Date Begin].[Calendar Hierarchy].Year.&[2011]:[Date Begin].[Calendar Hierarchy].Year.&[2014] ON 1
    FROM [POC Cube]
    WHERE
    [Age at Removal Mos].[Age in Years List].[Age Year].&[0]:[Age at Removal Mos].[Age in Years List].[Age Year].&[5]
    I don't know why the end result is always null. I don't have any null values in the data for this measure, and I know what values I should be seeing because I've found the median records manually in results from a SQL Server query. I've tried using TopCount
    and multiplying Measures.[Age At Removal Months] in the TopCount function by -1 to workaround the descending sort, but I still get nulls. I've also tried separating these queries out so the quarter point and three-quarter point calculations aren't run together,
    but I still get nulls for the quarter point calculation.
    I'm open to any help fixing this situation by modifying my current code or by using alternate methods, but the end result has to be dynamic enough to be used as a calculation in the cube. Thanks!

    The links might helps.
    http://technet.microsoft.com/en-us/library/ms144864.aspx
    http://www.mssqltips.com/sqlservertip/3034/sql-server-analysis-services-ssas-2012-top-and-bottom-functions/
    http://www.sqlservercentral.com/blogs/bradleyschacht/2012/03/12/mdx-functions-bottomcount/

  • Leaving some level 0 members out of calculation

    Hi Everybody,I have two measures in my Accounts dimension. The first can take advantageof the Outline consolidation of the Products dimension, but the second needsto skip some level 0 members. I have tagged the the members I don't want toconsolidate with an UDA "Base".I tried to use CALC ALL EXCEPT MBR(@UDA(Products,Base)); But this causes anEssbase error when calculating. (Not in a calcscript Editor).Any workaround ideas to to leave these members out of the consolidation.Thanks in advantage.

    Question: Is Your Level zero Data is calculated or Loaded through Data files ?Answer1: If it is loaded Data Then Follow Below Procedure.Fix((@UDA(Products,Base))ClearData "Measure you want special Calc" ;Endfix ;Load Data for the lowest level where the memebers are tagged with Base UDA.Answer2: If it is calculated Data Then Follow Below Procedure.Then run the calc Script to Populate lowest level Data if needed.Please let me know if you have any Questions ?ThanksSreenivas

  • How to use FORMULA in ABAP for calculation

    hi all,
    i have to do some calculation in my report and because of this reason i want to use formula. Could any body tell me the best way to use of formula for calculation purpose in ABAP or any other way?
    Thansk,
    abapfk
    Moderator Message: You don't need to open a thread to know the answer for this basic question. A simple search or using ABAP Help will help in getting the answer.
    Edited by: kishan P on Oct 4, 2010 11:20 AM

    There is another option to do the same thing.
    What can be done is, create running total. You can create running total from field explorer by right clicking and then new. Create Running Total Field dialog box appears. In that, provide the following:
    i)     Field to summarize - provide the field to maximize (i.e. id)
    ii)     Type of summary u2013 Maximum
    iii)     Evaluate u2013 On change of field (provide the name)
    iv)     Reset u2013 Never
    Keep this Running total field on the details section and suppress if you do not want to show it in the details section. Place this field wherever you want in the report.
    Hope this helps you. Let me know your comments.

  • BEx Formula Use of 'Logical And' and Calculation for Gross Margin

    HI Bex gurus.
    Having an odd time with what should be a simple formula to handle the display of gross margin (GM). The goal here is to display GM% properly and the requirement is as follows
    If GM <= 0 then 0.0
      Else
    If GM > 0 and Sell > 0 then ( ( sell - cost /sell ) * 100 )
      Else
    If GM >0 and Sell = 0 then 100
    I am familiar with bex formulas and have referenced the help docs on booleans here -
    Boolean Operators - SAP Business Explorer - SAP Library
    But what is odd is that if I use a calculation or a CFK in the IF, THEN with a LOGICAL AND, the formula does not report correctly
    If I put in a static value, like 77, the expected logic is followed.  I have tried making sure have extra parentheses and changing the order of the statement, to no avail!  I could use some extra brains on this puzzling matter, so you help is greatly appreciated and will award points!
    Thanks
    lee lewis
    Here are the formulas in text and below screen shots.  Wish could copy and past formulas to and from editor!
    GM%77
    ( ( ( 'Order GM' >0 ) AND ( Order Sell  >  0 ) ) == 1) * 77 + ( ( ( 'Order GM'> 0 ) AND ( Order Sell == 0 ) ) == 1) * 100 + ('Order GM' <= 0) *0.0
    GM%
    ( ( ( 'Order GM' >0 ) AND ( Order Sell  >  0 ) ) == 1) * 'REF GM%' + ( ( ( 'Order GM' > 0 ) AND ( Order Sell == 0 ) ) == 1) * 100 + ('Order GM' <= 0) *0.0
    'REF GM%
    (order  sell - order cost /order sell ) * 100 )
    GM%77
    GM%

    Shouldn't you change on of the brackets in your REF GM% ?
    'REF GM%
    (order  sell - order cost /order sell ) * 100 )
    I would put that as
    'REF GM%
    (order  sell - order cost) /order sell  * 100 )
    Not sure what you mean with those red arrows... but in both cases you would be dividing by 0 (order sell = 0).

  • Summary field of subreport used in main report formula calculation

    I have a summary field in a subreport that I want to use in a calculation of a percentage using a second summary field in the main report as the denominator.  How do I do this in a new formula?

    Thank You Ian Waterman,...
    Couple of questions:
    Where you say "... in subreport
    @ eval
    whileprinting records;
    shared number x:=your summary
    Am I correct that this is to be a new formula created in the subreport design?
    What should I put for the "x" in the formula?
    Should the "your summary" be:  "DistinctCount of Activated_Survey.Seq.Incident"  which I have showing in the Report Footer of the subreport?
    Where in the subreport should I place the formula?  Can it be hidden?
    Where you say "In subreport header..."
    @reset
    whileprintingrecords;
    shared number x:=0
    Am I correct that this is to be a new formula created in the subreport design?
    What should I put for the "x" in the formula?
    Where in the subreport should I place the formula?  Can it also be hidden?
    Where you say "In the main report in section after subreport..."
    I have the subreport sitting up in the main Report Header as I only want the subreport summary field showing. 
    In the subreport, I have the Report Header and Details section hidden.
    @calc
    whileprintingrecords;
    (shared number x / main report summary) * 100
    Am I correct that this is to be a new formula in the main report?
    However, what I need to have happen is that the main report summary field of: "Count of Answered_Survey.Seq.Incident" needs to be divided by the subreport summary field of "DistinctCount of Activated_Survey.Seq.Incident" * 100.
    What do I modify in the formula?
    Thanks.

  • How to use two members from same dimension in Dimension Layout, for HFR

    I am developing a report using Hyperion Financial Reporting. I have taken two dimensions in rows and remaining dimensions in column. After completing one section, I need to make new section of the report on the same grid and page with just adding one more member of the second row dimension. That is data should be the summation of two members of the dimension, say "ACCOUNT".
    Kindly guide me the steps. Also i would like you to know that i am begineer with Hyperion Financial Reporting.
    Thanks
    Roshan

    Can you give some explanation of your gird layout and what you are trying to achieve?
    Like Account and Scenario in row
    Year, Market in columns
    Product in Page
    Regards
    Celvin
    http://www.orahyplabs.com
    Please mark the responses as helpful/correct if applicable

  • Using K Means in a Calculation View

    Hi Experts,
    Can you please help me with the below scenario.
    I am trying to use K-Means function to perform clustering on customer data. I have the below columns:
    Attributes:
    Customer ID, Home Ownership Status
    Measures:
    Customers Debt to Income Ratio, Annual Income
    1. Is it possible to use multiple attributes given above to perform the clustering as i read that clustering can be only done using measures.
    2. I need to pass the number of clusters dynamically from report to the K-Means function to perform clustering. I tried to use calculation view to get this parameter from user at runtime and pass to the input parameter table of K-Means function. But the problem is, calculation views will not allow any kind of DDL statements like create/drop/insert/delete/update etc.
    3. Further i would like to understand how to use the results of the K-Means clustering delivered via two tables one having clusters, distance and other having clusters and remaining measures to build a scatter chart. How this can be achieved.
    Please help.
    Thanks and Regards,
    M.N.Adinarayanan

    Hello,
    Would you share your dataset maybe I can help.
    Kind regards.

  • Using "-" in a variable without calculating

    This should be an easy one... when I have a # in the output,
    to cancel it out, I add another one (ie. color=##ffffff). But I'm
    having problems with the same type of thing if I use a hyphen/minus
    sign "-".
    I have three variables that I'm trying to merge as:
    #variable1#-#variable2#-#variable3#
    so the number when I do CFSET should be something like
    1234-5678-9000
    I tried adding another - sign and it just calculates that
    too.
    But if I try to set that as a variable, it does the
    calculation instead. I hope this makes sense :)
    Is there a way to cancel out the - so it doesn't calculate it
    and just places it in the variable? I'm using CF 5.
    Thanks!

    > I have three variables that I'm trying to merge as:
    >
    > #variable1#-#variable2#-#variable3#
    Doing that you're treating them like numeric values with the
    minus operator
    bewteen them, hence it's interpretting the expression
    literally.
    What you need to do it to consider that what you're trying to
    do is to
    create a string. So you need to put string-delimiters around
    the
    expression, or use the string-concatenation operator:
    "foo bar"
    or
    "foo" & " " & "bar"
    Adam

  • Using FormCalc to Automate Date Calculations

    How do I use FormCalc to add days to a date and automatically calculate a second date?

    Thanks for the feedback, but I've checked this out in depth before coming to this discussion group. It does not show me how to calculate the date as I need it. I have a timeline document where users will enter an initial date. Based on the initial date, I want to automatically calculate the milestone dates by adding the number of days in wait time. For example, the user will enter Jan 1, 2013. The first milestone should occur 3 days later, so the calculation would add 3 days to the initial date and automatically return a date of Jan 4, 2013. There are a number of milestones and automatic dates that occur throughout this 80-day timeline.
    Do you have any idea of what that calculation would be?

  • Bex Query- Use of ABAP code in Calculated Keyfigure/formula

    Dear Experts.
    I am wondering if there is any way to use ABAP in the formula editor of the Bex Query desinger.
    I have to build a report with very complex formulas (a lot of key figures, comporations, If then else ) an I think it would be easier to build all then in ABAP.
    So what I am looking for is any kind of user-exit/Badi that allows to calculate a Calculated Key figure/fomula in ABAP with the same data that is availabe in the fomula editor.
    If SAP is not providing this, this is clearlly a must for next releases.
    Thanks a lot and best regards,
    Alfonso.

    Dear Ananda.
    Thnaks for your reply, but could you please extend your answer a little bit more?
    As far as I know, Formula customer exit variables are only called once and they don´t provide the rest of the keyfigures and characteristic use in the drilldown level, so for my needs they are useless.
    Regarding IF-then-else statement in the formula, I already know about it. Actually what I am trying to avoid is to use them. In order to build my query I might need to build really big formulas with a lot of If-then-else, making it quite complex what the formula is doing. This is the reson I want to do it on ABAP.
    Please any other ideas?
    Thanks a lot.

  • Use dimension in HSF freeform calculation

    Hi everybody,
    I want to use dimension structure in Oracle Hyperion Strategic Finance Application.
    I assigned a user defined dimension, to an account. Then, I used a different dimension for any other account. e.g: v300.00.001/A1 - v300.00.002/B1
    Now, I want to create a freeform calculation for an account that names as v300.00.002/B1. My formula is; v300.00.002/B1= @DIM(v300.00.001, "A1")
    But this fomula, send error "HSF14359: The formula for v300.00.001/A1 requires v300.00.002/B1 which does not exist in this file.
    How can I solve this problem? Can I use freeform calculation with dimensional structure in HSF?
    Thanks.

    It's extremely annoying that the FLD() command isn't yet availlable in NW, unless it's coming with 7.5 or has been included in one of the more recent support packs.
    As a an alternative you may be able to use the following MDX routine:
    Returns the value of a property of the current member of a dimension
    *function PRO(%DIMENSIONNAME%,%PROPERTYNAME%)
    %DIMENSIONNAME%.Properties("%PROPERTYNAME%")
    *endfunction
    Unfortunately I've never been able to use this with a When statement, so you may have to ask an ABAP resource to develop a BADI to achieve your required results.

  • Time zone used fot GI/MAD time calculation

    Hi,
    We have been trying to define working shifts/ cutoff for shipping points. While scheduling SAP is using the user time zone to calculate the MAD time, GI time etc. I need it to use a specific time zone that I define and not the time zone of the user processing the document. There is a field for time zone at the point where we allocate the shift definition to the calendar but it is not working. Is there anyway to achieve this ? The strange part is that it is not considering the Planr or shipping point time zone , but the user time zone to do all calculations.
    Thanks,
    Hari.

    Dear Hari,
    Usually in SAP logisticss the standard is to take date and time from the
    location where the user is located, there is reasons for it for example
    imagine the case below:
    "A user is working in time zone EST (GMT-5h), the shipping point is in
    time zone CET (GMT+1h). At 11 p.m. the user enters today's date,
    May the 9th, 2011 as actual goods movement day. The system now
    calculates the date using the time zone of the shipping point and
    determines 05:00 CET as actual goods movement time. But this time
    refers to May, the 10th. After pressing <enter>, the date and time would
    again need to be adopted which is confusing for the user.
    If the date is kept unchanged, it is also not correct as then the date
    is in the past (May, the 9th, 05:00)."
    There is not a possibility to of one this system behavior in a way
    that suits fine in every situation.
    I have researched and found the following information though:
    If you enter a time in the dialogue it is independent where the user is.
    The systems takes it as time zone of the shipping point as long as the
    time zone is maintained there otherwise, the local time zone is taken.
    There is no calculation on the user input programmed as a date change
    could lead to confusion...
    Since the existence of the note 1596670 if you enter a time in the dialogue
    it is independent where the user is.
    Best Regards,
    Christian Rosa

  • Use column alias in another calculation

    Database:Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
    Is there a way to use a column alias in an another calculation within the
    same query? Since I am using some long and complex logic to compute total1
    and total2, I don't want to repeat the same logic to compute the ratio of
    those two columns. do you have any suggestion other than nested sub-query or view?
    select
    total1 = sum(case(long complex logic)),
    total2 = sum(case(another long complex logic)),
    ratio = total1/total2
    thanks in advance

    Jimmie_M wrote:
    Database:Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
    Is there a way to use a column alias in an another calculation within the
    same query? Since I am using some long and complex logic to compute total1
    and total2, I don't want to repeat the same logic to compute the ratio of
    those two columns. do you have any suggestion other than nested sub-query or view?
    select
    total1 = sum(case(long complex logic)),
    total2 = sum(case(another long complex logic)),
    ratio = total1/total2
    thanks in advanceHi,
    Use oracle's with clause
    WITH test_data
    AS
    SELECT sum(case(long complex logic)) total1,
    sum(case(another long complex logic)) total2
    from your_table_name
    SELECT total1/total2
    from test_data
    WHERE....Regards,
    Achyut Kotekal

Maybe you are looking for

  • Retrieve the date a file was created in the background

    EDITED CONTENT---- Apologies all...I just realized there is a specific forum for this type of question.  I will post it there. Thanks Marilyn for point this out>>>>should have read it first as suggested.  /message/2572763#2572763 [original link is br

  • A Problem With Sorting via Applescript

    Hello everyone. I have always lurked these forums and learnt many things along the way, but this is my first question, and I hope that someone can help me out. I apologise for the huge post. I have created a spreadsheet in Numbers that I plan to use

  • No xv output with recent VLC

    There is no option for xv output anymore, it defaults to the slow x11 output, is there a reason for this? As I can tell from the PKGBUILD, there were no significant changes, that could cause this loss of functionality.

  • Stop() not working in presentation slide

    I have a very simple stop() action in my first and last frames of a slide that is under the master slide. No other code. The oddest thing is that the first stop() does not work, though, the last stop() action does work. I figured this is something to

  • Pink screen when I switch on my mac

    There is a problem after the latest update before yesterday. When I switch on my iMac, there is a pink screen before login to the desktop. Just half second then back to the normal white and grey color. I called apple care, they taught me to press shi