Query using 0calmonth, to input the month range, data incorrect

hi, experts,
I have a query using 0CALMONTH in the filter, restricted the range value ( eg. 2009.01-2009.08 ),
but the data in Bex Analyzer only 2009.08, doest not collect the cube data from 2009.01 to 2009.08.
If restrict the single value (eg, 2009.02), the data is correct.
I tried to restrict the key figure by 0CALMONTH and then tried using variables with an offset but it does not work as input is a month range.
my bw support package13, basis sp12.
thanks in advance,
xwu.

this issue solved by myself, there is a non-cumulative Key Figure.
thanks,
xwu.

Similar Messages

  • Seeing the month and date in the finder bar?

    In the 'finder bar(?)' I have the day of the week and the time. Is there anyway to have the month and date there too? Instead of having to click on it and seeing it below?
    Thanks, Jordan

    You can do this via the International preference panel.
    Click on the Customize button next to the "Dates" section.
    Select and copy the entire date there.
    Then click on the "Customize" button next to the "Times" section. Make sure the "show" menu is set to medium. Click to the right of the Time so the insertion point is next to the current time, put a separater character such as "|" then past the date into the field.
    Then close the window. That's it.

  • How to query using 3 optional inputs and case insensitive using SQL?

    Hi Folks,
    I am having trouble with the following query:
    select *
    from t1
    where (1=1)
    and lower(fname) like lower ('%mary%')
    and lower(lname) like lower ('%smith%')
    and lower(status) like lower ('%%')
    I need all three statements in the where clause to be completely optional and case insensitve.
    if I just write the following:
    (1=1)
    and lower(fname) like lower ('%mary%')
    and lower(lname) like lower ('%%') <-- Need to ignore this line
    and lower(status) like lower ('%%') <-- need to ignore this line
    nothing is returned. How do I ignore the 2nd and third lines using SQL only. I know about the ask TOM Article using procedures, but I need to do this using SQL only
    thanks in advance
    Edited by: user2184537 on Oct 16, 2009 9:40 AM
    Edited by: user2184537 on Oct 16, 2009 10:10 AM

    Hi,
    Is this query generated dynamically? (That's the only reason I can see for saying "WHERE 1 = 1".)
    If so, test the parameters for NULL, and only add them if a value was given.
    Failing that, you can explicitly test for NULL parameters
    where   (     lower(fname)  = '%' || lower (:p_fname) || '%'
         OR     :p_fname     IS NULL
    and     (     lower(lname)  = '%' || lower (:p_lname) || '%'
         OR     :p_lname     IS NULL
    and     (     lower(status) = '%' || lower (:p_status) || '%'
         OR     :p_status    IS NULL
         )Did you really mean to have all those '%''s? '%' is a wildcard in LIKE operations, but not when using =.
    Perhaps you should be saying:
    where   (     lower(fname)  = lower (:p_fname)
         OR     :p_fname     IS NULL
    and     (     lower(lname)  = lower (:p_lname)
         OR     :p_lname     IS NULL
    and     (     lower(status) = lower (:p_status)
         OR     :p_status    IS NULL
         )You're already handling case-sensitivity, by using LOWER in all the comparisons.
    Unfortunately, you can't just say something like:
    WHERE   LOWER (fname) = LOWER (NVL (:p_fname, fname))because that would discartd rows where fname IS NULL when :p_name is also NULL.
    Edited by: Frank Kulash on Oct 16, 2009 12:54 PM

  • Why did I get an emails stating that i uploaded 50 photos and have used my quota for the month when I have not uploaded ANY photos. I just installed PSE 12.

    I just installed PSE12 and I think it automatically synced photos to REVEL?
    I don't want all my photos on REVEL. How do i control this.
    It also states that I reached my 50 max for the month. I didn't upload any photos!
    i this a push for paid subscription?
    There is no upload button under share?
    so how is this controlled. I looked at my revel and I have some older pic up there from about 8 months ago.
    All my nikon pics are in raw, when will you support this?
    If I have to convert them all into jpgs, this is a tedious task and I may as well use Flikr?
    Thanks,
    Chet

    Hi Chet-
    This is a user to user forum that  adobe employees also monitor and reply on.
    Our records  show that you have indeed hit your limit of 50 uploads. The uploads began around 5/2 from Elements on Windows to Chester's library, which was then deleted on 5/5. Each upload counts, even if you delete and re-upload.
    When you first install elements, it asks if you want to make all your albums mobile or just select ones. If you say all, then all will be uploaded to revel (if you have enough uploads available). If you select certain ones, then only those will sync with revel. It sounds like you seleted either some or all and your elements organizer is trying to sync with revel as requested. The idea behind mobile albums is that they stay in sync whether you upload from elements or revel.
    If you do not want to have all albums as mobile albums in the Elements Organizer,
    you can open up Preferences, switch to the Adobe Revel Preferences section and if the box is checked saying
    "Automatically access all my catalog media in Adobe Revel", uncheck that checkbox and click OK.
    You do not have to have a premium subscription as long as you only want to upload 50 files or less to revel. A subscription will get you unlimited uploads.
    Regarding raw files:
    1) If you select a raw file to upload to revel from elements, it will first create a jpg and then upload it to revel 12.1. You will only see a jpg file in revel when you look from your other devices.
    2 )If you then edit the raw file from elements, it will replace the old jpg in revel with the edited one.
    3)If you edit the jpg file in revel (that was made from the elements raw file and uploaded to revel in 1 above), then it will show there and will also show up in the version set in elements.
    4) If you import a raw file directly into revel (say from adoberevel.com rather than elements) you will not see it show up in elements. There is not a feature to sync a raw files or their associated jpg file with elements.
    I hope this helps. Please let me know if you have further questions.
    Pattie

  • Query Question: Sum of master and monthly table data

    Hi All,
    I have two tables that store financial data about programs. The PROGRAM table has the following columns (for purposes of this discussion):
    ID, INITIAL_BUDGET, COST_CENTER
    The PROGRAM_MONTHLY table has the following (abbreviated list of) columns:
    ID, PROGRAM_ID (FK to PROGRAM.ID), CURRENT_FORECAST, RECORD_DATE
    Every month, a copy of the program_monthly records for last month is made to new records in the PROGRAM_MONTHLY table and we use RECORD_DATE for our filters and comparisons. This way we have historical data, plus current month data that can be updated by our financial systems and program managers.
    I am using Application Express and would like to create a dashboard chart that shows the summary of the INITIAL_BUDGET and the CURRENT_FORECAST for a selected month. Obviously, the INITAL_BUDGET doesn't change, but the CURRENT_FORECAST (and similar columns such as the amount committed to purchase orders, which were omitted to simplify the discussion) change monthly.
    My goal is to create a chart that can display the initial budget, current forecast, amount committed on purchase orders, etc. for all cost centers, or just one at a time as the user requires, that is filtered by the month of the PROJECT_MONTHLY record. If I can come up with the statement for a view or query, then I can manage the rest.
    The required syntax for the chart is "SELECT link, label, value FROM...", where "link" can be NULL, since is it an optional link to another URL. The "label" and "value" portion are the important parts.
    For example, I have another chart that shows the project status (which is a Varchar 2 constrained to values such as, Active, On-Hold, Completed, etc.) with the status as the label and the count of the rows as the value. It starts:
    select null link, pjm.PROJECT_STATUS label, COUNT(pjm.ID) value FROM ... However, I have been unable to come up with a query that generates the desired results for these PROGRAM and PROGRAM_MONTHLY tables. I have played with various types of joins and sub-queries, but my SQL just isn't up to the challenge yet. I realize that I might have to re-work the table structure to accomodate this requirement.
    I would greatly appreciate any guidance in approaching this problem.
    Many thanks for your time and help,
    Petie

    Certainly, Warren, thanks so much for your willingness to look at my problem.
    To keep things simple, I will put the fundamentals of the tables with sample data. Please let me know if you would like more and I would be happy to provide it.
    Table: PROGRAM
    ID   PROGRAM_NUMBER   INITIAL_BUDGET   COST_CENTER
    1   10001            100000           500-001
    2   10002            125000           500-001
    3   10003            150000           500-002
    4   10004            175000           500-002
    5   10005             10000           500-003
    6   10006            200000           500-004Table: PROGRAM_MONTHLY
    ID   PROGRAM_ID   CURRENT_FORECAST  RECORD_DATE
    1    1            95000            02-FEB-06
    2    2           125000            02-FEB-06
    3    3           145000            02-FEB-06
    4    4           180000            02-FEB-06
    5    5             9000            02-FEB-06
    6    6           225000            02-FEB-06
    7    1            97500            02-MAR-06
    8    2           120000            02-MAR-06
    9    3           145000            02-MAR-06
    10    4           185000            02-MAR-06
    11    5            10000            02-MAR-06
    12    6           215000            02-MAR-06
    Report Example 1
    When a user would like to see the current summary data for all cost centers, they would see a chart with the following data:
    INIT_BUDGET  CURRENT_FORECAST
    760000       772500
    Report Example 2
    When a user would like to see the summary data for all cost centers for last month, they would see a chart with the following data:
    INIT_BUDGET  CURRENT_FORECAST
    760000       779000
    Report Example 3
    When a user would like to see the current summary data for cost center 500-001, they would see a chart with this following data:
    INIT_BUDGET  CURRENT_FORECAST
    225000       220000I hope this better illustrates the solution I seek.
    Thank you again for your time and assistance
    Petie

  • How to get the Day of the Month and Date on Home Screen

    The home screen has the signal strength on the upper left, the time in the middle and the battery status on the right. What is missing from my old phone (really, really old phone) is the day - like Sunday, and the date - like the 20th. I have to go to a calendar program to get what should be available at a glance, just like the time.
    Can this be done?
    aehaas

    If you put the Apple calendar app on the first screen, it shows the day and date (no month/year). E.g Sunday 20.

  • Using DTW to update the Item Master Data attachment tab

    Hi Experts,
    Has anyone tried using DTW to update the Attachments Tab on the Item Master Data please?  I tried a few things (similar to importing an attachment to an activity) and couldn't get it to work.
    I couldn't see that anything to do with the Attachments Tab was exposed in DTW when looking at the mapping fields and also when looking through the options available in the Items Object under Customize Templates - but then I might not be seeing it correctly!
    Any ideas or solutions would be great.
    Many thanks,
    Caroline

    Hi Caroline,
    AtcEntry is correct for the document, this relates to the AbsEntry in OATC, which then in turn links to AbsEntry in ATC1.
    There are a few fields that need to be populated in ATC1:
    AbsEntry
    Line - To be used if more than 1 Attachment
    SrcPath - for the file path
    Filename - for the file name
    FileExt - for file type - i.e. .pdf
    You may be able to configure DTW to import these as a manually created DTW but I suspect that OATC and ATC1 are not open to the Di which will stop it. Coincidently I have been looking at Task Centre to update these but have encountered the same problem
    Regards
    Sean Martin

  • SQL Query using Subquery to get the difference in budget versions

    Hi
    I am using the following query to find the difference between revenue budget changes from the previous version to latest version. However the second subquery is not working. Has somebody done a similar query before? Any help?
    select distinct b.name, b.segment1, a.version_number , a.version_name, a.change_reason_code, a.revenue, f.revenue, a.creation_date, d.full_name
    from PA_BUDGET_VERSIONS a, pa_projects_all b, fnd_user c, per_all_people_f d,PA_BUDGET_VERSIONS f
    where a.project_id = b.project_id
    and a.created_by = c.user_id
    and c.employee_id = d.person_id
    and a.budget_type_code = 'AR'
    and a.budget_status_code = 'B'
    and b.org_id in (147,707,140)
    and a.version_number in (select max(e.version_number) from PA_BUDGET_VERSIONS e where e.budget_version_id = a.budget_version_id
    and a.project_id = e.project_id)
    and a.budget_version_id = f.budget_version_id
    and f.version_number in (Select max(g.version_number) from PA_BUDGET_VERSIONS g where f.budget_version_id = g.budget_version_id
    and f.project_id = g.project_id and g.version_number < a.version_number)
    and a.creation_date between '01-JAN-09' and '30-JAN-09'
    order by b.segment1;

    Analytic functions to the rescue! (Now you'll only have one pass through the pa_budget_version table, instead of four!)
    Something like this, perhaps (assuming version_numbers are unique per project_id and budget_version_id):
    WITH a AS (SELECT project_id,
                      version_number,
                      version_name,
                      change_reason_code,
                      creation_date,
                      revenue,
                      row_number() over (partition by project_id, budget_version_id
                                         order by version_number desc) rn,
                      lag(revenue) over (partition by project_id, budget_version_id
                                         order by version_number desc) prev_ver_revenue
               FROM   pa_budget_versions
               WHERE  budget_type_code = 'AR'
               AND    budget_status_code = 'B'
               AND    creation_date BETWEEN to_date('01/01/2009', 'dd/mm/yyyy')
                                    AND     to_date('30/01/2009', 'dd/mm/yyyy'))
    SELECT DISTINCT b.name,
                    b.segment1,
                    a.version_number,
                    a.version_name,
                    a.change_reason_code,
                    a.revenue,
                    a.prev_ver_revenue,
                    a.creation_date,
                    d.full_name
    FROM   a,
           pa_projects_all b,
           fnd_user c,
           per_all_people_f d
    WHERE  a.project_id = b.project_id
    AND    a.created_by = c.user_id
    AND    c.employee_id = d.person_id
    AND    b.org_id IN (147, 707, 140)
    ORDER BY b.segment1;NB. untested.

  • Query using flat file in the FROM Statement

    I have a flat file that contains about 10k rows that I need to join to a table with 2million plus rows. My problem is I cannot load the flat file into a Oracle table or create a new table to contain the 10k rows because I lack of permissions to create table on my user account. I have tried using MS-Access to query the two tables using ODBC, but the query times were horribly slow and would time out. I was curious if there is a way of calling the flat file as a table in my SQL statement from Oracle?
    I know the following doesn't work but I was wondering if there is something out there that would allow me to do something like the following?
    example:
    SELECT a.COL1, a.COL2, ff.COLa, FF.COLb
    FROM apple a, c:\temp\flat_file.csv ff
    WHERE a.COLa=ff.COLa
    db version - 10g
    OS - Windows XP Pro
    Thanks in Advance!

    user9339442 wrote:
    I have a flat file that contains about 10k rows that I need to join to a table with 2million plus rows. My problem is I cannot load the flat file into a Oracle table or create a new table to contain the 10k rows because I lack of permissions to create table on my user account. I have tried using MS-Access to query the two tables using ODBC, but the query times were horribly slow and would time out. I was curious if there is a way of calling the flat file as a table in my SQL statement from Oracle?
    I know the following doesn't work but I was wondering if there is something out there that would allow me to do something like the following?
    example:
    SELECT a.COL1, a.COL2, ff.COLa, FF.COLb
    FROM apple a, c:\temp\flat_file.csv ff
    WHERE a.COLa=ff.COLa
    db version - 10g
    OS - Windows XP Pro
    Thanks in Advance!Is there some reason you cannot get the data loaded into the local database?
    If you absolutely cannot (either through creating and loading objects, or having someone else do it for you) i would likely recommend installing your own database (Oracle XE is free and will easily handle your flat file)
    http://www.oracle.com/technetwork/database/express-edition/downloads/index.html
    I would install that, load your data into a schema you create, and then create a database link to the remote database and use that in your query.
    I would highly push you to work with the administrators of the database though and get them to set you up a schema where you can create objects (with access to the objects in other schemas that you require, if only read permitted).

  • Creation of new key figure at report level depending on the month range

    Dear All,
    I have a requirment where user wants to see the dollar values for the Amount key figure. Data is stored in the INR value in the cube.
    Exchange rate values keep on changing depending upon the quarter. For all four quarters we have four different exchange rate.
    Now system has to identify the applicable exchange rate and show a new column with the USD value just beside the INR values column.
    How best we can achieve this.
    Thanks & Rgds,
    Anup

    Hi
    You can have currency translation at query level for achieving this.
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/600157ec-44e5-2b10-abb0-dc9d06ba6c2f&overridelayout=true
    Translation in Query
    Regards
    Ravi
    Edited by: Ravi Naalla on Aug 17, 2009 11:56 AM

  • Query to find employee of the month in year

    HI,
    Can anyone please help me in writing the following queries on Northwind database.
    1.We are going to motivate employees by creating 'Employee of Month' (employee who has made highest sale). Create Employee of Month List for year 1997. 
    2.We want to know how our products’ sales differ from each month. Get the list product which
    we sold the most and which we sold the least in quantity for each month of 1997.

    And for the second problem try:
    WITH cte
    AS (
    SELECT OD.ProductID
    ,SUM(OD.Quantity) AS SoldQty
    ,datepart(month, O.OrderDate) AS MonthNumber
    ,datename(month, O.OrderDate) AS [Month Name]
    FROM dbo.Orders O
    INNER JOIN dbo.[Order Details] OD ON O.OrderID = OD.OrderID
    WHERE O.OrderDate >= '19970101'
    AND O.OrderDate < '19980101'
    GROUP BY datepart(month, O.OrderDate)
    ,datename(month, O.OrderDate)
    ,OD.ProductID
    ,cte1
    AS (
    SELECT P.ProductName
    ,P.ProductID
    ,cte.SoldQty
    ,cte.MonthNumber
    ,cte.[Month Name]
    ,ROW_NUMBER() OVER (
    PARTITION BY cte.MonthNumber ORDER BY SoldQty
    ) AS RnMin
    ,ROW_NUMBER() OVER (
    PARTITION BY cte.MonthNumber ORDER BY SoldQty DESC
    ) AS RnMax
    FROM cte
    INNER JOIN dbo.Products P ON cte.ProductID = P.ProductID
    SELECT [Month Name]
    ,MIN(CASE
    WHEN RnMin = 1
    THEN ProductName
    END) AS [Least Sold Product]
    ,MIN(CASE
    WHEN RnMin = 1
    THEN SoldQty
    END) AS [Least Sold Qty]
    ,MIN(CASE
    WHEN RnMax = 1
    THEN ProductName
    END) AS [Best Sold Product]
    ,MIN(CASE
    WHEN RnMax = 1
    THEN SoldQty
    END) AS [Best Sold Qty]
    FROM cte1
    GROUP BY [MonthNumber]
    ,[Month Name]
    ORDER BY [MonthNumber]
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • How to use standard Search Input Help (return 2 data code and desc) ?

    Hi,
    Please advise how to use standard Input Help provided by SAP and return 2 data (code and description) ? because the standard Input Help only return the code only ?
    Thank You and Best Regards
    Fernand

    >
    Saket  Abhyankar wrote:
    > Hi,
    >
    > I think you need to go for 'Search Help Exit' or OVS.
    >
    > Regards,
    >
    > Saket.
    That is not true that this is the only way.  The standard Data Dictory based search help can return more than one value as long as there are multiple exporting values defined in the search help, the search help is attached to a Data Dictionary Structure, and this same data dictionary structure is used as the source of the context node. You can read more about this in the online help:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/9f724642314aabe10000000a42189b/frameset.htm
    The Note section under Integration:
    If an input help structure is stored in a field in the ABAP Dictionary, and if you want to use the field mapping of search help parameters stored in the ABAP Dictionary as the field name for the structure for your Web Dynpro input help, then map your context nodes to this structure. This ensures that all components of the structure are available dynamically at runtime as attributes of the node.
    If the context node is not mapped to the structure, the data element's input help can be used if there is one.

  • I am trying to sing up for a new email service and it won't let me aplly the month and date settings

    I can't fill out some apps such as filling out date and month on a login website. I am trying to create a profile on GMX.com but I can't go further than the step where it ask me to choose a month and a date it just wont stay on long enough for me to be able to chose

    upgrade your browser to Firefox 8 and check
    * getfirefox.com

  • How to use Flex to obtain the HTML login data

    Hi,
    Before the user accesses our application, a login screen
    (HTML) has to be passed. I sthere a way for the Flex program to
    obtain the username that the user entered in the HTML login page?
    Thanks!

    When you call your SWF (flexapp.swf), you can give it some
    variables (flexapp.swf?user=username). In your FlexApp, you can
    read these variables (Application.application.parameters.user).
    I hope this will help.

  • Calculate Month Range from Single Month input

    Hi Gurus,
    In a particular query, the mandatory input is 0calmonth. Variable used is 0PCALMON.
    When user inputs 12.2007, then during runtime one of the keyfigure i need to calculate is quarter quantity for the month range 10.2007 to 12.2007 as 12.2007 falls in this quarter.
    Similarly if user inputs 03.2008, quarter quantity will be for these months 01.2008 to 03.2008.
    Plz tell me the steps from variable creation and writing code in cmod.
    Thanks in advance.
    Vaishnavi.

    Hi Jaya,
    I have written this code in cmod and activated.
    when 'ZMQ_RNG'.
    Data : ZYear(4) .
    Data : ZMon(2) type N .
    loop at i_t_var_range into loc_var_range
    where vnam = '0PCALMON'.
    clear l_s_range.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'BT'.
    ZYear = loc_var_range-low(4) .
    ZMon = loc_var_range-low+4(2) .
    If ( ZMon = '04' or ZMon = '05' or ZMon = '06' ) .
    l_s_range-high+4(3) = '06' .
    l_s_range-high(4) = ZYear .
    l_s_range-low+4(3) = '04' .
    l_s_range-low(4) = ZYear .
    Endif .
    If ( ZMon = '07' or ZMon = '08' or ZMon = '09' ) .
    l_s_range-high+4(3) = '09' .
    l_s_range-high(4) = ZYear .
    l_s_range-low+4(3) = '07' .
    l_s_range-low(4) = ZYear .
    Endif .
    If ( ZMon = '10' or ZMon = '11' or ZMon = '12' ) .
    l_s_range-high+4(3) = '012' .
    l_s_range-high(4) = ZYear .
    l_s_range-low+4(3) = '010' .
    l_s_range-low(4) = ZYear .
    Endif .
    If ( ZMon = '01' or ZMon = '02' or ZMon = '03' ) .
    l_s_range-high+4(3) = '03' .
    l_s_range-high(4) = ZYear .
    l_s_range-low+4(3) = '01' .
    l_s_range-low(4) = ZYear .
    Endif .
    append l_s_range to e_t_range.
    exit.
    endloop.
    ZMQ_RNG variable is customer exit, not ready for input, and mandatory field whereas oPcalmon variable is user entry, ready for input, mandatory.
    I have a RKF with 0CALMONTH restricted with ZMQ_RNG on quantity. free characteristics i have ocalmonth with variable 0pcalmon.
    Still my RKF doesnot calculate quantities for the 3 month range..
    Plz help.
    Rgrds,
    Vaishnavi

Maybe you are looking for

  • Finding "End Nested Style Here" option

    Hi, How to find and replace the "End Nested Style Here" marker through InDesign CS3-JS. Thanks, P. Ramkumar

  • HT6424 Can I restore my pc windows 7 with icloud and itunes match?

    Can I restore my pc from I cloud,  I have windows 7, icloud and itunes match.

  • Validate long date in javascript & OnSubmit problem

    hi i need to validate long date format "E, dd MMM yyyy HH:mm:ss" or Thu, 18 Jul 2002 12:52:49 that is key in by the user. but i'm not sure how to do this. i have couples of input data and i'm passing an object to the javascript function validateform

  • ISE Authorization Policy Register Device Problem

    Dear all. I have some problem about register device in ISE. I have to check registered device before access the network. But in register device process. I  don't like to install Native Supplicant or any program in the device .  I need to register dev

  • 2 important Logic 9 questions

    I bought logic pro 9 in 2010 together with my Imac 27 inch. Now I got the seagate HD problem. So I got a new HD from warranty.. Then I also upgraded to 16 gb ram. but now its slower, the cpu/HD in logic. So first Quest, how do I use all of my RAM?. i