Complicated Formula Help

I have a very complicated formula and I would really like to use MDSHIFT and SUM at the same time but I get a syntax error if I do. No idea how to write this without turning this formula into a 2 page nightmare.
Here is what I'm trying to do:
Sum up the measure Volume for the last three months for a number of specific customers. I am doing a check on if its January so that I can hardcode Oct, Nov, and Dec but I need to shift on the years and sum up the customers and its getting very ugly. In addition I need to do this for various customers and then divide by others, etc so its going to get worse than I'm putting down here.
FIX ("Forecast")
IF (@ISMBR(JAN))
"Volume" = @SUM(@MDSHIFT("Volume"->"Actual"->"Oct"->&fcstYear,-1,YEAR,), "customer1","customer25","customer30")

Hi Jeanette,
You cannot use @MDSHIFT in @SUM function as @SUM will be expecting a member name where as @MDSHIFT function will result the member value.
Also I guess you done need to mention &fcstyear in member combination as you were moving across years
hope this will work for you...
FIX ("Forecast")
IF (@ISMBR(JAN))
"Volume" = @MDSHIFT("Volume"->"Actual",-1,YEAR,,10,Time,) + @SUM("customer1","customer25","customer30")
- Krish

Similar Messages

  • Complicated price formulas help

    Hello,
    I have a membership renewal form that I am making and I am quite new to writing formulas and scripts. I have provided a list below of what I would like the form to do, and would like to know what the best way to accomplish each of these things would be so I can seek out tutorials on how to do them. Please provide your input if you think it would be easiest to accomplish these things using Javascript, FormCalc, Action Builder, or a certain function in any of these options.
    I have a date field in the form that defaults to the current date and I would like to:
    Add a fee based on the date:
    I would like the form to automatically add a $35.00 admin fee if the current date is between May 1st and December 31st. No admin fee if the date is between Jan 1st and April 30th.
    Price based on Drop Down menu and date:
    The user selects their membership type from a dropdown menu. Currently the Membership Fee is populated based on their drop down menu choice. However, I would like the Membership fee to be calculated automatically based on a) the drop down menu choice and b) the date. There is a different Membership Fee depending on the date, for each of the drop down menu choices. So for example,the "Full Membership" choice in the dropdown menu should calculate the Membership Fee based on the current date as follows:
    April 1st to Sept 30th: $310.00
    Oct 1st to Oct 31st: $155.00
    Nov 1st to Nov 30th: $129.00
    Dec 1st to Dec 31st: $103.00
    Jan 1st to Jan 31st: $388.00
    Feb 1st to Feb 28th: $362.00
    March 1st to March 31st: $336.00
    Any input as to how I can get my form to do these two types of calculations would be greatly appreciated.

    Hi,
    So you want all rows from table_1, whether or not they have a match in table_2. That's an outer join.
    Normally, you would do that by saying
    FROM             table_1
    LEFT OUTER JOIN  table_2  ON   table_1.equipment = table_2.equipment
                              AND  table_1.meter_id  = table_2.meter_idbut in this case, a match isn't just having the same equipment and meter_id, it means having the same equipment and meter_id on the specified date and building, So the join condition is a little more complicated:
    FROM             table_1
    LEFT OUTER JOIN  table_2  ON   table_1.equipment = table_2.equipment
                              AND  table_1.meter_id  = table_2.meter_id
                              AND  TO_DATE (table_2.date_of_reading, 'mm/dd/yyyy')
                                                     = :target_date
                              AND  table_2.building  = :target_buildingAnother approach is to outer-join table_1 to a sub-query, consisting of:
        SELECT  ...  -- relevant columns
        FROM    table_2
        WHERE   TO_DATE (date_of_reading, 'mm/dd/yyyy') = :target_date
        AND     building = :target_building
    )

  • India localization oracle fast formulas help

    hi ..
    anybody help on oracle india localization fast formulas, absence mgmt setup, online payslip setup and tax declaration set up in payroll and sshr basic setups for absence mangt and transfer setup. plz send me on [email protected]

    send me a contract, buy me a ticket, and i fly over.

  • Conditional formula help

    Post Author: scd07
    CA Forum: Formula
    Hi, Crystal Reports novice here...
    I have been asked to take out any lines in several reports with all "0s" in the columns.  I have tried formatting each field to suppress Zeros and then right click on the Description column and click "suppress if blank".  Didn't work.  I then tried to write a conditional formula that I put under the description field (field 1), "common", "formula" and "suppress".  The formula followed the following:
    If = 0 and = 0 and = 0 then true else false
    Unfortunately this also didn't work.  I don't know if my formula is incorrect or if I am entering it in the wrong spot.  Any help would be very much appreciated!  Thank you!!

    Post Author: Bandit07
    CA Forum: Formula
    Right click on what you want to suppress and click the x-2 button next to suppress.  Put your formula in there.
    = 0 and = 0 and = 0,  If all of these conditions are true then it will suppress.
    B

  • MDX formula help

    The formula below works just fine but I want to use a UDA driven member in Member Range and need help.
    IIF(
    Count(
    Intersect(
    {MemberRange( [Jan],[Apr] )},
    {[Time].CurrentMember}
    ) = 1, [Actual], [Forecast])
    I tried with
    IIF(
    Count(
    Intersect(
    {MemberRange( [Jan],UDA([Period],"CurrMonth") )},
    {[Time].CurrentMember}
    ) = 1, [Actual], [Forecast])
    but I get an error Error(1260052) - Syntax error in input MDX query on line 4 at token ')' CalcMbr
    not sure why is this not working - I think UDA() can result in a set but member range is expecting a member only??
    Please suggest any ideas to correct the code.

    also tried with {[Jan]:UDA([Period],"CurrMonth")}
    instead of {MemberRange( [Jan],UDA([Period],"CurrMonth") )} - but no luck
    Any suggestions?

  • Group Formula Help

    Post Author: dmface15
    CA Forum: Crystal Reports
    I have a report that identifies employees and what taxes that employee pays. For example,
    John Doe
    OASDI           $2500
    Medicare        $625
    Jane Doe
    Medicare       $1750
    Michael Smith
    OASDI          $1630
    Medicare       $783
    The report is grouped by Employee name and tax code. The reason for grouping by tax code is because the tabale i am using to get tax code has records for each pay check the employee has received. Here is the problem. I need to create a report that will give me all employees who pay Medicare AND OASDI, all employees who pay ONLY Medicare. Therefore, when I run the report for employees who pay Medicare AND OASDI I should only see Michael Smith and John Doe. If i run the report for all employees who pay ONLY Medicare I should see only Jane Doe. Right now, I am having trouble with creating a formula whether it by group selection or record selection. Can anyone help me out? I would appreciate it. Thanks.

    Post Author: kcheeb
    CA Forum: Crystal Reports
    Have you tried suppressing the group and detail sections based on the report type and count of tax code records? Assuming There are no people with only OASDI tax codes.
    The other option would be to use sql to return you only Medicare people or OASDI & Medicare people.

  • Need formula help - how do i fin duplicates in a list

    I have a list of text data and want to remove duplicates. I think I know how to do it... but I've done a fair bit of searching here and elsewhere and just don't understand how to set it up.
    I assume I should use the Countif function... and then compare the each cell to the entire list to determine if it is unique. Then I get a 1 or 0 result based on whether the data element recurs in the list.
    Problem is the setup and syntax.... I've done a very very little bit of this but don't have a good handle... searching to this point (user guides and forums) I haven't found answer... I know the answer is out there, but I need to get solution as quickly as possible.
    any help greatly appreciated.
    Thanks
    darren
    Oh - number 09 on 10.5.8

    dnim wrote:
    I have a list of text data and want to remove duplicates. I think I know how to do it... but I've done a fair bit of searching here and elsewhere and just don't understand how to set it up.
    I assume I should use the Countif function... and then compare the each cell to the entire list to determine if it is unique. Then I get a 1 or 0 result based on whether the data element recurs in the list.
    COUNTIF($A,A) by itself will give you a 1 if the cell contents are unique within the list, and a larger number if there are duplicates.
    =IF(COUNTIF($A$1:$A2,$A2)>1,"XXXXX","")
    Will leave cells in rows containing the first occurrence of a particular value in a list 'blank'* and mark rows containing subsequent occurrences of the same value with XXXXX (or whatever text is placed between the quotation marks at that position in the formula.
    Results of the second formula (in column C) may be isolated using the "Show rows that match the following" in the Reorganize dialogue, and setting the condition to "Column C"    is not blank
    Oh - number 09 on 10.5.8
    Looks like your profile needs to be updated—currently says 10.5.5.
    Regards,
    Barry

  • Formula help needed

    Hi,
    I have a sheet with abt. 3.000 rows. From one of the rows I want to extract the date. The row looks like this:
    Festgelegt für 5. September 1946 von 09:15 bis 10:15, that is a textstring
    So in the first field I used part to get the Date "5. September 1946" this works fine.
    In the next step I used left;4 to extract the word "Fest", this works fine to
    Now in the next step I want to work with "if".
    What I would like to have a formula that looks like this
    If leftstring4="Fest" than get the partstring"5. September 1946" an fill the field with this date.
    Any help available
    tks in advance
    olaf

    Hi Yva,
    still one problem with the formula.
    "Urlaub
    Festgelegt für 25. Juni 1977 von 09:00 bis 10:00 25. Juni 1977
    Portugal
    Festgelegt für 6. Juli 1977 um 23:00 bis 7. Juli 1977 um 00:00 0"
    as You can see the first row works, but the second not why.
    The errorcode says "could not find " von "
    any idea ?
    like to hear from You
    regards
    olaf

  • Formula help!

    Hi,
    I keep a database inventory list of Video Tape duration and need to know a formula to calculate "time" or "Length" totals.
    ie:
    Tape 1 = 01:43:19:06
    Tape 2 = 00:45:20:12
    where in the first tape example (or any tape for that matter) the digits are as follows:
    xx:yy:zz:ww
    xx= hrs
    yy= minutes
    zz= seconds
    ww= frames
    In this case there are 25 frames to make 1 second, and 24 hours in a standard clock.
    If possible, can you show how to change the formula when the Frame (ww) changes to 24, 30, etc.
    Thank you very much.

    RP,
    You may find this example helpful. I think it's close to your request, but simplifies the problem by doing the entries in separate columns for h, m, s and frames. The second Footer Row is an intermediate calculation which I left exposed for clarity.
    Here are the expressions I used:
    Unit Totals...
    Frames: =MOD(SUM(H),25)
    Seconds: =MOD(H8+SUM(F), 60)
    Minutes: =MOD(F8+SUM(D), 60)
    Hours: =D8+SUM(B)
    Carries...
    Frames: =INT(SUM(H)/25)
    Seconds: =INT(SUM(H8,F)/60)
    Minutes: =INT(SUM(F8,D)/60)
    There is no carry from the Hours total, the hours are just allowed to overflow the 24-hour boundary to larger numbers.
    Regards,
    Jerry

  • Formula Help - Multiple criteria

    I'm fairly new to Numbers and am struggling to work out the formula to manage multiple sumif functions. I want to be able to calculate the total of column 'C' where A & B are identical. For example sum of column C where  A=James, B=Vehicle. Sorry if I'm not being clear. Basically total of $ in 'C' where A = James and B = Vehicle.
    Thankyou in advance for the help. 
    A
    B
    C
    James
    Vehicle
    $100.00
    Tom
    Office
    $200.00
    James
    Office
    $150.00
    Brad
    Vehicle
    $275.00

    Dynamic using cell references. I missed the & to make it work.
    =SUMIFS(Table 1::C,Table 1::A,"="&A2,Table 1::B,"="&B2)
    If lucky James has two vehicles,
    And you can add more combinations to Table 1-1
    Regards,
    Ian.

  • Formula Help Crystal Reports 11

    Hello,
    I am having trouble with a selection formula.  I wrote a report that queries 2 tables that have been joined within my report.  A primary table and a secondary table. The secondary table can contain multiple detail records that are associated with each primary record.
    There is a field in each record of the secondary table that contains an alpha character.  I need a slection formula to scan through the fields of the secondary records and if one of those secondary records has a particular value (In this case "T") I would like ALL of the secondary records included in my report along with the primary record indexed to it.  If no secondary record in the series has a value of "T" then all records should be excluded from the report including the primary record indexed to that series of secondary records.
    Is there a function I can use to accomplish this type of logic?...an example of the appropriate syntax would be helpful.
    Your help is much appreciated!
    Mark

    Hi Mark,
    Use the InStr function.  This will allow you to search for a string and it will return a numeric value which represents the placement. 
    Instr ({Table.FIELD}, "T") > 0;
    This will return all records that have a "T" in that field. 
    Good luck,
    Brian
    Edited by: Brian Dong on Oct 23, 2008 4:39 PM

  • Formula help when offline

    Hi,
    the numbers "formulas and functions" help seems to have moved to the internet, which I am pretty upset about. Now, when I don't have an internet connection (I travel a lot), where can I find the help about the formulas and funcitions? The built-in help only has a list fo links to the online version.
    Thaks
    p.

    papalapapp wrote:
    Thank you. I used the "print" funcionality on the website to save a pdf-version, but it is by no means a replacement for the former built-in help which was really good. I hoped that there might be at least an optional installation.
    You are the first one on the forum, to my knowledge, who likes the help function. It's slow and difficult to navigate for most of us. The PDF guides are searchable with the Find function in Preview. The Function Browser, as Wayne notes, is also quite handy and always quick to launch. Another way to launch the Function Browser is to click the function icon on the Format Bar when you are editing a cell's content.
    Jerry

  • Formula help...again.  Data compiling into one sheet

    I've posted something similar before, but it was just different enough I can't figure this one out  .... what I'm looking for it to be able to take info from numerous sheets or tabs, and have them show on a separate sheet, that I can then import into quickbooks.
    here is a link to the dumbed down file.  The help is with how to right the formula to take all work done on all sheets and put it into ONE table.  Quickbooks has an import feature where I can copy a whole sheet and paste directly into OB and not have to enter hundreds of transactions each month. 
    So if there is data entered within a specified date range, then all those entries appear on the new sheet that will be my QB import sheet.  There is a specific table that has to be followed in order for OB to recognize my entries.
    As always, thanks for the help.
    Jeff
    well... I can't post a shared link via iCloud right now.  how do I post a file ?  any ideas?

    Hi Jeff,
    So if there is data entered within a specified date range, then all those entries appear on the new sheet that will be my QB import sheet. 
    A table on a new sheet can "pull" relevant data from tables on other sheets with functions such as SUMIF, LOOKUP and other functions. Perhaps it would work best if those other sheets do some data processing (creating summaries?) first.
    More information from you will lead to a Numbers solution .
    Regards,
    Ian.

  • Formula Help - Running Total vs ???

    Post Author: schilders
    CA Forum: Formula
    Good Morning All,
    I'm creating a report that contains a field called CDM Item.  This field indicates whether a particular order set was used for a given record.  Valid entries for this field are numeric 6 through 9.  I would like to create a formula that tells me the number of records that have a cdm item = 6, another formula that tells me the number of records that have a cdm item = 7 etc.  I need to summarize these formulas into pre-defined groups. 
    I was thinking a running total or a manual running total would be useful here.  However, I wanted to get some input from other formula gurus here.  Thanks, in advance, for your help.

    Post Author: yangster
    CA Forum: Formula
    You don't need to create a manual running total for what you are after.simply create 4 running totals ( 1 for each item number) using a running total with the evaluate formula of cdm =  6 (changed for each number)and resetting after whatever grouping you needthe other alternative you could implement if you have mutliple grouping and wanted subtotals on differing levels is to create a formula for each case such as@case_cdm6if cdm = 6 then 1 else 0then insert sum for each formula on all the differing group levels that way you only have to worry about maintaining one formula if the criteria changes

  • Visibility formula help

    Hi All,
     I want to calculate a formula, depending on that formula, I want to hide and make the column visible.  I have a column called
    SN. I want to make it visible when the value of the parameter called @section is “GCG” otherwise I want to make it invisible. Same thing with another columns, if @section parameter is “GED” then I want to make column 2  called PN visible and column SN
    invisible. I tried to calculate this formula and putting it in Visibility-hidden formula section
    IIF(INSTR(Join(Parameters!section.Value), "GCG") > 0 OR Parameters!section.Value(0) = "-1", false, true)
    the above formula didn’t make that particular columns visible/invisible
    Alternatively, I tried putting the formula in the XML file for the report.
    <TableColumn>
    <Visibility> <Hidden>=IIF(INSTR(Join(Parameters!comp.Value), "GCG") > 0 OR Parameters!comp.Value(0) = "-1", false, true)</Hidden> </Visibility>
    <Width>1in</Width>
    </TableColumn>
    The above formula seems to be working, but the problem is when I export the
    report to the Excel. The column that I am making visible by the above formula is not exported to excel.
    I am not sure what am I doing wrong, but I am struggling with this issue for
    past two days.
    The value in the @section parameter can be “GCG” or “GED” or “PED” or all three
    of them “GCG”,”GED”, “PED” or two of them “GCG”, “PED”, it can be any combination. If I am passing the combination of two parameters then I want two columns to be visible and other invisible.
    any help or hint will be greatly appreciated. I am struggling for a while with this issue.

    Hi Anjali100,
    According to your description, you have used expression to control the visibility of columns in your tablix. However, when exporting into CSV file, it still shows all columns which some of columns need to be hidden. Right?
    In Reporting Services, when exporting to CSV/XML file, as mentioned in the link you post, these two are only data renders, it will not render any interactivity like Hide, Hyperlink... Please refer to the "Interactivity" in the link below:
    Exporting to a CSV File (Report Builder and SSRS)
    And as we tested in our local environment, it doesn't automatically omit the data in those columns which has set Hide. So your requirement can't be achieved in CSV format currently.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

Maybe you are looking for

  • USB Hotsync needs 32-bit hardware or software? or both?

    I made the mistake of buying a new computer without knowing I needed 32-bit to do a USB Hotsync.  My new computer is 64-bit hardware. However, I got a 3-year service package from HP and they've offered to send me a 32-bit Windows XP OS installation d

  • Aperture 2.1.4 not recognizing my library

    I have Aperture 2.1.4 and yesterday as I was importing photos, I got an error saying I needed to rebuild my library.  So I go to do that, and get a permissions error (even though when I checked the details on the library it showed that I have read an

  • Obsolete Transactions in ECC 6.0

    Dear All, How to find what are the Transactions are obsolete in ECC 6.0 ? Note:PRGN_CORR2 Table doesn't contains all Transaction Details. and RODIR table contains only obsolete Function Module names. Thanks in Advance. Kanagaraja L

  • PSP clear cache not reflecting in all Languages

    Calling siebel forum!!.. Clear cache of PSP is not taking effect in SVE application However works well in ENU. We have done clear cache from ENU but should Work across all server and language deployements. This will work after server restart but is t

  • IOS 7.0.3 Autorotate Not Working

    Just installed iOS 7.0.3 and right away noticed that Autorotate is not functioning. I tried a few things in Settings and finally got the "desktop" view to respond to being landscape format, which is my preference, as I use a Zagg Folio with my iPad 2