Allocating monthly total to daily buckets

Hi all,
Is there a way to take a total in the report tool that is calculated every month on the first, and disperse that total using a weighted calculation over the daily course of the month?
For example, say I have 100 units.  I want to disperse it so that each week day has 17.5% of that total, Saturday 10%, and Sunday 4%.  Additionally, I would like to disperse each week day evenly too, so that if there are 5 wednesdays in a month, each wednesday receives 17.5%/5 of the total.
I have tried using a sum by with case statements, but that has not worked.

what is your case statement?

Similar Messages

  • Cumulative values on daily buckets result

    Hi BW experts
    I would like to create cumulative total on daily buckets results .
    Ex  
                     1/1    1/2   1/3
                        1     2      3
                        4     7      8
    Total            5     9      11
    Cumulative  5     14     25
    Cumulative  5  then 59 = 14 then 1425
    cumulative on result only  . How to achhive this report.  
    Thanks
    Rohan

    Hi below is my resuqirement
                Num   qtyA QTYB QTYC
                   A    20   30    26
                   B    40   60    14
                   C    5     8     3
    Overallresult       65    98   43
    Cmulative           65   163   206
    I have to display above format in the report
    Over result
    Cumulative
    Cumulative caluclation on over all result on rows
                163 = Over all result of QTYB+ cumulative value of QTYA  
                206 = Over all result of QTYC+ cumulative value of QTYB
    Please help to resolve this issue
    Appriciate your response
    Thanks
    Rohan

  • MY qquery is not displaying if cube doesn't have data in daily bucket

    Hi ,
    My report is not displaying the data if cube does't have data in perticulear daily bucket(0calday)
    Say my cube has
    10/6/2008   -- 10
    11/6/2008    -- 20
    13/6/2008  -
    10
    then my report is showimg only these values in couloumn (0calday) ....
    but i want to see all the daily buckets even cube dosn't have data (this example 12/6/2008) ...
    I am giving the date range in report selection screen 10/6/2008 to 13/6/2008 ...
    Please any body help me .....

    I'm not seeing anything unusual.<br />
    Such issues can be caused by margin or padding settings that depend on the font-size, but I'm not seeing any such CSS rules and increasing the font-size doesn't cause any problems.
    Try to the reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Press and hold Shift and left-click the Reload button.
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (MAC)

  • Reporting monthly values as daily

    I have infocube data like the following:
    fiscper.............qty
    009/2007.........60
    And I need to produce a report like this:
    date................qty
    09/01/07...........2
    09/02/07...........2
    09/03/07...........2
    etc. thru end of month (total qty being divided by number of days in month)
    Being a former abaper, I'm thinking I could manipulate the infocube data into a ztable, and then extract the ztable data into another infocube.  Is there a more standard bw-type approach I should consider?
    Thanks!
    Den

    Hi,
    You can go for Customer Exit, writing simple ABAP code here.I have given the sample code also.Its better to go with Variable exit.
    Customer or Variable exit is done in CMOD transaction. There are 2 kinds of Exit project available for BEX one at the Data target level EXIT_SAPMRSRU_001 and one at the query level EXIT_SAPLRRS0_001.
    check the folloiwng thread for Sample code:
    Re: Customer exit
    check the 3rd option: User exit for Varibales relevant to u.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6378ef94-0501-0010-19a5-972687ddc9ef
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm

  • Looking for calorie tracker with monthly totals

    I'm looking for an app which will track my workouts and give me monthly totals on calories lost. Is there such thing? If not then I just need the best calorie tracker on the iPhone. I had this neat app on the Droid called cardiotrainer it did the trick but the iPhone doesn't have it.
    Thank you

    Going to the third party re-seller could be part of the issue, but also VZW now has a rule that if you go to a feature phone from a Smartphone, you have x amount of days to get back on a smartphone and keep unlimited data.Not much you can do to get around that.
    Going back to the Reseller. Even if VZW was able to get you back on the plan, you most likely would be hit with a $300+ETF from the reseller for changing something on your plan within 181 of sgning the contract with them.
    Either way, you would be paying more.

  • Year to Date and Monthly totals

    I know that this is rather simplistic, but I'm new to Discoverer and need to set up a bunch of sales reports with MTD and YTD columns. I'm going to be using the same SQL query for many of my reports but customizing the reports to show sales by state, product line, etc.
    Is there a formula/function I can use in Discover for the Month to Date and Year to Date totals?
    Thanks,
    Joseph

    Hi Joseph
    You can use the analytic range SUM calculation for these. For the month to date, use the a PARTITION BY of month with a range of all the preceding rows in the partition up to and including the current row. For the year, you would simply change the PARTITION BY to be the year.
    Here are some examples drawn from my own database:
    I have the following items:
    ORDER_YEAR
    ORDER_MONTH
    ORDER_DATE
    SELLING_PRICE
    With these defined, the formula for month to date is:
    SUM(Sales.Selling Price SUM) OVER (PARTITION BY ORDER_MONTH ORDER BY ORDER_DATE ASC ROWS UNBOUNDED PRECEDING)
    The formlua for year to date is:
    SUM(Selling Price SUM) OVER(PARTITION BY ORDER_YEAR  ORDER BY  ORDER_DATE ASC  ROWS  UNBOUNDED PRECEDING )
    Basically what we are doing is telling Discoverer to SUM the SELLING_PRICE, and you should be able to take these and adjust them for your own report.
    Let me take a look at the month to end and describe what is going on. Basically the PARTITION BY is defining a set of rows which are to be included. In this case it is all rows that have the same ORDER_MONTH. The ORDER BY clause tells Discoverer to place the items in order, with the oldest order first. The ROWS UNBOUNDED PRECEDING tells Discoverer to SUM all of the items within the set (within the PARTITION BY) from the oldest item (UNBOUNDED PRECEDING) to and including the current item. We could have added a BETWEEN clause too but that is implied. With a BETWEEN clause it would look like this:
    SUM(Sales.Selling Price SUM) OVER (PARTITION BY ORDER_MONTH ORDER BY ORDER_DATE ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)
    If you want the current row to be included with UNBOUNDED PRECEDING you don't need to explicitly name it because that is the default. Other options you could use are these:
    UNBOUNDED FOLLOWING - this SUMS to the end of the PARTITION
    ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING - you can guess that this will add all of the items, which you will rarely use because if you omit the ROWS command then this range between first and last is actually the default
    Rather than ROWS BETWEEN you can also say RANGE BETWEEN, like this:
    SUM(Sales.Selling Price SUM) OVER (PARTITION BY ORDER_MONTH ORDER BY ORDER_DATE ASC RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)
    I hope this little dissertation on running totals helps.
    Best wishes
    Michael

  • MDX for Start of Month Values at Daily level

    Hey Guys,
    I am dealing with a requirement as below, the solution i have is either not addressing the complete problem or is extremely slow and in many cases just not feasible. Need a little help on the same.
    Problem: Need a query with cross join of 4 dimension (10 levels) and a date dimension, i need to determine a measures's first
    available value across time periods such as Start of month, start of year Etc.. 
    I have 
    dimA - Level A1
    dimB - Leve B1,B2,B3
    dimC - Level C1
    dimD - LevelD1, D2,D3,D4,D5
    Date Dimension - Date, Month, Year as levels.
    Measure - M1 To M5
    Query: 
    SELECT
    NON EMPTY
    [Measures].[M1]
    ,[Measures].[M2]
    ,[Measures].[M3]
    ,[Measures].[M4]
    ,[Measures].[M5]
    ,[Measures].[M1SOM]
    } ON COLUMNS
    ,NON EMPTY
    [DimA].[A1].[A1].ALLMEMBERS*
    [DIMB].[B1].[B1].ALLMEMBERS*
    [DIMB].[B2].[B2].ALLMEMBERS*
    [DIMB].[B3].[B3].ALLMEMBERS*
    [DIMB].[B4].[B4].ALLMEMBERS*
    [DIMB].[B5].[B5].ALLMEMBERS*
    [DIMC].[C1].[C1].ALLMEMBERS*
    [DIMD].[D1].[D1].ALLMEMBERS*
    [DIMD].[D2].[D2].ALLMEMBERS*
    [DIMD].[D3].[D3].ALLMEMBERS*
    [Date].[Date].[Date].ALLMEMBERS*
    [Date].[Month].[Month].ALLMEMBERS*
    } ON ROWS
    FROM
    [Cube]
    ***The above query has all those cross joins as this query would power an SSRS report dataset.
    Need to create a new calculated measure or a real (persisted measure) that displays the Start of month & Start of year Values. Below are the options i have currently. Lets assume, Measure M1 is the one for which i need the SOM and SOY values.
    Create a persisted measure (M1SOM) based off the measure M1 and provide an aggregation function of "FirstNonEmpty" : This works perfectly when we run a query at Month level i.e. in the above query have [Date].[Month].[Month].Allmembers instead
    of [Date].[Date].[Date].Allmembers. It displays the first available non empty value of the month. However, this means the rest of the measures are aggregated at month level. If i want to display the daily values of the other measures along with SOM values
    for this measure it wont work, cause the scope now changes to a single date and i just get the daily value in the M1SOM measure as well.
    Create a calculated measure (M1SOM) as below, along with the query above and the same thing happens. Cant display the SOM values at a daily date level.
    WITH
    MEMBER [Measures].[M1SOM] AS
    [Date].[Date].FirstChild
    ,[Measures].[M1]
    3. Create a calculated member as below, This works! however, the query
    absolutely kills my machine and takes forever to execute, if i run it with more than 3 levels in the cross join. 
    WITH MEMBER M1SOM AS Head(NonEmpty({[Date].[Date].Parent.Children}*[Measures].[M1SOM])).Item(0)
    Is there a better way to achieve the SOM and SOY calculations at a daily level?
    Thanks
    Srikanth

    Hi Srikanth,
    Basically you want to get the cell values on different granularity for date dimension in the same result set. For performance consideration, we suggest to use MDX to get the 2 types of value separatedly and merge with T-SQL.
    Below is an example on how to get data from MDX within T-SQL for your reference.
    SET
    @mdx
    =
    '{some
    dynamic MDX}' 
    SET @sql
    =
    'SELECT a.* FROM
    OpenQuery(LinkedAnalysisServer, '''
    +
    @mdx
    +
    AS a' 
    BEGIN TRY 
    INSERT INTO #result 
    EXEC sp_executesql @sql 
    END TRY 
    BEGIN CATCH 
      IF ERROR_NUMBER <>
    'The error number you are seeing' 
      BEGIN 
        RAISERROR('Something happened that was not an empty result set') 
      END 
    END CATCH 
    SELECT * FROM
    #result 
    Regards

  • Timesheet JSGrid monthly totals on tasks

    Hello,
    How can I get the monthly subtotals against each task in My Timesheet JSGrid in Project Server. What I want exactly is having a column in the extreme right of the Timesheet. It should update similar to the daily subtotal in the bottom on the Timesheet. I
    browsed technet and got an idea of using JSGrid. but I am not sure how it will work
    Please guide me by listing the steps. 

    Hi Saadiya,
    I'm not a developer, but as far as I noticed for past implementations, it won't be easy to add a column to the existing timesheet jsgrid. I won't say "impossible" because some of my colleagues here on this forum might bring some ways to achieve it.
    As a workaround, please note that with PS2010 and 2013, the timesheet status bar displays in real time the number of actual hours entered in the grid.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Weekly totals via daily totals

    I am trying to have my weekly totals update as I input my daily totals. This is what I do now:
    =SUM(Daily 2010::Totals :: C16:C22)
    The only problem is when I drag down, instead of the next cell becoming C23:C29, it becomes C24-C30.
    I'd rather not have to type in, or drag selected cells, for each week.
    Thanks.

    Companion Pet Hospital wrote:
    I am trying to have my weekly totals update as I input my daily totals. This is what I do now:
    =SUM(Daily 2010::Totals :: C16:C22)
    The only problem is when I drag down, instead of the next cell becoming C23:C29, it becomes C24-C30.
    I'd rather not have to type in, or drag selected cells, for each week.
    Normal behaviour. When you move the formula down one row all cell references that are not absolute are incremented by one row.
    To increment the row reference by seven, you'll need to use OFFSET and some extra math in the formula. Here's an example. Table 1 is on the left. The formula in Table 2::B2 can be filled down by dragging the handle.
    For more about OFFSET (and the rest of the supported functions in Numbers), see the iWork Formulas and Functions User Guide. OFFSET is discussed on page 206, with description and some examples. The guide (and the equally useful Numbers '09 Users Guide) iis available through the Help menu in Numbers.
    Regards,
    Barry

  • Calendar: Month view Needs Daily Items on Side

    This is a "problem" on N8 and E7 and X6 (as far as I have noticed)
    or probably all Symbian^3 phones....The Calendar month view simply shows a table of each month with dates sorted in columns of dayOfWeek.
    This view takes up the full screen space. 
    I would like to request this view be similar to E72  
    1. When user select a date in the month -> another part of the screen would display the agenda of that date.

    I have the same think as I have upgraded my N97 to E7 couple weeks ago
    the month view in S^3 Calendar is not forthright as that in S60 5th
    jaybc40 wrote:
    This is a "problem" on N8 and E7 and X6 (as far as I have noticed)
    or probably all Symbian^3 phones....The Calendar month view simply shows a table of each month with dates sorted in columns of dayOfWeek.
    This view takes up the full screen space. 
    I would like to request this view be similar to E72  
    1. When user select a date in the month -> another part of the screen would display the agenda of that date.

  • Delete DSO data for current month on a daily basis.

    Hi Gurus,
    We have a requirement where we have to delete the data in the BW DSO's for the Current Month every day before loading data into it. The reason for this is that in R3 they delete data for the current month in addition to adding new records and changing existing records. Since we do a Full load in BW, the deleted records in R3 will still exist in the BW DSO, hence the need for deletion.
    We can't delete ALL the data in the DSO as we use the BW DSO for Archiving purpose and the R3 table at any point of time will have just 3 months of data, while BW will have historical data.
    I know there is a process to delete DSO contents in the Process Chain, but can it be set up to just delete the current months data??
    Thanks
    Arvind

    Hi Arvind,
    The program RSDRD_DELETE_FACTS or transaction DELETE_FACTS will help you in deleting the records. Execute the program and select the option 'Generate Selection Program'. It will create a Z program , you can then dynamically select the current month in the Variant and assign the Z program and the variant in ABAP step of the process chain.
    Hope this helps with your requirement.
    Regards,
    BINETWEAVER2004s

  • X-axis labels for months when listing daily data

    Hi all,
    Have a problem with the presentation of a chart that I need some assistance with, can anyone advise.
    OBIEE 10.1.3.4.1
    I have a chart that is display data along the x-axis for a rolling year, however the selection is excluding weekends. On the date column I have a custom format of MMM-yyyy to produce the months and get 12 labels, however it will often skip one month and duplicate another. So for example I'm currently getting:
    Mar-2010, Mar-2010, May-2010, Jun-2010, etc.....
    Mar-2010 is shown twice and Apr-2010 is missing.
    I appreciatre this is because I'm missing off the weekends, it sometime coincides that a given month has far less days shown.
    Can anyone suggest a soilution to get the 12 months listed as the actual 12months rather then some duplicates/missing?
    Thanks for any assistance.

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Trying to get end of Month totals fro SQL

    I want to write a query that I use to find out how many active clients I have per month. It uses a simple query that finds out when the last update was what that was and if the client is still active.
    then I just select the clients that where active before a particular date.
    where timestamp < to_date('2007 01 01 01:00:00', 'YYYY MM DD HH24:MI:SS')
    I want to get a query that will show this by month.
    Any help would be much appreciated.
    Thanks

    hi
    use the follwing query to find out the months
    select months from
    (select add_months(trunc(sysdate,'y'), rownum-1) months
    from all_objects
    where rownum<=12)
    add your calculation columns in this query
    Regards
    Singh

  • Change monthly partitions to daily

    My table is partitioned on a monthly base. They asked to change those partitions in days.
    How can I do ?
    I was thinking to create a temporary table...
    I'm using 10gR2

    Of course you can create that temp table with the new day partition;
    then move the data from your monthly partitioned table to temp table;
    Finally rename your monthly partitioned table to "your_old_monthly_table" and temp table to your current montly partitioned table.

  • Total of Daily Balances for transaction PTFMLA

    Dear all
    I'm working with a class, to modify the method, but I'm having trouble.
    We're using the ECC6.0 system and the class is ZCL_IM_FMLACUML from SAP. When drilling down using SE80 object list, you go from ZCL_IM_FMLACUML to Methods to IF_EX_PTCCE_DIST_DATA to method DISTRIBUTE_DAILY_BALANCE.
    The code I'm trying to add is:
    method IF_EX_PTCCE_DIST_DATA~DISTRIBUTE_DAILY_BALANCE.
      DATA: "wtab LIKE LINE OF IM_CONTRACT_DAILY_BALANCES,
            wtab TYPE PTR_CONTRACT_TES,
            itab TYPE TABLE OF PTR_CONTRACT_TES,
            tes_tab TYPE TABLE OF PTT_TES,
            tes_wa LIKE LINE OF wtab-tes,
            sum_hours TYPE anzhl.
      CLEAR sum_hours.
      LOOP AT IM_CONTRACT_DAILY_BALANCES INTO wtab.
       tes_tab = itab-tes[].
        LOOP AT wtab-tes INTO tes_wa WHERE ztart = 'Z020'.
          sum_hours = sum_hours + tes_wa-anzhl.
        ENDLOOP.
      ENDLOOP.
          tes_wa-ztart = 'Z022'.
          tes_wa-anzhl = sum_hours.
      LOOP AT itab INTO wtab.
       APPEND tes_wa TO itab-tes.
       MODIFY IM_CONTRACT_DAILY_BALANCES FROM itab transporting tes.
      ENDLOOP.
      BREAK-POINT.
    endmethod.
    The error is that the field IM_CONTRACT_DAILY_BALANCES cannot be changed.
    Any ideas how I can fix this. The table is a 3D table, and I only want to append one row to the table TES, which is inside the table IM_CONTRACT_DAILY_BALANCES.

    Hi,
    mhh...
    The sense of importing parameters is directly this! To prevent thas someone change the values.
    If i implement a parameter as import and not as changing, i will not that someone change of the passed value...
    You need maybe a different exit...
    Regards,
    Gianpietro

Maybe you are looking for

  • [AMD] K8N SLI --MS-7185

    what settings in the bios do i change to overclock the cpu ,i'm running a AMD64 x2 3800+. do i just change the CPU FSB frequency or do i have to change HT frequency and HT width as well any help would be appreciated thanks in advance

  • Relink many files at once

    I was wondering if anyone can help.  I'm using Illustrator CS6.  I have an artboard with 200 of the same placed file.  I now want to use this same layout for 30 other views, they are the same size, but different images.  If I relink them I have to cl

  • Nokia E51 Update Help!

    Hi my dad gave me his E51 after he had bought an E71. Whan i received it, the keys especially the home button were working well. After sometime, the left (blue) menu key was not working. And then it came to the Volume buttons, then to the number 4 bu

  • SWCV not seen in ABAP Proxy

    We have created some SWCVs. But some can be seen whereas some others cannot be seen! The source and target systems are the same and all are JDBC sender to ABAP proxy receiver scenarios to the same client of ECC. Only the products are different. Can s

  • Debug - sap-wd-flashDebug=X ?

    You should defintely report these issues to support.  The sap-wd-flashDebug=X should defintely load the debug version of your component and you should get that error upon uploading to the MIME repository. As for the Copy Source, Copy Log options.  Th