Formula for this s cenario

Hi all,
I have a scenario like
Geo TIM ACC
US JAn A 100
US FEb A 500
US JAN C 50
US FEB C 20
UK JAN A 1000
UK FEB A 2000
Uk JAN C missing
UK FEB C missing
when we are missing the combination of above i have to take US combination value according to Month(instead of Uk JAN C missing i need UK JAN C 50
instead of UK FEB C missing,i need , UK FEB C 20)
please iam trying with cross join but its giving wrong result
help me on this
Thanks in Advance
Edited by: user8815661 on 20 oct. 2010 06:04

It is unclear to me from your post what you are trying to do. are you trying to replace values in other countries with US value if the country value is missing for a given month?
If so, You might try
Case when([Geo].currentmember = Missing) then
[US]
Else
[Geo].currentmember
End

Similar Messages

  • Is there a function/formula for this?

    I have the following 2 tables.
    I would like a forumla/function to put into cells Table 2::B7:H17 that finds every time there is an 'H" in Table 1 for the selected person in Table 2::C2 and populates the date under the correct day. I also want it to run chronologically so that each week is on a separate row.
    Table 2 is showing what i would like it to look like if the function/formula were to work correctly, based on the information in Table 1.
    Is this even possible?
    Hope somebody can help

    Hi cjeccles,
    The hard part as I see it will be to get your data to wrap under the days of the week. Is each period 4 weeks?
    quinn

  • How to construct a formula for this logic.

    Hi,
    I have a requirement like, i need to derive a column with a calculation.
    Here is the psedocode,
    count of occurance (deptno=10)/count (deptno=10)
    Desired result:
    If the deptno =10 occurs 3 times in the table then at the fist time the calcuation should be,
    1/3, second time 2/3, third time 3/3 and so on.
    How can i construct this in a formula/report/rpd design. Please help.
    Any help will be appreciated with points.
    Thanks.

    The running aggregate will help you do this, i.e. RCOUNT, RSUM
    This should work:
    RSUM( CASE WHEN deptno = 10 THEN 1 ELSE 0 END )
    to give you the running count of the rows where deptno = 10
    Then you can divide ths by
    SUM( CASE WHEN deptno = 10 THEN 1 ELSE 0 END )
    not sure if that will work 100% or not but try the first statement so you can see the running aggregate working, then try the division to see if it works:
    RSUM( CASE WHEN deptno = 10 THEN 1 ELSE 0 END ) / SUM( CASE WHEN deptno = 10 THEN 1 ELSE 0 END )

  • Can I make a formula for this ?

    HI !
    I have a table that contains 2 columns : var, value
    I want to do something like
    if var = "CPUCount"
       return value
    else
      skip record !
    I use a formula but it automatically prints "0"s if the above condition doesn't match.
    I just want to print the value of the var named "CPUCount" and skip all other var values.

    My formula looks like this:
    If {table.Var} = "CPUCount" Then
            tonumber({table.Value})
    Can I add something like
    else
       NULL  // skip or something
    Can I use a formula or do I have to use something else like Select Expert...

  • How to write formula for 0calweek from 0calmonth

    Hi Friends,
    I'm doing weekly report. my infocube, data coming from three sources, two sources are ODS. In ODS doesn't have 0calweek only have 0calmonth. When i see my report i can't view those ODS data in the report.
    So i want write a formula. How do i write a formula for this.Pls give me the formula.
    Thanks & Regards
    Siri

    I got the solution by creating calweek formula based on Syster date.
    Siri

  • Formula for completion date

    Need to create a formula for this..
    If a project completes on A and the date lies between B & C then "display late by 10 days"
    if a project completes on D and the date lies between E & F then "display late by 20 days"   and so on , there are 100's of projects and hundreds of completion dates.
    what would be the best approach for this?
    Any suggestions appreciated

    You really need a Project target or due date and then calculate days late
    @Late
    If completiondate > targetdate then
    datediff("d", targetdate, completiondate) else 0
    You can then do banding on this
    @overdue
    If @late = 0 then 'Not Due' else
    If @late in 1 to 9 then 'Less than 10 days overdue'
    else
    etc.
    Hope that helps
    Ian

  • Fox formula for actual/plan data  - Planning function

    Hello,
    I am working on the following scenarios for developing a  planning functions for a monthly forecast.
    It is rolling montly forcast where user starts the planning in Jan and he has to show the actaul value for the month of Jan and blank values for the remaining 11 months of the year and then the user post his new forecast values for the remain 11 of the year(to replace initial balnk values) so that the data will be saved to real time cube with version v108
    In Feb, Jan & Feb months has to show the act values and remaining 10 months has to show last month forecast data. The the user may revise the forecast for the 10 months and then we have to write the data to the real time cube with version v208
    In Mar, Jan, Feb and Mar has to show the actual values and the reamining 9 months has to show the last month forecast and then users may revise the forecast data and then i have to write back to the cube with version v308.
    I want to automate this process for all the months and all years without manual intervention. So, i decideed to write a fox formula for this scenario with following draft code.
    I will get the fy period & year as a variable values and then take the system date into the variable
    for each fy period
    if the fy perio <= sys date.
      {version, infoprovider,value type,amount} = {0,act cube, 10, 0amount)
    else
    {version, infoprovider,value type,amount} = {result,plan cube, 20, 0amount)
    endif.
    result will be calculated on the separe routine and populated here
    case (fy per)
    when 01.
    concatenate v1 with fy+2(2) into y
    result = v1+y
    when 02.
    concatenate v2 with fy+2(2) into y
    result = v2+y
    when 03.
    concatenate v3 with fy+2(2) into y
    result = v3+y
    when 04.
    concatenate v4 with fy+2(2) into y
    result = v4+y
    when 05.
    concatenate v5 with fy+2(2) into y
    result = v5+y
    when 06.
    concatenate v6 with fy+2(2) into y
    result = v6+y
    when 07.
    concatenate v7 with fy+2(2) into y
    result = v7+y
    etc...for all months
    So, can you please let me know the best way to implement this (either by fox formuls or exits)...your inputs are really appreciated
    Thanks,
    Srini
    Edited by: srini on Mar 28, 2008 12:05 PM

    Hi Srini,
    If I 've understood u r problem clearly ,You have to write two Fox Functions and you can call exit variable in both to check the system date.
    I think first you should create exit varriable which would return the system date,use the same variable in data slice to lock the data till current period.
    After that create one fox restricted with any one version where you can copy the data for planning .for example:-
    1)First Fox:-
    DATA TIM_FISCPER TYPE 0FISCPER.
    TIM_REF_FISCPER = VARV(ZEXIT_FPER).
    Get the last month
    version using modlue or any another logic .(v108)
    FOREACH TIM_FISCPER.
        IF TIM_FISCPER <= TIM_REF_FISCPER.
      {0amount,version(001) ,tim_fiscper} = {0amount,version(000) ,tim_fiscper}.
    else.
      {0amount,version(001) ,tim_fiscper} = {0amount,version(v108) ,tim_fiscper}.
         endfor.
    Its just n example use the granularity according to the requirement.
    2)Second fox would save the changed plan data:-
    DATA TIM_FISCPER TYPE 0FISCPER.
    TIM_REF_FISCPER = VARV(ZEXIT_FPER).
    Get the last month
    version using modlue or any another logic .(v208)
    FOREACH TIM_FISCPER.
        IF TIM_FISCPER > TIM_REF_FISCPER.
      {0amount,version(v208) ,tim_fiscper} = {0amount,version(001) ,tim_fiscper}.
         endfor.
    Here ZEXIT_FPER is an exit variable created using cmod and populated with system date.
    Hope it will helpful for u.
    Rgds,
    Indu

  • Formula for ascending column of numbers

    Hi,
    I never use Numbers so forgive a crazy simple question.
    I have a list of names and other details in Numbers. I'd like to add a column to the very left that, for each row, has a number corresponding to each "record".
    These numbers would ascend from 1, as each row ascends.
    What would the formula for this be? I hate to have to enter each manually. There are hundreds of records.
    Thanks so much for your help.

    Is this what you are wanting to do:
    Autofill cells
    You can quickly add the content from selected cells to adjacent cells without typing it. You can also fill a row or column with a logical sequence of data—for example, a series of digits, dates, or letters.
    Do any of the following:
    Autofill the content from one or more cells into adjacent cells: Select the cells with the content you want to copy, then move the pointer over a border of the selection until a yellow autofill handle appears. Drag the handle over the cells where you want to add the content.Any data, cell format, formula, or fill associated with the selected cells is added, but comments aren’t. Autofilling overwrites existing data with the value you’re adding.
    Autofill sequential content or patterns into adjacent cells: Type the first two items in the series in the first two body cells of the row or column you want to fill; for example, type A and B. Select the cells, move the pointer over a border of the selection until a yellow autofill handle appears, then drag the handle over the cells you want to fill.You can also autofill cells using a pattern of values. For example, if two selected cells contain 1 and 4, the values 7 and 10 are added when you drag over the adjacent two cells (values are incremented by 3).
    Autofilling doesn’t set up an ongoing relationship among cells in the group. After autofilling, you can change the cells independently of each other.
    When you autofill cells, any formulas that refer to those cells are updated automatically to use the new value.

  • Depreciation Formula for Assets

    Hi All,
    I am in a process of preparing a Depreciation Projection Report. Currently we are having a Standard Depreciation Projection Report.
    My problem is i don't know from where to find the formula for all the Depreciation methods which is used in Fixed Assets Module.
    Kindly Help.
    Thanks
    Aryan

    Hi Chris,
    Thanks for the reply buddy and sorry for replying late. I know that this report is actually a black box, but i hope that this report also or the front end form uses some sort of logic to get the depreciation.
    I hope some user guide or some other report can help me in getting the formula for this Depreciation Projection report.
    Thanks
    Aryan

  • Formula for division of result rows in BEx 3.5

    Hi All,
    We have created 3 new formulas A,B and C respectively.C=sum/sum (At record level)
    Our requirement is that the result row of C should be calculated as "value in result row of A/value in result row of B".
    We are able to achieve this division for individual records but at the result row level this division does not work.
    Can someone please help us write a formula for this?
    Regards,
    Suchitra

    When you want to consider result of operands.
    C = SUMCT(A)/SUMCT(B)
    When you want to consider overall result
    C = SUMGT(A)/SUMGT(B)
    More on using these check the below link
    http://help.sap.com/saphelp_nw04/helpdata/en/03/17f13a2f160f28e10000000a114084/frameset.htm
    Hope this helps.

  • Formula for Average

    Post Author: kbrinton
    CA Forum: Formula
    Good Morning,
    I have a ticket number field that is a string so all I can do is a count on the field.  But I need to do an average.  Does anyone know a formula for this?

    Post Author: V361
    CA Forum: Formula
    What does the sting look like ?, is it just numbers, or numbers and characters 888-888-8888, depending on the string, you should be able to convert it to a number (using a formula) and then sum the formula.   Please provide an example of your strings if you can.

  • I need to get 2 decimal places when using a formula for a quotient and Numbers will only give me whole integers which is useless since most items will be less than 1. How can I change this?

    How do I get 2 decimal places when using a formula for a quotient? It only gives me whole integers. Most of the results will be less than 1 so I need 2 decimal places

    the quotient function returns only whole number portion of the dividing two numbers.  If you want the actual decimal value use the divide operator.  you enter this as:
    A/B
    if the numerator is in A1 and the denominator is in B1 you can enter the formula like this:
    =A1/B1

  • Filling in the Blanks - Formula for "specific" fill of blank cells

    I am still in the midst of my super extended spreadsheet project and I have come across one more issue that I am sure has an easy solution (using a formula). What I have is a table like this:
    !http://i142.photobucket.com/albums/r103/foenixfortean/Blanks.jpg!
    What I need is for every blank to be filled with the previous word directly above it so the original file would end up looking like this.
    smooth
    smooth
    tax-free
    public
    public
    fair 1
    fair 1
    part-time
    part-time
    inland
    inland
    another
    another
    another
    another
    agricultural
    cold
    cold
    cold
    cold
    cold
    freezing
    freezing
    I would just do it by hand but seeing as how my spreadsheet has 60000+ entries it would be much nicer to let the computer do the work, right?!? Are there any formula experts out there who might be able to help me come up with one for this? Thanks in advance!!

    You can do this using a simple formula.
    To fill column B, for example, enter this in B2:
    =B1
    Click Accept, then drag the handle at the bottom right of B2 down to fill the rest of column B.
    When you enter data in any cell in column B, the entered date will replace the formula in that cell, and the formulas in the cells below will copy the entered data into every cell below until blocked by the next cell filled with entered data.
    Regards,
    Barry

  • In VB Programming code -- How to access the formula for suppressing a field

    In VB Programming code -- How to access the formula for suppressing a field
    I am using Crystal Reports 2008 v1
    Using VB code, I am attempting to modify a Crystal Report before exporting it into a PDF format and then displaying it on the Web.
    My problem is that I am unable to access the formula used to dynamically suppress a field.
    The following code is working:
    mySections = rd.ReportDefinition.Sections
    For Each mySection As CrystalDecisions.CrystalReports.Engine.Section In mySections
       ' myFieldToChange is a String set to the text of the field I need to adjust the Suppression
       iloop = 0
       For Each RecObj As CrystalDecisions.CrystalReports.Engine.ReportObject In mySection.ReportObjects
               If mySection.ReportObjects.Item(iloop).Name.ToLower = myFieldToChange Then
                   myTextObject = CType(mySection.ReportObjects.Item(iloop), CrystalDecisions.CrystalReports.Engine.TextObject)
                   myTextObject.Text = "new field text goes here"
                   mySection.SectionFormat.EnableSuppress = True
                   '  Here is where I want to change the formula for the Suppression
                End if
                iloop = iloop + 1
        Next
    Next
    I can not find any reference to the actual suppression formula in the SDK help file.
    Note, the EnableSuppress can be set to True for False, but if there is a formula for dynamic suppression, the True or False value is overwritten.  The results of the formula determine the suppression.
    Is there a way to reference this formula.  I know that I can put on in using the Crystal Report Designer software, I need to modify this formula using VB code and the SDK.

    Hello, Mark;
    If you are using the ReportDocument object you do not have access to the Conditional Suppression formula. You can get around it by using a formula field in the report for the supression and then using the FormulaField code to change it at runtime.
    If you want to change the supression condition directly at runtime you need to use RAS and the ReportClientDocument.
    Elaine

  • PLEASE HELP: PDF Forms, creating average formula for text?

    Hello,
    I really hope somone can help. I cannot find any answers to my questions on the internet, google etc.
    First time using Acrobat. Im pretty quick learning on compters however the formulas my boss has asked me to do I have no idea if they are possible.
    We have a report form for exams and each section I need to calculate the average mark for that section.
    There are 3 questions for the first section. There are dropdowns for distinction, Merit, Pass and Below pass to select for each questions.
    Please see picture attached to show you what I mean.
    I want to be able to calculate the most selected/average dropdowns selected and not count the N/A's into award1 field?
    The fields must be text and cannot be numbers.
    so for example, track 1 got a distinction, track 2 got a Merit, Track 3 got a distiction. all other fields left n/a
    is there anyway to do this also is there any way to exactly the same as above as check boxes? - please see picture attached
    I appriciate any help. I am working on a mac
    Thanks
    Lauren

    Thank you so much reply
    Yes on the dropdowns the distincion, merit, pass or below pass values are in the correct areas ready for selection. For example on the distiction row you can only drop down for distinction and so on for Merit row dropdowns etc
    Check box is the way I rather do it as its quicker, however I created the dropdown option just incase check boxes average was not possible
    On the check boxes if i select merit for rtack 1 I would just tick the box and leave the the rest of the colum blank with no ticks. So just by seeing the tick I know its in the merit section for Track 1. However I donts know if I can do an average formula for with check boxes.
    If I check boxed/slected distinction for track 1, distnction for track 2 and merit for track 3 (obvisley any box could be ticked depeneding how the exam went so need then all in the script). I would like it to then calculate the avergae mark which would be distinction in the award1 field. While the none ticked boxes or N/A fields not affecting the average.
    This is just the start to a huge form Im doing Im dreading the rest of formulas I have to do lol
    sorry if im confusing you

Maybe you are looking for