Quarter Vs week data difference

Hi,
I am running two reports:
1st report - It is based on the 2nd Quarter of the year.
                 means it is restricted by using 2nd quarter.
2nd report - It is same as 1st report, except that it is based on the 12 weeks which constitute that qtr.
so therotically the output of both the reports should be same.
because the selection criteron of both is same
But the output of the reports are different ...
Howz it possible..please help me out..its quite urgent....

Himashu,
              Are the both queries based on the same infoprovider, if they are the best way to check is pull the 0calweek into your 1st query free characteristic and run the report for the 2nd quarter and drill it down by the 0calweek in rows, compare this report with your 2nd report, check for the global filters and restrictions in two reports, check whether they are same or different.
*assign points if helpful**
Peter R

Similar Messages

  • Quarter to week convert

    hi,
    Could you please suggest some Function Modules that convert data from Quarterly basis to weekly basis

    Hi,
    There is no standard function for this. Infact Quarter to Week conversion is strange requirement.
    As one quarter can have different week numbers, there is no logic how to determine exactly the required week number.
    Regards
    SSS

  • Advanced Custom Field help. Need fiscal quarter/fiscal week.

    A coworker is setting up an MS Project...project, and she asked
    for some help adding a custom field that would convert the Start date field into our Fiscal Quarter Fiscal Week schema, to display as FQFW, e.g. Q1W1. I've written a formula that accomplishes this quite nicely in excel, but I've never even touched Project
    until this week. Apparently it doesn't take formulas quite the same way as Excel does. I tried using the ''Switch" function in Project, and it worked, but it only accepts 14 arguments(right?), and there are obviously 52 weeks we're dealing with. Does
    anyone have any suggestions? Would there be a way to do this using VBA? (I know next to nothing here as well.)
    Formula in excel where A1 is the Start Date:
    =IF(AND(A1>=DATE(2014,2,1),A1<=DATE(2014,5,2)),CONCATENATE("Q1","W",(INT((A1-DATE(2014,2,1))/7)+1)),IF(AND(A1>=DATE(2014,5,3),A1<=DATE(2014,8,1)),CONCATENATE("Q2","W",(INT((A1-DATE(2014,5,3))/7)+1)),IF(AND(A1>=DATE(2014,8,2),A1<=DATE(2014,10,31)),CONCATENATE("Q3","W",(INT((A1-DATE(2014,8,2))/7)+1)),IF(AND(A1>=DATE(2014,11,1),A1<=DATE(2015,1,30)),CONCATENATE("Q4","W",(INT((A1-DATE(2014,11,1))/7)+1)),FALSE))))
    Any and all suggestions welcome.
    Thanks.

    msinnen,
    You're correct, switch statements and if statements can only be nested to 15 levels. However, VBA can get you there. This macro should do what your coworker needs with the following assumptions - the fiscal year starts in January and quarters end on the
    last day of the month, not the last Friday. If either or both of those assumptions are incorrect, then this macro will need some tweaking. Note: the quarter and work week designator will be written into the Text1 field.
    Sub FQuartsandWeeks90()
    Dim t As Task
    Dim Mon As Integer
    Dim Qtr As String, Wk As String
    For Each t In ActiveProject.Tasks
        If Not t Is Nothing Then
            t.Text1 = ""
            Mon = Month(t.Start)
            Select Case Mon
                Case 1 To 3
                    Qtr = "Q1"
                    Wk = "W" & CStr(DatePart("ww", t.Start))
                Case 4 To 6
                    Qtr = "Q2"
                    Wk = "W" & CStr(DatePart("ww", t.Start) - 13)
                Case 7 To 9
                    Qtr = "Q3"
                    Wk = "W" & CStr(DatePart("ww", t.Start) - 26)
                Case Else
                    Qtr = "Q4"
                    Wk = "W" & CStr(DatePart("ww", t.Start) - 39)
            End Select
            t.Text1 = Qtr & Wk
        End If
    Next t
    End Sub
    John

  • Week-Data view issue

    Hello Experts.
    In month dataview when we copy value from one KF to other via macro, it gets copied correctly, but when a week lies in two month, the values is not correctly copied.
    Take e.g. of last week of Aug 2011, where it lies in Aug as well as in Sept.  In Month dataview the values are copied corrected in Aug & Sept, but not in week view. Can anyone please help me, how to fix this. We want the same values in week data view too.
    Regards
    Rahul Chitte

    Rahul
    I think you will notice a difference between monthly and weekly views when the week falls in two months. Taking the same example that you have used , lets say the value for august month is 100 ( for the last week that falls in aug and sep the value is 25  + 35  for the 3 days of aug it is 25 and for 4 days in sep it is 35).  So in the monthly view you will see 100 and this 100 will just include the 25 of the last week and the 35 will be taken into account in sep month. But in the weekly view the entire 25+35 (60) will show up against that  the last week  of aug and that makes perfect sense . If your doubt is still not clear , please elaborate your requirement
    Thanks
    Aparna

  • How to get current fiscal year/quarter/month/week

    Post Author: [email protected]
    CA Forum: Semantic Layer and Data Connectivity
    Hi friends,
    I have to calculate
    1. current year/quarter/month/week.
    2.Previous year/quarter/month/week.
    please tell the process to achieve the above scenerio's.
    the structure of the fiscal_cal is as  follows.
    Name                                      Null?    Type
    TODAY                                     NOT NULL DATE
    FISCAL_DAY                                         NUMBER(8)
    FISCAL_WEEK                                        NUMBER(6)
    FISCAL_MONTH                                       NUMBER(6)
    FISCAL_QTR                                         CHAR(18)
    FISCAL_YEAR                                        NUMBER(4)
    FISCAL_MONTH_WORK_DAYS                             NUMBER(2)
    sample week data is as follows
    FISCAL_WEEK
         200752
         200753
         209901
    Thanks.

    based on ur target database DBMS you can find a built-in functions be used in the universe designer to get the requirment you talked about, like in oracle
    to_char(mydate,'yyyy') it will return the year in the yyyy format.
    and the same way for the other things you want
    to_char(mydate,'q') return the quarter.
    w return the week of the month
    ww return the week of the year
    mm return the month
    ,, to get the last year
    you can use also a builtin functions
    like add_months(mydate,-12) that return the same date for the last year, and you can do the same operations as before.
    its all related to the DBMS.
    good luck

  • From where to get "First day of the week" data for all the locales, is it present in CLDR spec 24?

    I am trying to get "First day of the week" data from CLDR spec24 but cannot find where to look for it in the spec. I need this data to calculate numeric value of "LOCAL day of the week".
    This data to implement "c" and "cc" day formats that equals numeric local day of the week.
    e.g if "First day of the week" data for a locale is 2 (Monday) , it means numeric value for local day of the week will be 1 if it is Monday that day, 2 if it is Tuesday that day and likewise.

    Hi
    If you want to week to be started with Sunday then use the following formula:
    TimestampAdd(SQL_TSI_DAY, 1-DAYOFWEEK(Date'@{var_Date}'), Date'@{var_Date}') if it's retail week(starts from Monday) then the follow below:
    TimestampAdd(SQL_TSI_DAY, 1-DAYOFWEEK(Date'@{var_Date}'), Date'@{var_Date}')
    I'm assuming var_Date is the presentation variable for prompt...
    Edited by: Kishore Guggilla on Jan 3, 2011 4:48 PM

  • Date Difference in OBIEE

    Hi
    I have two date columns and I want one logical column which contains difference of those two DATE columns.
    But I found that we dont have any Date difference or Date Add functions in OBIEE Answers.
    Can anyone tell me any work around for the Date ADD/DIFF functions?
    Thanks
    Radha

    Or if you want database specific date functions, use EVALUATE and then specify the database functions. Check my blog entry here http://oraclebizint.wordpress.com/2007/09/10/oracle-bi-ee-10133-support-for-native-database-functions-and-aggregates/
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • Date Difference between to date formula variable

    Hi Expert,
                    I have create two formula variable one for Document Date and another one for Goods reciept date
    and through formula variable I am subtracting these two formula variable and getting the no. of days between
    document date and GR date.
    This Shows me the correct value for one document date because i am filtering my query according to document
    date,
    while i am giving the date range for document date is shows me incorrect result. bucause document date formula
    variable contains only one date.
    Eg. i am giving the document date range like 01.02.2010 - 28.02.2010.
          In document date formula variable it contains only 01.02..2010 and GR date formula variable it contain correct
    value, thats why the date difference is incorrect because those PO which has PO date like 12.02.2010 for that Doc
    formula variable bring the same date like 01.02.2010.
    Please tell me the solution
    Thanks and Regards
    Lalit Kumar

    Hi Expert,
                     Actually i have created two formula variable on for PO date and another for GR date
    and i've restrict the query through PO date.
    while i am taking the single PO date in Selection parameter it showing me correct difference
    eg: Selection Parameter for PO: 01.01.2010
    But while i am taking the date interval for PO date
    eg: 01.01.2010-30.01.2010
    PO No: XXXXX123 , Doc date: 01.01.2010 GR date: 7.01.2010 then date difference is : 6
    PO No: XXXXX432, Doc date: 03.01.2010 GR date: 8.01.2010 then date difference is : 7 but it is 5
    Thanks and Regards
    Lalit Kumar

  • Data difference between DBA_HIST_SQLSTAT and DBA_HIST_ACTIVE_SESS_HISTORY

    HI,
    I ran a query on a database few times which had different execution plan (basically first I ran with index and later without index).
    I tried to cross verify the data from DBA_HIST_SQLSTAT and DBA_HIST_ACTIVE_SESS_HISTORY for that particular query and found there were two different SQL ID for same SQL statement. Ideally if execution plan changes then only the plan hash value or hash value changes but in this scenario we have two different SQL ID with different Plan hash value or hash value.
    I need to understand why do we have this data difference?
    ==================================================================================================
    SQL> select snap_id,instance_number,sample_time,session_id,module,sql_plan_hash_value from dba_hist_active_sess_history where sql_id='9zgyc24gzsgpz';
    SNAP_ID INSTANCE_NUMBER SAMPLE_TIME SESSION_ID MODULE SQL_PLAN_HASH_VALUE
    9478 2 07-JAN-11 13.09.11.540 503 SQL*Plus 2290340548
    9478 2 07-JAN-11 13.23.42.616 514 SQL*Plus 3778028574
    9478 2 07-JAN-11 13.25.12.735 514 SQL*Plus 3778028574
    9478 2 07-JAN-11 13.25.22.746 514 SQL*Plus 3778028574
    9478 2 07-JAN-11 13.25.32.759 514 SQL*Plus 3778028574
    9478 2 07-JAN-11 13.25.42.770 514 SQL*Plus 3778028574
    9478 2 07-JAN-11 13.25.52.782 514 SQL*Plus 3778028574
    9478 2 07-JAN-11 13.26.02.795 514 SQL*Plus 3778028574
    9478 2 07-JAN-11 13.26.12.811 514 SQL*Plus 3778028574
    9478 2 07-JAN-11 13.26.22.823 514 SQL*Plus 3778028574
    SQL> select snap_id,sql_id,plan_hash_value from dba_hist_sqlstat where sql_id='9zgyc24gzsgpz' ;
    SNAP_ID SQL_ID PLAN_HASH_VALUE
    9478 9zgyc24gzsgpz 2290340548
    ==================================================================================================
    Thanks
    Devendra

    Hi,
    DBA_HIST_ACTIVE_SESS_HISTORY is a sampling of the sampling already done in ASH, however data used for AWR "snapshots" is completely separate and works just like Statspack did, so it can capture all SQL in the shared pool at the time of the snapshot if you tell it to - it is not limited to just the SQL sampled by ASH. Also AWR does not capture every statement executed in the interval,even if the statement was not aged out from V$SQL.
    DBA_HIST_ACTIVE_SESS_HISTORY displays the history of the contents of the in-memory active session history of recent system activity, DBA_HIST_SQLSTAT displays historical information about SQL statistics
    Regards,
    Ugur

  • Xcelsius doesn't display the date difference in Preview

    Hi,
    Im using the Xcelsius Enterprise 2008 and I use XML connectivity for the source. I would like to do some date difference calculation on my spread sheet. But the result of the date difference does no appear on the Preview for some reason. My XML file has got the date format dd/mm/yyyy hh:mm. I tried to convert the date to number format by multiplying the date by 1. When I do this the result appears correctly as I want on the Preview, but the problem is when there is a first refresh, the date difference shows a error value "#Value". I tried to enable XML Map Properties -> When refreshing or importing data:
    1. Overwrite existing data with new data
    2. Append new data to existing XML lists.
    But still not of any use. Could any one please give me a tip to resolve my problem.
    Many thanks in advance.
    Priya

    Hi Priya
    Can you please tell me what formula are you using to take difference in dates?
    Just to tell you as a point of information, Xcelsius is capable to handle very limited set of formulas. In spreadsheet you will see the formula working perfectly fine but right after hitting preview button you wont be able to see values calculated by certain formulas in Excel. So, its always good to use less and very basic formulas.
    Regards,
    Waqas

  • How to display 16 weeks data in the output of the query

    Hi experts,
    I have to display 16 weeks data from current week(Thursday to wednesday).
               (19/07/07 - 12/07/07) (11/07/07 - 6/07/07) like these 16 weeks
                             sales                       sales
    product1              200                         300
    product2              400                         500
    I have to use text variable on createddate char but I do not know how to implement
    the above scenerio.
    Guru's please help me.
    Thanks & Regards,
    James.

    sure james ..
    chk these links..
    text var..
    http://help.sap.com/saphelp_nw04s/helpdata/en/85/e0c73cccbdd45be10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/c1/759b3c4d4d8d15e10000000a114084/frameset.htm
    chk thisthread too..
    Re: Problem with the text variable
    and for replacement paths..
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
    hope it helps...

  • Previous week Dates

    Hi all
    Please help in writing a query to get the previous week data.
    If the input date is sysdate then it should return values for previous week Monday to Sunday.
    Whatever the input it should get the value for previous week from Monday to Sunday.
    Thanks
    Jo

    IW is the formatter for the "Iso-Week"
    ISO = international standard organization
    See also: http://en.wikipedia.org/wiki/ISO_week
    Main thing is that it will always start with monday. The weeknumber might be different then for ww format. This doesn't matter in your case. But you migh want to do some experiments with to_char(sysdate,'IW'), to_char(sysdate,'WW').
    Trunc(<datevale>,'IW') will cut the date back to the first day of this iso-week.
    select to_char(sysdate-365,'IW') IW , to_char(sysdate-365,'WW') WW from dual;
    IW     WW
    37     36Edited by: Sven W. on Sep 9, 2010 2:29 PM

  • How we calculate the date difference between two list in SharePoint 2010

    Hi friend's....I have two list first is list1. In this list i have two coulmn start_date and End_date. In second list2 i have two column HolidayName and Holiday_date. Now i want two find the number of day in list1 Excluding Weekend and Holiday_date(that
    column from list2). How i will do ..? Please help me dosto..

    Thanks for reply...
    I have done the date difference in list1. But i want to Exclude the Holiday_date form list2.
    I have list1 - Start_date , End_date, Number_of_day(Exclude weekend and Holiday_date between Start_date and End_date )
    list2 - HolidayName, Holiday_date
    Now how i will calculate the Number_of_day in first list.

  • Date difference between Requsition apporval and Po approval in Oracle apps

    My requirement is that l need to get the number of date difference between requisition apporval date(requisition) and po approval date (purchase) excluding holidays how to do it ?
    Thanks in advance..

    One PO could be generated from multiple requisitions. In that case, which requisition would you like to consider?
    One requisition could be converted into multiple POs. In that case, which PO would you like to consider?
    Assuming, there is a one-to-one relationship between your POs and requisitions:
    Link a PO to the corresponding requisition by joining po_distributions_all.req_distribution_id with po_req_distributions_all.requisition_id
    Once you have found the 2 records, get the approved_date from po_headers_all and po_requisition_headers_all
    Then go to bom_calendar_dates for those dates and find the difference between seq_num. That is what you are looking for.
    Sandeep Gandhi

  • Date Difference in same column

    select to_char(CREATEDON,'DD-MM-YYYY HH24:MM:SS'),LABSTATUS,REMARKS from history_paperlesstran
    where hnum='797551D' order by to_char(CREATEDON,'DD-MM-YYYY HH24:MM:SS');
    Rownum TO_CHAR(CREATEDON,' LABSTATUS REMARKS
    1 20-10-2010 08:10:08 1 Barcode number generated and printed
    2 20-10-2010 08:10:08 1 Barcode number generated and printed
    3 20-10-2010 08:10:08 1 Barcode number generated and printed
    4 20-10-2010 08:10:08 1 Barcode number generated and printed
    5 20-10-2010 08:10:08 1 Barcode number generated and printed
    6 20-10-2010 08:10:08 1 Barcode number generated and printed
    7 20-10-2010 09:10:55 3 Recieved in department
    8 20-10-2010 09:10:58 3 Recieved in department
    9 20-10-2010 09:10:58 3 Recieved in department
    10 20-10-2010 09:10:58 3 Recieved in department
    11 20-10-2010 09:10:58 3 Recieved in department
    12 20-10-2010 10:10:38 3 Recieved in department
    13 20-10-2010 11:10:34 1 Barcode number generated and printed
    14 20-10-2010 11:10:34 1 Barcode number generated and printed
    15 20-10-2010 11:10:35 3 Recieved in department
    16 20-10-2010 12:10:08 3 Recieved in department
    17 20-10-2010 14:10:03 1 Barcode number generated and printed
    18 20-10-2010 14:10:44 3 Recieved in department
    18 rows selected.
    Dear Friends, Now i want to get the date difference on labstatus based,i.e rownum1 - rownum7, rownum2 - rownum8, and rownum17 - rownum18
    Thing is Barcode number generated and printed - Recieved in department for each & every samples.
    Advance thanks for your solution...
    Edited by: bharathit on Oct 21, 2010 2:18 AM

    You mean something like this?
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 1 as rn, to_date('20-10-2010 08:10:08', 'DD-MM-YYYY HH24:MI:SS') as dt, 1 as labstatus, 'Barcode number generated and printed' as comments from dual union all
      2             select 2, to_date('20-10-2010 08:10:08','DD-MM-YYYY HH24:MI:SS'), 1, 'Barcode number generated and printed' from dual union all
      3             select 3, to_date('20-10-2010 08:10:08','DD-MM-YYYY HH24:MI:SS'), 1, 'Barcode number generated and printed' from dual union all
      4             select 4, to_date('20-10-2010 08:10:08','DD-MM-YYYY HH24:MI:SS'), 1, 'Barcode number generated and printed' from dual union all
      5             select 5, to_date('20-10-2010 08:10:08','DD-MM-YYYY HH24:MI:SS'), 1, 'Barcode number generated and printed' from dual union all
      6             select 6, to_date('20-10-2010 08:10:08','DD-MM-YYYY HH24:MI:SS'), 1, 'Barcode number generated and printed' from dual union all
      7             select 7, to_date('20-10-2010 09:10:55','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual union all
      8             select 8, to_date('20-10-2010 09:10:58','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual union all
      9             select 9, to_date('20-10-2010 09:10:58','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual union all
    10             select 10, to_date('20-10-2010 09:10:58','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual union all
    11             select 11, to_date('20-10-2010 09:10:58','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual union all
    12             select 12, to_date('20-10-2010 10:10:38','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual union all
    13             select 13, to_date('20-10-2010 11:10:34','DD-MM-YYYY HH24:MI:SS'), 1, 'Barcode number generated and printed' from dual union all
    14             select 14, to_date('20-10-2010 11:10:34','DD-MM-YYYY HH24:MI:SS'), 1, 'Barcode number generated and printed' from dual union all
    15             select 15, to_date('20-10-2010 11:10:35','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual union all
    16             select 16, to_date('20-10-2010 12:10:08','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual union all
    17             select 17, to_date('20-10-2010 14:10:03','DD-MM-YYYY HH24:MI:SS'), 1, 'Barcode number generated and printed' from dual union all
    18             select 18, to_date('20-10-2010 14:10:44','DD-MM-YYYY HH24:MI:SS'), 3, 'Recieved in department' from dual)
    19  --
    20  -- END OF TEST DATA
    21  --
    22     ,x as (select rn, dt, labstatus, comments, row_number() over (partition by labstatus order by rn) as labrn from t)
    23  --
    24  select y.rn as rn1, y.dt as dt1, z.rn as rn2, z.dt as dt2, round((z.dt - y.dt)*24*60) as mins_diff
    25  from x y join x z on (y.labrn = z.labrn)
    26  where y.labstatus = 1
    27* and   z.labstatus = 3
    SQL> /
           RN1 DT1                        RN2 DT2                  MINS_DIFF
             1 20/10/2010 08:10:08          7 20/10/2010 09:10:55         61
             2 20/10/2010 08:10:08          8 20/10/2010 09:10:58         61
             3 20/10/2010 08:10:08          9 20/10/2010 09:10:58         61
             4 20/10/2010 08:10:08         10 20/10/2010 09:10:58         61
             5 20/10/2010 08:10:08         11 20/10/2010 09:10:58         61
             6 20/10/2010 08:10:08         12 20/10/2010 10:10:38        121
            13 20/10/2010 11:10:34         15 20/10/2010 11:10:35          0
            14 20/10/2010 11:10:34         16 20/10/2010 12:10:08         60
            17 20/10/2010 14:10:03         18 20/10/2010 14:10:44          1
    9 rows selected.
    SQL>

Maybe you are looking for

  • All values from associative array into one variable

    Hello! Please: I have, for example: DECLARE   TYPE tb1 IS TABLE OF INTEGER INDEX BY PLS_INTEGER;   v4 tb1;   variable1 myType; --varray of integers BEGIN   v4(1)   := 34;   v4(2)   := 46456;   v4(100) := 54217:   ...  --shortly -lot of values END; /H

  • No mneu or button templates in CS5

    Hi I cannot find any menu templates in Encore. I have CS5, It is a hard copy and not a download. It is a legit copy.  I checke dthe content disc, but, other than a few Fireworks pieces there is not any Encore content ( other than a Read Me file). Wha

  • Scan to preview not working properly

    Scanning to Preview recently stopped working properly.  Here are the issues: When I scan a new document to Preview, it doesn't open in Preview automatically like it once did.  I begin my scan by going to "system preferences" - "print-scan" - "open sc

  • NSAPI in Access Manager & Policy Agent

    Hi all, May I know is it possible to use NSAPI to be a communication channel between policy agent and access manager? I have installed Sun One Web Server together with policy agent, access manager is installed in another machine. I've looked through

  • HT204371 How to set airport exprex as a client mode

    How can use may print with usb port with may 1st generation airport as extended wifi