Showing average data summarized 'Date type' (Sunday, Monday, etc.) wise

Greetings Everyone,
I'm trying to create a chart that shows data averages summarized date type wise.
Background and the specific requirement is as follows:
The application from which I fetch data is a visitor management system. User is prompted to select a date range and I want to show how many visitors have visited the office, in a day type (Sunday, Monday, etc.) breakdown.
For instance, if the date range includes four Mondays and the total number of visitors that have visited on Mondays for this period is 120, then the average for Monday would be 30. Likewise, I want to summarize data for all the seven days of a week.
I have tried different cross-tab options but haven't succeeded yet,
Help would be much appreciated.
Best Regards,
Lakshan.

hi Lakshan,
the answer depends on whether or not your data is missing any dates...i.e. if you've got a Monday that doesn't actually show up in your report (but is still within the date range), do you still count that? if so, that makes things a bit more difficult. if this is the case then let us know.
if your data has no gaps, then here's what you can do:
1) create a new formula called DaysOfWeek with syntax like
     weekdayname(dayofweek({your date field}))
2) Insert a Chart and for the On Change Of use the DaysOfWeek formula
3) click on the formula in the On Change Of and press the Order button...use a Specified Order and add all of the week day names in by the order that you want
4) add your visitors field to the Show Value and Set the Summary Operation to Average
cheers,
jamie

Similar Messages

  • Formula based on Display data (summarized data)

    PrvYrAmt--PrvYrQty-- AvgPrice----CurYrQty--CurYrAmt
    (PrvYrAmt----
    (CurYrQty *
    / PrvYrQty)----
    Prv Yr AvgPrice)
    150 -
    10 -
    $15--15--
    225
    100 -
    20 -
    $5  -
    10----
    50
    Total  -
    $10 -
    25----
    250(sum 275)
    When I try to create a Formula with CurYrAmt I need to use $275 and not $250.
    I tried the SUMCT and SUMCT functions, but it does not use the summarized data $275 as it is a "display data" function. It uses 250 instead.
    Does anyone have any ideas to force BEX to use the Summed data 275 in the calculation?
    Thanks
    Edited by: Rajesh Francis on Nov 21, 2008 9:44 PM
    Edited by: Rajesh Francis on Nov 21, 2008 9:45 PM

    The problem is not with the SUM. I am able to get the sum value 275.
    The problem is when I use the result from the formula "CurYrAmt@PrvYrPrice" in another calculation. In that case the SUM value 275 is not used; only the value 250 is used.
    [email protected]YrPricePrdtivity
    (PrvYrAmt--(CurYrQty *--
    (CurYrAmt-(CurYrAmt
    / PrvYrQty)--Prv Yr AvgPrice)--
    /CurYrQty) - CurYrAmt
    ************************************************************************************************************@PrvPrice
    150 -
    10 -
    $15--15225240$16--
    $15
    100 -
    20 -
    $5 -
    10--5075$7.5--
    $25
    Total -
    $8.33 -
    25--208.25315$13--
    $106.75
    (sum 275)--(sum 23.5)--
    (sum 40)
    For Productivity Increase (Prdivity) = CurYrAmt - CurYrAmt@PrvYrPrice
    What is happening: Total =  315 - 208.25   =  $106.75
    What I want in the calculation = 315 - 275  =  $40
    For the Productivity Amount, I can still use the Summation property.
    BUT
    When I try to create a Formula for measuring Productivity +Percent %+ :
    *Formula =>   'Prdtivity' %A 'CurYrAmt@PrvYrPrice'*
    What is happening:   106.75 / 208.75    =  50.77%
    What I want:              40 / 275             =  14.5%
    Edited by: Rajesh Francis on Nov 24, 2008 4:28 PM

  • Summarizing Data Across Multiple Dates

    Here is my issues.
    I have two dimensions.
    Date and Time. Date is a standard date dimension. Time is a time dimension who's leaf level is at the second.
    I need the ability to obtain a value like maximum from my fact table for a given set of prices. I want to summarize this value at the day level. The issue is that the value can span across 2 dates.
    Example. A Sunday starts at 4PM and ends Monday at 9AM. I need to obtain the maximum value across these specific times from both Monday and Sunday (at the specified times).
    Effectively, I need MAX(MONDAY at time 12:00AM - 9AM, SUNDAY at time 4PM - 11:59:59PM) to be displayed in the data for Date Monday.
    Suggestions on to approaches for this?

    Guys thanks for your suggestions.  Yes I'll give those options a try...
    Just a pity there was no 'aggregator' type activity which would negate the need to go down the route of writing out to SQL or create master/child runbooks which just seem a bit of overkill or adding complexity esp when using very simple runbooks - like I
    say maybe one for the IP developers out there...
    To illustrate my specific eample (one of many simple runbooks requires a summary email sent out to show output) as below:
    So the first Powershell gets VDI desktop names (3 of them) then 2nd Powershell uses these machine names as published data to get associated registration state.  From there I'd ideally like to just generate out the single summary email showing the 3
    machines/reg states instead of 3 separate emails.  I added the append line and get line activities to expose the output to check it was OK and then tried flattening various activities to try and only generate the single email (I removed the junction activity
    infront of sendmail as it didn't work)
    So I'll try the options suggested for spliiting runbooks and/or writing to SQL and see how that goes..
    Cheers

  • No stock showing in Inventory on date stock report

    Hi
    I have created a Stock on date query at plant material level using standard cube 0IC_C03
    to get stock quantity on posting date i have restricted 0TOTALSTCK
    by 0CALDAY  variable .
    Correct me if any thing wrong to get on date stock.
    When i m executing that report for date 20.07.2009 , it shows 0 qty for a given Plant(1001) and a given material(ABC)
    where MB5B report in R/3 with same date show sum stock qty.
    again i executed the report with 17.07.2009 , on which the material(ABC) was lastly transacted for that given plant(1001)
    for this date i m able to match the qty with MB5B.
    Then i check sum other stock report which is at 0CALMONTH  level wen executed with 07.2009 shows correct qty.
    Now my question is y it is showing 0 qty wen the stock is there in it ? is query definition not proper to get stock on date ?
    Thanks and regards,
    Sonal....

    Hi,
    No need to restict.
    in rows, calday, plant,  materials
    in column 0TOTALSTCK.
    for 2 days data will look like this.
    19/07/2009 --  1001 -- 011235  ---   256 KG
    20/07/2009 --  1001 -- 011235   ---  280 KG
    stock as on 19  in MB5B, after recipts and issue is 256 KG.
    stock as on 20 th in MB5B, after recipts and issue is 280 KG.
    based on issues and recipts, data will be added to total stock.
    yes, stock will be last date posting date. as on today we can validate data till yesterday.
    one more thing for plant whose values are not matching, did to drill down stock type and stock category and check data.
    use RWBE t-code also for validation.
    Best Regards.

  • I have used SAP doc mgmt for years. We copied a client and now when I configure a Class to my DMS DIR and go to CV01n Additional Data NONE of the characteristic entry boxes show up. Additional Data is blank.

    I have used SAP doc mgmt for years. We copied a client and now when I configure a Class to my DMS DIR and go to CV01n Additional Data NONE of the characteristic entry boxes show up. Additional Data is blank.
    It appears there must be some high level setting missing in the client. I have checked all authorizations and cannot find a difference between this client and all of the other clients we have. Only this one client does not show the class characteristics in the Additional Data tab.
    Any ideas of why this standard function is not working). It does not matter which DIR I config the 017 class to, nothing shows on Additional Data.

    Hi,
    The issue is resolved. We are working in a sandbox with Class configuration on a DMS issue related to standard class 017. There are no standard settings in SPRO - Cross-Application Components | Maintain Object Types and Class Types | for the object type DRAW that will allow "auto-populating" characteristic values as we do with VC class 300.
    For whatever reason DRAW and class 017 are not configured by SAP in the same manner as class 300 for example.
    We made a config entry for DRAW Class 017 VBAP. Let's just say the system did not like that.
    We are exploring other options.

  • PO date / Purchase order type

    Hello,
    When creating a standard order in SAP with VA01, we can fill in the fields "PO date" (the date when the customer send the PO) and "Purchase Order Type" (the source of the PO - by Email, by phone, by fax)...The report VA05 doesn't show those fields...Is it an other report showing these data that I can use ?
    Many thanks.
    Gabriela.

    Hi Gabriela
    You can Check in VA05  , so kindly check the document type feild & PO date feild . If you cant see then check in VA05n 
    Regards
    Srinath

  • How to show 2 groups of data in 1 XY plot at different time?

    Hi, all:
    I have a question and hope someone can help me figure out the solution or whether or not no solution for the question. I need to collect 2 groups of data [x(n),y(n)] and [x(n),z(n)]. I will collect x-y first then x-z. I need to collect and show the x-y data first, when I am satisfied, then collect and show the x-z data. It should be in the same plot. I got an error message so far and cold not figure out the solution. I attached my code and hope someone can help me. The code is in version 8.0 and I am sure there is no virus. Thank you a lot in advance.
    Attachments:
    plots.vi ‏13 KB

    Hello ccyang
    When you look the context help of the xy-graph in the diagram, you see the supported data types. An array of xy-clusters is accepted. You may look in the attached code how you could built the array  of the two plots.
    Check the example VIs included in LabVIEW (in the help menu). There are several examples on charts and graphs.
    Greetings
    shb
    Attachments:
    plots executable.vi ‏15 KB

  • Issue loading Meta Data for IDoc Type WPUKSR01 in XI Integration Repository

    Hi,
    I want to load the Meta Data for IDoc Type WPUKSR01 in XI Integration Repository out of BI. Unfortunately, this IDoc is not available in the IDoc List. I checked in BI and the IDoc Type is available in WE60 and WE30. Also, I can load the Meta Data for the Idoc in XI ABAP (IDX2).
    Can someone tell me why the IDoc doesn't show up in XI Integration Repository Import Object List?
    Thanks in advance.
    Best Regards.
    Alex

    Hi Aamir,
    The Idoc is released since Release 30A. I also tried to load the IDoc Meta Data from ERP with the same result: it does not show up in the list.
    Thanks anyway.
    Alex

  • How to show timestamp along with date in LOV dropdown

    Hi,
    We have a requirement to show timestamp along with date as a display column in a LOV drop down. Type of the date column in VVO is set to timestamp. But still it is showing only date in the UI.
    But it is showing timestamp when we run it through AM. Is there any thing in to do in addition to display it in UI? Or it is not feasible? Please suggest me on this issue.
    Thanks in advance.
    Thanks,
    Santhosh

    The date format displayed in UI depends on applcore preference set for current user, try changing date format set for current user to include time along with date.

  • Calculate average for some dates

    Hi,
    I would like to calculate average for some dates. Is there any function module or any process, please provide me.
    venkat.

    Use this FM HR_HK_DIFF_BT_2_DATES
    Example:
    DATA: DATE1 type P0001-BEGDA,
              DATE2 type P0001-BEGDA,
    YEARS type P0347-SCRYY,
    MONTHS type P0347-SCRMM,
    DAYS type P0347-SCRDD.
    DATE1 = '20070331'.
    DATE2= '20070101'.
    CALL FUNCTION 'HR_HK_DIFF_BT_2_DATES'
    EXPORTING
    DATE1 = date1
    DATE2 = date2
    OUTPUT_FORMAT = '03'
    IMPORTING
    YEARS = years
    MONTHS = months
    DAYS = days
    EXCEPTIONS
    INVALID_DATES_SPECIFIED = 1
    OTHERS = 2
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Joan

  • Function Module to convert date to week from Sunday to Saturday

    Hi,
    In BW the convertion date to week always give week from Monday(1) to Sunday(7)
    I'm looking for a function module to convert date to week from Sunday(1) to Saturday(7)
    Thanks
    Sebastien

    Hi,
    I think this SAP standardized. Maybe you need to create custom FM.
    You can copy SAP FM DATE_GET_WEEK. in the FORM FIRSTWEEK, I see below case,
    CASE start_weekday.
        WHEN if_calendar_definition=>c_monday.
          start_weekday_number = 1.
        WHEN if_calendar_definition=>c_tuesday.
          start_weekday_number = 2.
        WHEN if_calendar_definition=>c_wednesday.
          start_weekday_number = 3.
        WHEN if_calendar_definition=>c_thursday.
          start_weekday_number = 4.
        WHEN if_calendar_definition=>c_friday.
          start_weekday_number = 5.
        WHEN if_calendar_definition=>c_saturday.
          start_weekday_number = 6.
        WHEN if_calendar_definition=>c_sunday.
          start_weekday_number = 7.
      ENDCASE.
    Maybe you can play something here.

  • Using average days between dates to predict a launch date on another produc

    I hope someone might be able to help me out here.
    I am at the limit of my Webi expertise! (which is not saying a lot)
    We have a universe containing date information relating to the launch of products thus:
    Product Name
    Supplier Name
    Category
    Sample Availability Date
    Testing Start Date
    Launch Go Date
    It is a simple matter to create a variable u2018Project Timeu2019 as DaysBetween(Testing Start Date;Launch Go Date)
    And using the Average function we can create Average Project Length - Also with the Report, and Section keywords we can show the global average, and averages by Supplier and Category.
    Here is my problem.
    We also have Products in the universe that have yet to have their projects kicked off, so Testing Start Date and Launch Go Date for those products are null data. I want to use the Sample Availability Date and the Average Project Length variable to predict the probable Launch Go date, however, in the report this element shows up as an empty cell.
    Does anyone have an idea how I might achieve this?
    Many Thanks
    Mark

    OK...
    Lets imagine there are records for 100 devices in the universe.  75 of them have valid project start dates and launch dates.  25 of them have neither because those projects are yet to start.  However they do have a sample availability date.
    Using the DaysBetween function I can create a variable called project length from the start and launch dates.  I can then use the Average function to get the average project length (for the devices that actually have a project length)
    Somehow I want to add this average project length to the sample availability date on the records that have yet to have a start date.
    As projects end they will add to the average, and we can see how close they were to the predicted launch. As new records are added they will automatically have a predicted date.
    Right now I have the average project length, If I create a table filtering on completed projects (Projects with a non-null launch date) and I add a column showing average project length, because I've used the In Report keyword on the average, it shows the average value in this table.
    If I have a stand-alone cell with the average project length it shows the right value
    But if I have a table showing the devices yet to start (filtering on Null start date) If I add the average project length into that table it shows as blank (I.e. no value at all)
    Hope this helps

  • How to bind table data to datatable component and show all the table data??

    I bind table to datatable component !
    The datatable has four rows,
    but the datatable alway show the first row data in its four rows,why??

    do you mean at design time or at runtime?
    at design time, the datatable uses generic fields to
    show if data type is numeric, text, date, etc...
    If this is at runtime,
    - what driver are you using?
    - how did you bind the data to the table?
    - what is the resulting code in the Java backing file?
    hth,
    -Alexis

  • Selecting dates from friday till sunday???

    Hello folks,
    Am trying to work on a query where there is a date selection in the where clause. i.e if sysdate is monday i have to get the data from friday until Sunday.
       and sh.change_date >=
                   to_date('20110304 000000', 'YYYYMMDD HH24MISS')
               and sh.change_date <=
                   to_date('20110306 235959', 'YYYYMMDD HH24MISS')Now am hardcoding the dates that i want to see in the change_date. But Is there any way that every time when i run the query i dont have to change these date values??
    Thanks a Bunch!

    Please see the following
    SQL> SELECT * FROM TEST_A;
            ID COL                                                CHANGE_DA
             1 A                                                  04-MAR-11
             2 A1                                                 03-MAR-11
             3 A1                                                 04-MAR-11
             5 A1                                                 06-MAR-11
             6 A1                                                 05-MAR-11
             7 A1                                                 07-MAR-11
    6 rows selected.
    --Today is monday so ruuning as of today.
    SQL> SELECT *
      2    FROM test_a
      3   WHERE TRUNC (change_date) BETWEEN DECODE (TRIM (TO_CHAR ( SYSDATE, 'DAY')),
      4                                             'MONDAY', TRUNC (SYSDATE) - 3,
      5                                             TRUNC (SYSDATE) - 1)
      6                                 AND TRUNC (SYSDATE) - 1;
            ID COL                                                CHANGE_DA
             1 A                                                  04-MAR-11
             3 A1                                                 04-MAR-11
             5 A1                                                 06-MAR-11
             6 A1                                                 05-MAR-11
    --Running as of tomorrow i.e tuesday. So adding 1 to all SYSDATE's
    SQL> SELECT *
      2    FROM test_a
      3   WHERE TRUNC (change_date) BETWEEN DECODE (TRIM (TO_CHAR ( SYSDATE+1, 'DAY')),
      4                                             'MONDAY', TRUNC (SYSDATE+1) - 3,
      5                                             TRUNC (SYSDATE+1) - 1)
      6                                 AND TRUNC (SYSDATE+1) - 1;
            ID COL                                                CHANGE_DA
             7 A1                                                 07-MAR-11
    SQL> Hope this helps.
    G.

  • Day between two dates excluding Saturday and Sunday

    Hi,
    I have the Requirement like : there are two inputs in query 1)startdate and 2)end date when end user enter the start date and end date the sql query has to retrive the number of days between given start and end dates, and it should be retrivied with two condition 1)all sundays between the above dates excluded 2)second and fourth Saturday of the month in between the start and end dates has to be excluded .
    example start date:01-may-09
    end date: 16-may-09
    expected output:13

    Balaji.M wrote:
    Hope this will be helpful for you.
    SELECT dates,
    TO_CHAR(dates, 'D'),
    TO_CHAR(dates, 'DAY'),
    TO_CHAR(inner.dates, 'W')
    FROM (SELECT TO_DATE('01-may-09') + LEVEL - 1 dates
    FROM DUAL
    CONNECT BY LEVEL <= (TO_DATE('16-may-09') - TO_DATE('01-may-09')) + 1) inner
    WHERE ( ( TO_CHAR(inner.dates, 'D') = 7
    AND TO_CHAR(inner.dates, 'W') NOT IN(2, 4)
    OR TO_CHAR(inner.dates, 'D') not in (1,7)
    You can replace the start date (two place) and end date (one place) by variables and check.Of course we have to be aware of local NLS settings:
    SQL> SELECT dates,
      2  TO_CHAR(dates, 'D'),
      3  TO_CHAR(dates, 'DAY'),
      4  TO_CHAR(inner.dates, 'W')
      5  FROM (SELECT TO_DATE('01-may-09') + LEVEL - 1 dates
      6  FROM DUAL
      7  CONNECT BY LEVEL <= (TO_DATE('16-may-09') - TO_DATE('01-may-09')) + 1) inner
      8  WHERE ( ( TO_CHAR(inner.dates, 'D') = 7
      9  AND TO_CHAR(inner.dates, 'W') NOT IN(2, 4)
    10  )
    11  OR TO_CHAR(inner.dates, 'D') not in (1,7)
    12  );
    DATES     T TO_CHAR(D T
    01-MAY-09 5 FRIDAY    1
    02-MAY-09 6 SATURDAY  1
    03-MAY-09 7 SUNDAY    1
    05-MAY-09 2 TUESDAY   1
    06-MAY-09 3 WEDNESDAY 1
    07-MAY-09 4 THURSDAY  1
    08-MAY-09 5 FRIDAY    2
    09-MAY-09 6 SATURDAY  2
    12-MAY-09 2 TUESDAY   2
    13-MAY-09 3 WEDNESDAY 2
    14-MAY-09 4 THURSDAY  2
    15-MAY-09 5 FRIDAY    3
    16-MAY-09 6 SATURDAY  3
    13 rows selected.
    SQL>Day 1 on my local database is Monday, not Sunday.

Maybe you are looking for

  • Installing ALBPM Studio under Suse Linux

    I have downloaded the Linux installer for ALBM studio 5.7. When I run the installer, I get numerous file not found errors for shared objects. I am running Suse 10.1. Looking on the release notes under installer known issues, I read: "When pointing to

  • Are there any plans to fix the misinterpretation of the Exchange ActiveSync policy "Minimum number of character sets"  in IOS6?

    We are testing using IOS6 in our Corporate environment and came across a scenario where IOS6 incorrectly interprets the Exchange 2010 ActiveSync policy "Minimum number of character sets" as the number of special characters required rather than the nu

  • Embedded fonts in pdfs not printing correctly

    Since updating to 10.5, I've run into a really annoying problem: when printing pdfs, many embedded fonts will not print correctly. Korinna, for example, prints as something totally different. I've tried using both Preview and Adobe Reader, and no luc

  • Oracle 8i Release 3 (8.1.7)

    All, We have released Oracle 8i R3 to OTN today. This release includes a few more features than our 8.1.6 release. You need a system with glibc 2.1.3! Distributions based on glibc 2.1.3 are: Red Hat 6.2 and Red Hat 6.2 Enterprise Edition (you can upd

  • New Playlist/upgraded software

    Per the prompt, I upgraded to the latest software for my ipod after connecting. Now I can't get my ipod to recognize a new playlist. It shows me the playlist is there, and after several attempts at copying a CD into it, the songs are finally there to