Yeartodate and L4W formula

Dear all,
I have a report where records are generated everyday (report runs on daily basis).
I have set the date range to Currentdate using two formulas Start date and End date.
I then use that formula to take average per day for jobs and lenses, however now I want take average per month to date, year to date and last 4 weeks.
I don't seem to understand how to use the formula in my report.
Any help will be appercieated.
Here is what I used to calculate daily average.
Whileprintingrecords;
Numbervar JAvg;
Numbervar myaverage=0;
Numbervar CAvg=0;
myaverage := {#Total Jobs}; 
CAvg:= myaverage /({@EndDate}-{@StartDate}+1);
JAvg:=JAvg + CAvg;
CAvg
I used for Monthtodate function in the formula but I am not sure why it isn't working.
I used it like this
Whileprintingrecords;
Numbervar JAvg;
Numbervar myaverage=0;
Numbervar CAvg=0;
myaverage := {#Total Jobs}; 
CAvg:= myaverage /Day(Maximum(MonthToDate));;
JAvg:=JAvg + CAvg;
CAvg
I want the same for YTD and Last 4 weeks.
any ideas?
Many thanks
Kind Regards
Jehanzeb

That is what I did,
I ran the report and checked from
01/08/2008 to 20/08/2008
The average comes up to 0.90 for 18 jobs in the above date range.
When I applied Monthtodate formula (as in separate report) it shows the same results
The average comes upto 0.90 for 18 jobs
However, when I applied Monthtodate on the report which takes daily results, the result was wrong for the formula Monthtodate.
Example
Report 1 - Manual date range , manual Code range
Results:
01/08/2008 to 20/08/2008
The average comes up to 0.90 for 18 jobs in the above date range.
Report 2: Automatic Date range on Monthtodate, manual Code range
Results:
01/08/2008 to 20/08/2008
The average comes up to 0.90 for 18 jobs in the above date range.
Please note in this report I am not taking daily average, the average is counted as monthtodate.
Report 3: Automatic Date range on Daily, manual code range
Results:
Not correct for Month to date field.
Please note: On Report 3 I introduced both Daily Average formula and Monthtodate average formula.
The daily formula works however the monthly doesn't.
Regards
Jehanzeb

Similar Messages

  • How to copy and paste formulas between documents in numbers 3.0?

    I am unable to copy and paste formulas between 2 documents in numbers 3.0?

    Hi Hans,
    I can get a reference error here if the destination table does not have that range available while the source table does. 
    Are you sure your desination table has exactly the same structure and dimensions as your source table?
    If it does, copy/paste via the Formula Editor should work. It works reliably here.
    Also the formula in your latest post looks as if it might be corrupted-- lots of extra spaces (it seems).  Did your orginal formula have those?
    To sort this out, suggest turning off 'Use header names as labels' in Preferences.
    If you end up with a formula in a cell as just Text (as Ian describes that's what happens when you copy from Numbers 2) you can convert that text to a formula by double-clicking the cell, clicking just before the text so that the insertion point appears in front of it and typing =. That activates the Formula Editor with the formula in it, which you can accept by clicking the green checkmark or hitting return.
    SG

  • How can I move columns in Numbers without distorting the formula in other cells?  In Excel I can cut and paste entire columns and the formula in other cells adjusts accordingly.  When I do it in Numbers, the formula messes up.  How can I do this?

    How can I move columns in Numbers without distorting the formula in other cells?  In Excel I can cut and paste entire columns and the formula in other cells adjusts accordingly.  When I do it in Numbers, the formula messes up.  How can I do this?
    For example: I have formulas in columns D and F that relate to columns C to CU
    If I want to move one column from one position to another (say S to T), the formula loses the colums that was moved, i.e. it doesn't recognize it has moved, rather sees it as deleted...  How can I do this without distorting the formula?

    Thanks for the feedback.
    If I often urge askers to look at the available resources, it's because  a large range of questions asked in the forums are already answered in these documents.
    As they are PDFs, they are easy to search in.
    CAUTION
    Download them while they are available.
    Given what is delivered with iBooks Author, I'm afraid that we will not get such easy to use documents.
    Searching infos in the  iBooks Author documentation available on line is awfully cumbersome and a lot of embedded links are wrongly flagged this way. In the Help files they aren't links but underlined strings.
    It seems that the tool used to generate the web pages was wrongly configured.
    Yvan KOENIG (VALLAURIS, France) dimanche 22 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

  • Row and Column Formulas on a Data Form

    I am creating a data form which has both row and column formulas. I would like the row formulas to show for some of the cells but it seems to default to the column formula.
    How can I get my form to show the row formula result and not the column formula result?
    Thank you!

    Brian,
    See this example:
    http://htmldb.oracle.com/pls/otn/f?p=31517:160
    There are also a coupleof others showing the same thing you want to achive.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Diff between Calculated key figure and new formula 6extra functions why

    Hi Friends
                  In BEx query designer we have Restricted key figure & Calculated key figure. In the case of Ristricted Key figure And new selection the difference is Global and local.
    But if we come to Calculated Key figure and New Formula the difference is same global and local. But in New formula we have 6 extra function. My question is does is there any certain reason for this or SAP AG not be able to develop those functions
    Thganks & Regards
    Bramhanand

    Hi Surendra thank you for your reply.
    But i am not asking difference between calculated key figure and New formula.
    What i am asking is in the case of Restricted Key figure And new selection the difference is Global and local.
    But in Calculated Key figure and New Formula the difference is same global and local and in New formula we have 6 extra function. My question is does is there any certain reason for this.Why not SAP AG is not included the new formula functions in Calculated key figure.
    Thanks & Regards
    Bramhanand

  • Difference between aggregation rule and column formula in edit formula

    Anybody please help what is the use of aggregation rule and column formula in edit column option.
    What is the difference if I apply sum in aggregation rule with apply sum(column name) in column formula.
    When do I need use which one.
    Thanks in advance

    When you build a column in the rpd, you have the option of determining if the column should be aggregated in some way or not. For dimension columns, you wouldn't put aggregation. For say, an accoun ledger balance column, you might put the aggregation SUM or AVERAGE. Whatever aggregation you put on this column will be the "default" aggregation of the column in Answers.
    So in Answerrs, if you use the Account Ledger Balance column and you only have Region as the dimension, OBIEE will aggregate or SUM the ledger balances so you have a SUM for the region level. If you had district, than the ledger balance column will aggregate to the district level. This is a convenient way to build reports without having to specify what the aggregation should be.
    However, OBIEE gives you the ability to override what the default aggregation is for a particular column. This is the purpose of the drop down in the bottom left of a column when you click the fx button.
    Say the default aggregation of ledger balance is SUM in the rpd, but for the report you are building, you want the average, you can apply the AVERAGE function in the fx window and it will overridge the SUM aggregation rule that was in the rpd.
    Got it?

  • Documentation on Linking fields and adding formulas on PLDs

    Does anyone know of some good docs on  Linking fields and adding formulas on PLDs?
    Can't seem to find much.
    thanks

    Hi Paulo
    When I go to that link I get the following message:
    Alias not available
    The alias SMB/SBO/PLD that you have entered does either not exist,
    or you are not authorized to access it.
    do you know what this means?
    thanks
    mike

  • Smartview 11.1.2 - Planning and Excel formulas giving problems

    Hi,
    I am using Smartview 11.1.2 with HP 11.1.2, when I open one webform done and in one cell I write
    =10
    and after I write different number like 5, it's still with =10
    so, has someone had problems with you start to use a formula in one cell and after you tried to replace by a value?
    Thanks

    Thanks for the information, but one last question. Where could I find more information about this Unpublished Bug 9955285?, I am trying to look for more information about if it's going to be fix in any patch but I don't find anything
    Thanks a lot

  • Copy and Paste Formula from One Cell to Multiple (How?)

    I am aware of the "autofill" function by dragging the bottom-right corner of a cell containing a formula.
    However, I cannot possibly do this if I want to copy the formula and paste it into 10,000 cells.
    If I specify a range of cells to paste the copied formula - only the first cell gets it. I have seen this problem in previous iWork for a long time but am surprised Apple has not improved it (or made it obvious enough for me to get it at first sight).
    Thanks!

    Hello
    It's really boring to read several times the same comments: +When I use Autofill on formulae to copy them into empty rows I end up with little red triangles saying it isn't a valid formula. In Excel and Lotus 123 I can just use Ctrl-C and Ctrl-V to copy and paste into as many cells as I want, why not Numbers?+
    Here we are not Apple employees so you are loosing your time and also the time of all of us reading your posts.
    Of course we may let them unread. But as old helpers, we always assume that when someone post something, it's to ask a question to which one of us may give a answer.
    Your flames are perfectly useless.
    If you wish that Apple take care of your opinion, go to "Provide Numbers Feedback" in the "Numbers" menu and describe your wishes.
    Happily, one poster make me laugh when he wrote that "this anomaly is a long time one in iWork".
    I really don't understand how an application which is in version 1.0 or 1.0.1 may contain a "long time" anomaly !!!!
    And the only responce I may give to all of you is: *if you can't live with this feature, stay with E…l.*
    *We will not miss you !!*
    Yvan KOENIG (from FRANCE samedi 20 octobre 2007 19:47:45)

  • Is there a way to preserve interactivity within a table so that users of an iBook can enter new values in selected cells and have formulas recalculated with that input?

    I would like to include interactive tables that would recalculate using formulas I have written and values that the reader/user has entered into selected cells. The tables I've made in iBooks Author do contain formulas that work as expected...until exported to an iPad, then they look and act just like a static table. I am not looking for serious number crunching or high-end mathematics, although others might find great value in such capability.
    To work without a reader/user accidentally (or otherwise) altering formulas or formatting it would be necessary to lock some or most cells of the table. At present all cells are locked after export. Apple doesn't seem to envision or value the functionality of such a feature; it appears to me missing from Numbers as well.

    Should be near trivial to execute on with an app...
    As welll, I wouldn't be surprised if a dashcode widget would fit the bill.
    As always, feel free to use the 'Provide iBooks Author Feedback' menu item for features you'd like added in the future, etc.
    http://www.apple.com/feedback/ibooks-author.html

  • Changes made to cell reference and cell formula in designer are not reflected in analyser?

    Dear Experts,
    I have made few changes to Bex Report in Query designer by creating cell reference for a cell and the same cell reference used by the formula created on the adjacent cell.
    I changes are working for 1 Report where as , the exact chanegs made in 2nd Report are not reflected in the Analyzer upon execution of Reports by giving exact inputs as fpr the previous report.
    Could you please help me resolve this issue ?

    Hi Loed,
    Please find  the screenshot of the query result below.
    The cells marked in green are where the cell reference has been created and the ones in yellow will have the formula pointing to the cell reference value.Ideally, the cell values in green and corresponding green cell should be identical(as seen in the 2nd screenshot).
    Screenshot1.
    screenhot2

  • Functions in Calculated Keyfigure and New Formula

    Hello All
    I want to know each and every functionality(Under functions)in Calculated Key figure and New Formulae?
    do anyone has docs., on this,if so pl forward to my id
      [email protected]
    regards
    balaji

    Hi Balaji,
       Go though the following links for calculated key figures and formulas
      http://help.sap.com/saphelp_bw31/helpdata/en/f1/0a5a2ee09411d2acb90000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/f1/0a5a2ee09411d2acb90000e829fbfe/frameset.htm
    Regards,
    PRK
    Message was edited by: PRK

  • Answers and Edit Formula and IE9

    Hello all.
    I raised this as a SR with oracle but I am curious to find if any one else has also seen this problem.
    Unable to expand and scroll bar goes up without able to select the column when using IE9 and OBIEE 11.1.1.6.1
    Here is the steps.
    1. Open answers, creteria.
    2. select a column, click on edit formula
    3. When you see Edit Column Formula window, Under Available Subject Area, there are list of Subject area, tables and columns.
    4. Now go to facts section, imagine if you have many plusses(i mean with different sections) so you try to click on a plus to expand and see all the columns.
    5. the expansion do not occcur. You must keep trying and it does not happen.
    6. you cant so easily open it with just one click and you must keep doing it and mean while the scroll bar goes up to all the way top.
    7. if you open it by chance after many clicks then you cant close it, and if you want to open another plus then you must first struggle to close the opened one.
    another issue is,
    1. Open answers, creteria.
    2. select a column, click on edit formula
    3. When you see Edit Column Formula window, Under Available Subject Area, there are list of Subject area, tables and columns.
    4. Now select the column which is below(does not matter facts or dimensions) so down that you must scroll down.
    5. select the column and immedietely the scroll bar goes up to default top and making you unable to select what you want.
    Thanks

    Hi guys.
    FYI.
    This is a bug in the product and here is
    Bug Reference
    17527706  

  • How to Copy and Paste Formulas

    Hello:
    I'm new to numbers, but have got a lot of computing to do.
    I have some fairly simple formulas (x-y for example) to do. The issue is, I have 300 rows that I need this mathematical operation done on.
    Is there a way I can copy this formula into each different row so that the formula stays the same, yet the computaiton is unique to the individual row?
    Thanks for helping with such a basic question.

    Hi Jrp,
    In this example, enter your formula in D2
    =B2−C2
    Press enter.
    Two methods:
    Method 1:
    Select D2 and Copy
    Select all Body Cells in D and Paste
    Method 2:
    Select D2 and hover the cursor over the bottom cell border until you see a yellow dot (Fill Handle)
    Drag the Fill Handle down.
    D is now filled with the formula which automatically changes with the Row
    Regards,
    Ian.

  • YTD Actual and Budget Formula in Logical column

    Hello,
    Im trying to replicate a report from Oracle EBS into OBIEE.
    I have to create logical columns for YTD Actual , YTD Budget,Current month actual, Current Month Budget using GL_BALANCES table. The formula currently im using is,
    YTD Actual:
    CASE WHEN GL_BALANCES.ACTUAL_FLAG = 'A' THEN (GL_BALANCES.PERIOD_NET_DR - GL_BALANCES.PERIOD_NET_CR)+ (GL_BALANCES.BEGIN_BALANCE_DR - GL_BALANCES.BEGIN_BALANCE_CR) ELSE 0 END
    YTD Budget :
    CASE WHEN .GL_BALANCES.ACTUAL_FLAG = 'B' THEN GL_BALANCES.PERIOD_NET_DR - .GL_BALANCES.PERIOD_NET_CR + (.GL_BALANCES.BEGIN_BALANCE_DR - GL_BALANCES.BEGIN_BALANCE_CR) ELSE 0 END
    Current Month actual :
    TODATE(GL_BALANCES."YTD Actual", "Time Dim"."Month")
    Current Month Budget :
    TODATE(GL_BALANCES."YTD Budget", "Time Dim"."Month")
    Please let me know, if my calculations are right.
    Thanks

    Hi,
    I have only one KF and after closing the month, I would load actuals to the Budget KF itself.
    Right now this coulmn is a formula with below:
    ( 1 <= 'Last Actual' ) * 'Jan / Actual' + ( 1 > 'Last Actual' ) * 'Jan / &0T_VERS&'
    And the column heading is "January Act/Budget"
    At the moment it is confusing for users to know which figures are Actuals and which are Budget.
    Thanks
    Priya

Maybe you are looking for

  • Windows 7 (64 bit), iTunes 9 (64 bit), iPhone 3GS = CRASH!

    I have just bought a brand new Sony Vaio laptop with Windows 7 (64bit), 500Gb of disk space, 6Gb RAM, multi-core processor etc etc. I've installed the 64bit version of iTunes and transferred over my iTunes library (about 35Gb worth). When I connect m

  • Information Broadcast Email File - Where is the file in Unix directory?

    Hi, I am using Information Broadcasting to email the BI report.   We use Unix as the application server. In transaction SOSV, I can get detailed information on the file (attachment) and the send status.  There is a requirement to encrypt the file in

  • Read File Format Issue

    Hi, I have an input file as below: 12020090707000000000000000000000005|C320|FAI|20000140|FFS000425|10|0 12020090707000000000000000000000005|C320|FAI|20000140|FFS000425|40|0|1234567890 12020090707000000000000000000000006|C320|FAI|20000141|FFS000426|10

  • Problem with SQL Script in report

    Post Author: danish CA Forum: Data Connectivity and SQL Hi Can someone tell me why I'm not getting the right answer.Basically I want to pick up all creditors invoices that have been invoiced to the 31/12/2007 and then I don't want to count those that

  • HT1414 how can I access my contacts from my iphone backup

    I backed up my iphone onto my imac. How can I access the contacts, or can I?