Which Time variable should use compare this month with last month

We want to calculate the increaed number of employees according to one action reason e.g. Entry to company compare with last month. In this case we have to use time variable in BEx query designer. Now can see 0calmonth has serval variable available.
1) Should we use [0CMLMON] for last month and use offset for this month like [0CMLMON]-1 or [0CMLMON]+1 or use variable [0RSTTCM1], which variable should we use for this month and last month? Do we need to create variables by manually?
2) Then using calculated KF to calculate the increaed number of employees, is this logic correct? If it is wrong, please info.
Edited by: hi ni on Apr 22, 2008 7:58 AM

Hi,
For the comparison of last 2 months data, you can use two Restricted Key figures with reference to 0CALMONTH and it is better to use only customer exit variable for both RKF's.For the Last month use offset value as -1.
Rgs,
I.R.K

Similar Messages

  • How to compare this week with last years week sales ?

    Hi all,
    I have a table called Sales with two columns  Date and UnitsSold
    Date is of type smalldatetime   and will have the date of the sales
    while UnitsSold is type int and will have the number of units sold
    I need to write a stored procedure that will compare between a week's sales from last year with a week sales from this year and show the percent in sales difference
    Thanks

    DECLARE @thisYearThisWeekStart DATETIME = DATEADD(DAY,1-DATEPART(weekday,'2014-01-01'),DATEADD(WEEK,DATEPART(WEEK,GETDATE())-1,'2014-01-01'))
    DECLARE @thisYearThisWeekEnd DATETIME = DATEADD(DAY,0-DATEPART(weekday,'2014-01-01'),DATEADD(WEEK,DATEPART(WEEK,GETDATE()),'2014-01-01'))
    DECLARE @lastYearThisWeekStart DATETIME = DATEADD(DAY,1-DATEPART(weekday,'2013-01-01'),DATEADD(WEEK,DATEPART(WEEK,GETDATE())-1,'2013-01-01'))
    DECLARE @lastYearThisWeekEnd DATETIME = DATEADD(DAY,0-DATEPART(weekday,'2013-01-01'),DATEADD(WEEK,DATEPART(WEEK,GETDATE()),'2013-01-01'))
    DECLARE @thisYear INT, @lastYear Int
    DECLARE @salesTable TABLE (date DATE, unitsSold INT)
    INSERT INTO @salesTable (date, unitsSold)
    VALUES
    ('2013-07-07',10),('2013-07-08',9),('2013-07-09',8),('2013-07-10',7),('2013-07-11',6),('2013-07-12',5),('2014-07-13',4),
    ('2014-07-06',12),('2014-07-07',13),('2014-07-08',14),('2014-07-09',15),('2014-07-10',16),('2014-07-11',17),('2014-07-12',18)
    SET @thisYear = (SELECT SUM(unitsSold) AS tUnitsSold FROM @salesTable WHERE date BETWEEN @thisYearThisWeekStart AND @thisYearThisWeekEnd)
    SET @lastYear = (SELECT SUM(unitsSold) AS tUnitsSold FROM @salesTable WHERE date BETWEEN @lastYearThisWeekStart AND @lastYearThisWeekEnd)
    SELECT @thisYear AS thisYear, @lastYear AS lastYear, CONVERT(float,ROUND(((@thisYear+.0)/@lastYear)*100,2))
    You should really use a calendar table.

  • Which Listener I should use if I drag and Drop an image/icon into a JPanel?

    Dar Friends:
    Happy new year.
    I try to drag and Drop an image/icon into a JPanel, and hope I can immediately detect it after DND,
    Which Listener I should use in this JPanel if I drag and Drop an image/icon into a JPanel??
    Thanks

    Thank camickr .
    I can dnd an image into a JPanel called JPanelOld already, I hope to use another JPanel or JTree to listen to any Dropped Image in JPanelOld later on so I can take some action in another JPanel or JTree.
    so what kind of Listener I should use for my purpose??
    where to add this Listeners??
    Happy New Year.

  • I have an iPhone in my name and my wife has an iPad in her name. We have just ordered an iMac and wondered which account we should use to get the best out of all the devices

    I have an iPhone in my name and my wife has an iPad in her name. We have just ordered an iMac and wondered which account we should use to get the best out of all the devices? Can we use both accounts in iCloud?

    Yes you can.  However, it is better to use one person's account most of the time for purchases in the Mac App Store and iTunes since you can share purchases, such as songs, among various devices using the SAME account.  You Cannot share purchases among different accounts, though.   So make one of your accounts the main "purchasing" account so you can share purchases.
    Hope this helps

  • Which tool i should use to develope a portal

    Hi all,
      we are planning to develop a portal which we will expose to internet.
    Now my question is which tool i should use to develope this
       1.BSP
       2. jspdynpage
       3.Webdynpro java
       4.Webdynpro abap
    Which application will perform better on internet.
    Lots of rfc calls and webservice calls are there.
    plz give me suggestions .
    Thanks
    developer

    Hi,
    BSP - Abap workbench
    JSP Dynpages - NWDS (Netweaver Dev Studio)
    Webdynpro Java - NWDS
    Webdynpro ABAP - ABAP Workbench
    above all applications will perform at same level  depend on the content.
    best regards
    Hari

  • In which situations we should use Character Mode Reports?

    Question: In which situations we should use Character Mode Reports?
    Explaination: I am faced with a certain situation. I feel that I should develop reports in Character Mode. But I am not sure about this.
    I invite all readers to contribute on the subject matter. Once I receive responses, I will explain my specific situation as writing it now may narrow the list of such situations.
    Also I would like to know what problems we face when developing reports in Character Mode. I was developing my first Character Mode report and I faced layering problems. So I would like to know more such precautions.
    TIA
    Tariq

    Hi Muhammad,
    There's any number of cases for using character mode Reports. However, they all typically come down to what your doing with the output of the report.
    Basically, you need character mode reports whenever the Report output needs to be read by some sort of Ascii file reader. This could be notepad, VI, MSVC, dot matrix or fixed character set printers, ...
    A less common case is where you just want to get at the data within the report. You're just using the ascii output as a data dump to pass through to another program/utility. (This is really just a specialised case of the previous one).
    There are some cases where character mode output may be one of several choices. Eg: the body of an email message which could be HTML or plain text.
    Robin.

  • There is no option to reject an incoming call in locked screen, there must be an icon on the screen for one who don't want to use lock button several times, i did'nt face this problem in last ios 6.1.3.

    There is no option to reject an incoming call in locked screen, there must be an icon on the screen for one who don't want to use lock button several times, i did'nt face this problem in last ios 6.1.3.

    A good read. Have you done anything at all to resolve your problem. Reset? Restore?
    By the way - "your products"... nobody here produced the iPhone, we are all just users. Apple is not here.

  • Which protocol we should use for file transfer in ios ?

    which protocol we should use for file transfer in ios ?

    My friend that's definitively a Lotus Domino question, you'll probably ask in the Domino's forums if it generates wsdl, or simple http services you're ready to consume those services in Flex.

  • Can someone tell which player I should use to run flv,avi file in my iPad 3 after download from any site ????

    Can someone tell me which player I should use to run flv,avi file in my iPad 3 after downloading video from any site ????

    Can someone tell me which player I should use to run flv,avi file in my iPad 3 after downloading video from any site ????

  • Which refurbished iPhone should I buy to work with my iPad 3 wifi.  Will I need a personal hotspot?

    Which refurbished iPhone should I buy to work with my refurbished iPad 3 wifi?  Will I need a personal hotspot?

    I'm having the same problem.  The iPad has never roamed particularly well between access points, but under IOS6 it doesn't seem to roam at all, it simply sticks with the access point it first connected with.
    I don't have a solution for you, unfortunately.

  • My iPod touch 3rd gen. 32gb doesn't allow me to access my "Saved Photos" because the "Albums" banner covers it. This occurred with last week's update.

    My iPod 3rd gen 32gb won't allow me to see my "Saved Photos" because the "Albums" banner covers it. This occurred with last week's update.

    I've read that the only cure is opening the Multitaskbar by double clicking the home button, search for the photo app, tap on it until it starts to shake and hit the little "Minus-icon" in the left corner. Then close the bar again and try again to open the photo app.

  • Which platform I should use ?

    which java platform I should use to creat message display and settings in mobile phone ? and how can I add language code in java to show different laguage(other than English) on mobile screen ?

    Or is it the tabbed appearance of the portfolio cover which interests you? I think this might be made with Flash Builder. Very bad choice, to use Flash, in my opinion. Looks slick, certainly, but locking out all customers with iPads and Android is just lunacy. But see Adobe Digital Enterprise Platform * Demonstrating the Flash Builder-based interactive statement

  • RFC and Webservice which one i should use and why?

    Hi,
      I have to write a extractor program in BI which would be fetching a huge data from CRM.
      I have two options to achieve this targer.
               1-> Create a RFC which will give me all the data
               2-> Create a Webservice in CRM and use it in BI
    Please advice me , which way i should go and advantage of that way.
    Regards
    PG

    Hi,
    If amount of data is huge then it is recomnded to use RFC because of its speed and reliability. Webservice not yet proven good for extracting and handling very large chunk of data.
    Regards,
    Gourav Khare

  • Which version I should use

    Hi,
    I got this
    Java 1.5.0_03 or later is required for installing Oracle Solaris Studio. Make sure that Java is properly installed and run installer again.
    You can specify valid Java location using --javahome installer argument.
    Can anyone tell me which JDK version I should use there?

    Moderator Action:
    This post has been moved from the Oracle Linux forum.
    You don't have a Linux question.
    You actually don't have a JRE/JDK question.
    You have a Solaris Studio question.
    You needed to spend an extra moment choosing where to post it.
    We moved it for you.

  • I want to create report on Sybase which provider I should use.

    I want to create report on Sybase which is good provider that I should use. I don't want to use the DSN.

    CR no longer has a native Sybase driver. Your only option is to u se ODBC or possibly a JDBC driver if they have one or their client supports one. Look on Sybases site for options.

Maybe you are looking for