Query for monthly and QTR change

Post Author: sugumar
CA Forum: General Feedback
monthly change= previous month amount - current month amt
Quarterly Change= Previous Quarter amt - current quarter amt

Post Author: amr_foci
CA Forum: General Feedback
if i got you right,, you can make two queries one for the current month and one for the previous month, thats will give you two measures , Q1.current_month and Q2.previous_month
substarct them to get the month change
and you can use merge dimensions for any dimensions
good luck

Similar Messages

  • Maybe its just me but verizon had my rebate for a month and some change and  still haven gotten it i got this contract on july 10, and my samsunsung galaxy s4 does nothing but shut off on me constatntly and they wont even help..any suggestions because im

    maybe its just me but verizon had my rebate for a month and some change and  still haven gotten it i got this contract on july 10, and my samsunsung galaxy s4 does nothing but shut off on me constatntly and they wont even help..any suggestions because im looking into a lawsuit now so aggravating..my phone is def on a blank sceen right now

    JCLouis, 
    We saw your story and are very worried about what we read! This isn't like us at all and we are here to help sort it all out. We recommend calling the Rebate Center to check on the status. Their number is 1-800-457-0864.
    We can help you right here with your phone! How often does it turn off? Is it just that the screen goes black or does it completely power down? Also, does it start back up by itself if it does power down?
    SarahO_VZW
    Follow us on Twitter @VZWSupport

  • Need a query for monthly Report

    Hello All,
    I need a query for monthly report,
    comp_code
    emp_id
    dept_id
    work_day
    100
    A100
    MECH
    01/01/2013
    100
    A100
    MECH
    02/01/2013
    100
    A100
    MECH
    03/01/2013
    100
    A100
    MECH
    04/01/2013
    100
    A100
    MECH
    05/02/2013
    100
    A100
    MECH
    08/02/2013
    100
    A100
    MECH
    09/02/2013
    100
    A100
    MECH
    10/02/2013
    100
    A100
    MECH
    12/05/2013
    100
    A100
    MECH
    13/05/2013
    100
    A101
    CIV
    01/04/2013
    100
    A101
    CIV
    02/04/2013
    100
    A101
    CIV
    03/04/2013
    100
    A101
    CIV
    04/04/2013
    100
    A101
    CIV
    06/04/2013
    100
    A101
    CIV
    06/06/2013
    100
    A101
    CIV
    07/06/2013
    100
    A101
    CIV
    08/06/2013
    100
    A101
    CIV
    09/06/2013
    100
    A101
    CIV
    10/06/2013
    100
    A101
    CIV
    11/12/2013
    100
    A101
    CIV
    12/12/2013
    100
    A101
    CIV
    13/12/2013
    100
    A101
    CIV
    14/12/2013
        Dear friends this the sample table of my report.In which table has contain list of  employees with their working days(actual table has contain almost 5laks of records).
    suppose user choose the date between 01/01/2013 and 31/12/2013 then the result should be like this.
    comp_code
    emp_id
    dept_id
    month
    Total_work
    100
    A100
    MECH
    JANUARY
    4
    100
    A100
    MECH
    FEBRUARY
    2
    100
    A100
    MECH
    MARCH
    0
    100
    A100
    MECH
    APRIL
    0
    100
    A100
    MECH
    MAY
    2
    100
    A100
    MECH
    JUNE
    0
    100
    A100
    MECH
    JULY
    0
    100
    A100
    MECH
    AUGUST
    0
    100
    A100
    MECH
    SEPTEMBER
    0
    100
    A100
    MECH
    OCTOBER
    0
    100
    A100
    MECH
    NOVEMBER
    0
    100
    A100
    MECH
    DECEMBER
    0
    100
    A101
    CIV
    JANUARY
    0
    100
    A101
    CIV
    FEBRUARY
    0
    100
    A101
    CIV
    MARCH
    0
    100
    A101
    CIV
    APRIL
    5
    100
    A101
    CIV
    MAY
    0
    100
    A101
    CIV
    JUNE
    5
    100
    A101
    CIV
    JULY
    0
    100
    A101
    CIV
    AUGUST
    0
    100
    A101
    CIV
    SEPTEMBER
    0
    100
    A101
    CIV
    OCTOBER
    0
    100
    A101
    CIV
    NOVEMBER
    0
    100
    A101
    CIV
    DECEMBER
    4

    Hi,
    If you want the output to include months where no work was done (with 0 in the total_work column) then you need to outer-join a "table" that has one row per month, and make it a partitioned outer join:
    WITH  got_end_points   AS
       SELECT  TRUNC (MIN (work_day), 'MONTH')   AS first_month
       ,       TRUNC (MAX (work_day), 'MONTH')   AS last_month
       FROM    table_x
    ,   all_months   AS
       SELECT  ADD_MONTHS (first_month, LEVEL - 1)   AS a_month
       ,       ADD_MONTHS (first_month, LEVEL)       AS next_month
       FROM    got_end_points
       CONNECT BY  LEVEL <= 1 + MONTHS_BETWEEN (last_month, first_month)
    SELECT    t.comp_code
    ,         t.emp_id
    ,         t.dept_id
    ,         m.a_month
    ,         COUNT (t.work_day) AS total_work
    FROM             all_months  m
    LEFT OUTER JOIN  table_x     t  PARTITION BY (t.comp_code, t.emp_id, t.ept_id)
                                    ON   t.work_day  >= a.a_month
                                    AND  t.work_day  <  a.next_month
    GROUP BY  t.comp_code
    ,         t.emp_id
    ,         t.dept_id
    ,         m.a_month
    ORDER BY  t.comp_code
    ,         t.emp_id
    ,         t.dept_id
    ,         m.a_month
    As posted, this include every month that is actually in the table.  You can change the first sub-query if you want to enter first and last months.
    I hope this answers your question.
    If not, post  a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Point out where the query above is giving the wrong results, and explain, using specific examples, how you get the correct results from the given data in those places.  If you changed the query at all, post your code.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How to set filter criteria for month and year using in timestamp input field?

    Hi,
    I am using jdev 11.1.2.3,
    I have one problem with Report generation,,,,,,I have one report table which is in the form of VO(query based) and i want to search this table as month and year basis
    but in this table(query) that field having timestamp based value.. how to search with month name and year only.. Here i am using totally query base VO's for generating
    reports........ Can any one guide me.
    Thank You.

    You can use a inputdate, which allows you to selecte a moth, year and a day. Once the selection is made you convert it to only allow moth and date like
            <af:inputDate label="Label 1" id="id1" autoSubmit="true" value="#{bindings.myMonthYear1.inputValue}">
              <f:convertDateTime pattern="MM/yyyy"/> 
            </af:inputDate>
            <af:outputText value="Selected #{bindings.myMonthYear1.inputValue}" id="ot1" partialTriggers="id1"/>
    then you have a string holding month and year only. This value you split into two variables you or pass it as a whole parameter to the query and split it there.
    Another way is to add two static lovs one for month and one for year and use them to get to the filter values.
    Timo

  • SAP query for Material pricing group changes in material.

    Dear all,
    I'm trying to generate a query for Material Pricing group changes in material. For that I've to retrieve data from follwing three tables MVKE, CDHDR & CDPOS.
    Firstly while generating infoset -
    I tried it by joining tables MVKE & CDHDR, but system is not allowing it, also table CDPOS can't bejoined.
    Then I tried by reading dirctly from table MVKE and then adding additional fields in it. query created using this infoset is giving the output, however it's giving only 1 entry per material entered in input.
    for multiple entries in output for MPG changes in same material I tried creating addtional structure for table CDHDR & CDPOS but again I'm getting only 1 entry per material.
    please suggest how I can get MPG changes done in specified time period for a material.
    Thanks.

    Hi
    Check the report RSSCD100 and run it for object MAT_FULL for table MVKE. Use this report as a template for your own development.
    I hope this helps you
    Regards
    Eduardo
    PD: sorry, the table is DMVKE
    Edited by: E_Hinojosa on Sep 2, 2011 9:37 AM

  • Query for releasing and closing Production order ststus in bulk

    Hi
    Releasing planed to released
    1. i want to release all those production orders entered in system which are in planned status.I want to apply one query for that which should change the status of Prod orders to release in systems automatically by applying this query.Please give me that suitable query and how to use it for proper result.
    closing released to planned
    2. Same like above i want to close all those Production orders whose receipt quantity is equal to planned quantity. i.e i want one query which should change the status of production order from release to closed on condition that receipt quantity is equal to the planned quantity.Please give me that suitable query and how to use it for proper result.
    Thanks

    For point 1 and 2:  It should not be tried and using a Query does not comply with SAP Support policy.  Doing so would lead you to lose SAP Support.

  • I have been using pages for months and now I can not get it to open any templet or previous document to open?

    I have been using pages for months and now I can not get it to open any templet or previous document to open?

    A little more information would be helpful.
    What version of Pages are you using? The latest is 4.1 with the update released on July 20. In Snow Leopard 10.6.8 you need at least Pages 4.0.5. If you're not running the latest versions & Software Update says your software is up to date, make sure the applications are where the installer initially put them. The updaters are very picky. If the location is not where the updater is programmed to look or if the folder doesn't have the name the updater looks for, it will not work. The applications cannot be renamed or moved. They must be in the iWork '09 folder in Applications. That iWork folder must be named iWork '09. If it doesn't have the '09 Software Update won't find them & the updaters won't work.
    If you are running at least Pages 4.0.5 & haven't made any other changes to your Mac since Pages was last working correctly, the likely culprit is corrupt preferences. Go to HD > Users > (your account) > Library > Preferences & delete the com.apple.iwork.pages.plst & restart Pages.

  • I have been playing 7 Little Words game for months and now when I try to open it...I get "plug-in" message that says dwnld the latest Adobe Flash...I downloaded it 8 times - still can't open 7 Little Words...HELP!

    I have been playing 7 Little Words game for months and now when I try to log in it gives a "plug-in" code and tells me to download an updated Adobe Flash Player...I have download it 8 times and still now access to this little game....HELP!

    https://discussions.apple.com/docs/DOC-3591

  • I've been using Mozilla for months and now when I click on icon nothing happens. How do I correct this?

    I can't get Mozilla to open in order to connect to the internet. I've been using it for months and just yesterday it wouldn't open. I tried to uninstall it to reinstall it but that didn't work. First it kept telling me that Moozilla was still open so I shutdown the computer. I was able to download the latest version, however, it still will not open a web page once clicked upon.

    Hi dmra1964,
    You might want to take a look at [[Firefox is already running but is not responding]] and [https://support.mozilla.org/en-US/kb/Firefox-not-start Firefox won't start]. Both of those articles provide a lot of good troubleshooting information.
    Hopefully this helps!

  • Data element for Month and Year

    Hello All,
    Is there any data element which will have only Month and Year.
    I have to introduce this field in a table. It should have convesion exits also.
    Ex: If i give 092009, it sould come like 09.2009
    Thank you.
    Best Regards,
    Sasidhar Reddy Matli.

    Kindly Try this code for Month and year as input and having standard F4 help..
    INCLUDE RMCS0F0M.
    TYPES : BEGIN OF TY_SELECT,
              MONTH TYPE FTI_MONTH_YEAR,
            END OF TY_SELECT.
    DATA : WA_SELECT TYPE TY_SELECT.
    SELECTION-SCREEN : BEGIN OF BLOCK SANDEEP WITH FRAME.
      SELECT-OPTIONS : S_MONTH FOR WA_SELECT-MONTH OBLIGATORY NO INTERVALS NO-EXTENSION.
    SELECTION-SCREEN : END OF BLOCK SANDEEP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MONTH-LOW.
      PERFORM MONAT_F4.
    SANDEEP JAIN

  • I bought an app which was free. To get the full version I then paid for it. I used it for months and now it's saying I have not got the full version and I no longer have access to the full app like I used to.

    I bought an app which was free. To get the full version I then paid for it. I used it for months and now it's saying I have not got the full version and I no longer have access to the full app like I used to.

    Try contacting the app support of the particular app your using.
    Most apps have an app support button on their app page within itunes.
    If they wont reply within a reasonable amount of time and you feel like the particular app developer has cheated you, bring the issue forward to apple care.
    Note that app developer have their own customer support.

  • I haven't used my iPad 1 for months and now am trying to charge it, but it doesn't seem to be charging. Is the battery no longer good?

    I haven't used my iPad 1 for months and now am trying to charge it, but it doesn't seem to be charging. Is the battery no longer good because it hasn't been used for so long? 

    I just ran into this. You have to make sure you're using an iPad charger (the bricklet is larger) in a wall outlet. Leave it alone for several hours, then do the reset while it's still plugged in (hold down the home button along with the sleep/wake button until you see the apple, then let go). It should make a comeback.

  • I still have a warranty but it will be out in a week. i previously have a sound distortion problem with my mac for months and suddenly it just fix itself. what should i do? i'm worried that it will comeback and i dont have a warranty anymore.

    i still have a warranty but it will be out in a week. i previously have a sound distortion problem with my mac for months and suddenly it just fix itself. what should i do? i'm worried that it will comeback and i dont have a warranty anymore.

    JoBautista,
    you still have the option (before your warranty expires) of purchasing an AppleCare Protection Plan, which will provide an additional two years of coverage. Once your warranty expires, you will no longer have the option of purchasing AppleCare.

  • Query for Day and Month Only

    I have a table with a date field that I need to query by day
    and month only. Basically, if I search for "04/15", the query would
    return records whose date includes: 04/15/2006, 04/15/2007,
    04/15/2008, etc. How can I do that on SQL Server?
    Thx!

    ColdFusion and SQL Server have functions called DatePart.
    ColdFusion
    SQL
    Server

  • Query for month start and end date

    Hi,
    I want to pick every month Start date and End Date. could anybody suggest what is the query for this.
    I need output
    Start Date End Date
    01/01/2011 31/01/2011
    01/02/2011 28/02/2011
    01/03/2011 31/03/2011
    01/04/2011 30/04/2011
    01/05/2011 .......

    Hi,
    SQL> select sysdate from dual;
    SYSDATE
    24-FEB-11
    SQL> select last_day(sysdate) from dual;
    LAST_DAY(
    28-FEB-11
    SQL> select last_day(sysdate),last_day(add_months(sysdate,-1))+1 from dual;
    LAST_DAY( LAST_DAY(
    28-FEB-11 01-FEB-11
    SQL> select last_day(sysdate),last_day(add_months(sysdate,-2))+1 from dual;
    LAST_DAY( LAST_DAY(
    28-FEB-11 01-JAN-11Try to refer to Oracle documentation and try to experiments the functions, you will get results on your hand.
    - Pavan Kumar N
    Edited by: Pavan Kumar on Feb 24, 2011 12:51 PM
    Edited by: Pavan Kumar on Feb 24, 2011 12:52 PM

Maybe you are looking for

  • Solaris 10: Remote Display of JDS rel 3 and CDE over Xwindows

    On an Ultra 5 running Solaris 10, I want to start a session of either Java Desktop System Release 3 or CDE and display it on another system running an Xwindows server (running on a Windows box, but I don't think that matters). I also don't want to ad

  • Visual studio performance problem.

    Asalam o alekom : i use visual studio when i save changes in my  asp.net project it need to click CTRL+S three times to be saved and every time it take a little more time.

  • When composing Yahoo e-mail, fonts get bigger and bigger

    Have tried re-setting zoom. Have checked to make sure font sizes are correct in e-mail font menu. This issue only occurs when using Yahoo for Firefox. E-mail composing fonts are fine when using IE. Currently in Firefox version 30. Problem started wit

  • Flashing Finder on one of user accounts

    One of my user accounts has a finder problem. It keeps flashing on- off-on-off along with everything on desktop. Any input on how to resolve would be apprecitive.

  • Impossible to upload my personnal video since IOS7

    Hi to all, Since I've installed IOS7 on my Iphone4s, I don't manage to import my personnal videos (mp4 format) in my Iphones from Itunes. I haven't noticed any error message or whatever. I've restarted my computer many times in vain. Could you please