Last date in report

Hi All,
I have a requirement where in i need to show the last transaction date that took place at sales org level.
following is my data in the cube
Sales org------plant---------transaction date
S001...........P100...........01.02.2014
S001...........P100...........03.02.2014
S001...........P200...........02.02.2014
S001...........P200...........04.02.2014
S001...........P200............06.02.2014
S001...........P200............08.02.2014
S001...........P300.............03.02.2014
S001...........P300.............04.02.2014
My report should display as below
S001....P100.......03.02.2013
s001....p200.......08.02.2014
s001....p300.......04.02.2014
Actually transaction date is characteristics. So i used formula variable with exception aggregation as last value on 0PLANT. I get X as result.
Any guidance is appreciated
Thanks
Sri

You can do this by following these ideas:
Convert the transaction date into keyfigure with the help of formula variable with replacement path and make sure to keep transaction date characteristic in rows otherwise it will not work perfectly.
Then you can apply the condition on that date KF with top n =1.
For step by step approach on the same you can refer this blog.
How to show First and Latest Record at BEx Level
Regards,
AL

Similar Messages

  • How to hide the Last date Update in the Excution of a report

    Dear All,
    When we execute a query in EP, the Out Result will contain the following Options
    1) Save As
    2) Open
    3) Export Excel
    4) Information
    5 ) Comments
    6) Filters
    7) Settings
    8) Last data update
    Can anyone plese tell me how to give the authorisation in BI for the above options.so that we can give restrictions for some users.
    hope everything is crear.
    Please give me the hint atleast

    You also have to test the value:
    REPORT ztest MESSAGE-ID 00.
    DATA: BEGIN OF itab OCCURS 0,
            f1 TYPE i,
            f2 TYPE i,
            f3 TYPE i,
            f4 TYPE i,
          END OF itab.
    DATA: sel_field(20),
          value TYPE i.
    DO 5 TIMES.
      itab-f1 = sy-index.
      itab-f2 = sy-index + 10.
      itab-f3 = sy-index + 20.
      itab-f4 = sy-index + 30.
      APPEND itab.
    ENDDO.
    LOOP AT itab.
      WRITE: /001 itab-f1, itab-f2, itab-f3, itab-f4.
      HIDE itab.
      CLEAR itab.
    ENDLOOP.
    AT LINE-SELECTION.
      CLEAR: sel_field,
             value.
      GET CURSOR FIELD sel_field.
      IF sy-subrc = 0.
        CASE sel_field.
          WHEN 'ITAB-F1'.
            value = itab-f1.
          WHEN 'ITAB-F2'.
            value = itab-f2.
          WHEN 'ITAB-F3'.
            value = itab-f3.
          WHEN 'ITAB-F4'.
            value = itab-f4.
        ENDCASE.
        MESSAGE s001 WITH 'Value of' sel_field 'is' value.
      ELSE.
        MESSAGE s001 WITH 'Invalid field selected'.
      ENDIF.
    Rob

  • To display Last Date of the Month in Financial Reporting studio 9

    Hi
    I want to display last date of the month in header in Financial Reporting studio 9 . Is there any function which displays the last date of the month as per user selection .
    for example
    If user select month of Jan it should display Jan 31st, 2009
    If user select month of Feb it should display Feb 28th 2009
    Thanks

    Unless you name your Months like that you cannot do it. A large team from a major consulting firm told me for a year that it was not possible and convinced management that financial statements don't need dates.
    Management decided that we do need dates (because all financials need dates, look at any text book). I figured out a pretty sweet solution that is simple and easy to use and maintain. The users love it. Management loves it.
    I'm not giving it away though.

  • Report req -To get the last date

    Hi all,
    I have  one report requirement,I have to develope the report to display last movement date.
    I am able to get the all movement dates regarding the particular material.But I need to display only last date .Is any option in query designer to get last date only in report .Instead of displaying all dates like MAX of the date in our abap code.
    Thank's
    BK

    Hello Srini / Tarak
    Thank you I will try your options .But I dont have any direct keyfigure like : last movement date.
    I have to do all cal on my date characteristic only.In this regard please suggest...
    Thanks
    Bk

  • Last date of invoice in report

    Dear experts,
    could you help me with inserting right column" last date of document" in this query?
    Thank you in advance,
    jonmar7
    SELECT DISTINCT T0.[CardCode], T0.[CardName], T2.[SlpName], T4.[ItmsGrpNam], 
    (SELECT TOP 1 T1.DocDate AS 'Last DocDate'
    FROM OINV T1
    ORDER BY T1.DocDate DESC )
    , T3.[Discount] FROM [dbo].[OCRD]  T0 INNER JOIN OINV T1 ON T0.CardCode = T1.CardCode INNER JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode INNER JOIN OSPG T3 ON T0.CardCode = T3.CardCode, OITB T4 WHERE T4.[ItmsGrpCod] = T3.[ObjKey] AND T2.[SlpName] =[%0] order by T0.[CardCode], T4.[ItmsGrpNam]

    Hi,
    Try:
    SELECT T0.CardCode, T0.CardName, T2.SlpName, T4.ItmsGrpNam, MAX(T1.DocDate),T3.Discount
    FROM dbo.OCRD T0
    INNER JOIN OINV T1 ON T0.CardCode = T1.CardCode
    INNER JOIN OSLP T2 ON T0.SlpCode = T2.SlpCode
    INNER JOIN OSPG T3 ON T0.CardCode = T3.CardCode
    INNER JOIN OITB T4 ON T4.ItmsGrpCod = T3.ObjKey
    WHERE T2.SlpName =[%0\]
    GROUP BY T0.CardCode, T0.CardName, T2.SlpName, T4.ItmsGrpNam, T3.Discount
    order by T0.CardCode, T4.ItmsGrpNam
    Thanks,
    Gordon

  • Expression - First date and last date of current month, current year

    Hi
    I need to have 2 ssrs expression as I can use  as default parameters in my report where I can -  out from my Time dimension, get the
    first date of the current, current year - and one where I get last date, current month, current year.
    My data source is a SSAS cube and my timedimension is structured like this:
    [Time].[Days].&[2009-01-16T00:00:00]
    Any suggestions how to solve this ?

    Hi ,
    You can use below in Default Values in ssrs ;
    for first Day of current month and year
    ="[Time].[Days].&[" +Format(dateadd("m",0,dateserial(year(Today),month(Today),1)), "yyyy-MM-dd")+"T00:00:00]"
    output will be ;
    [Time].[Days].&[2014-09-01T00:00:00]
    For last day of current month and year
    ="[Time].[Days].&[" +Format(DateSerial(Year(Now()), Month(Now()), "1").AddMonths(1).AddDays(-1), "yyyy-MM-dd")+"T00:00:00]"
    output will be ;
    [Time].[Days].&[2014-09-30T00:00:00]
    Please correct me if I misunderstood your requirement.
    Thanks
    Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem.

  • 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.

  • Variable last date of previous month/last date of current month

    Hello Experts,
    I am facing an issue while designing a query.
    Requirement is like this.
    Report will be run on monthly basis.so on execution of report, it should prompt for month/year.
    now on report there are two columns for which I have to get data on date basis(last date of previous month and Last date of current month).
    Can anyone tell me is there any standard variable for this? what is it?
    or how to achieve this?
    Regards,
    Nirav

    Hi,
    See if this post in this forum can help you.
    Re: Last date of a month
    Regards
    Shalabh Jain

  • How to find out the last date & time on which a program has been run

    Hi Experts,
    Can anybody tell how to find out the last date on which a purticular program has been run.
    Valuable answers will be rewarded.
    Thanks & Regards,
    Satish.

    Hi!
    Try STAD transaction. Unfortunately it contains a huge amount of data, so it is available only for a few days backwards... Maybe some weeks, but you can't make yearly reports from its data... So it's not useful to see, which program is in use or not...
    I planned once to download it weekly, but it was not so important...
    Regards
    Tamá

  • Last date Purchase Order

    Hi All,
    I need to find Out last date purchase Order,
    I have got PO Net price in colums and  in Rows vendor and Document date.we have variable for Doc date to enter the   date intervals ( expl 01.01.2005 to 01.02.2005). this report give the vendor  with  doc dates with in this month.But we  to find out last documnet date of PO to that vendor.
    Kind regards.
    Harry
    Edited by: harry  power on Feb 7, 2008 3:48 PM

    Hi Florian,
    Thanks for your reply.
    I want to get  in the report ,last date order  to the vendor ,
    Could you more clear about condition and  How to assign to date
    Regards.
    harry

  • Need to show Previous months data in report

    Hi All,
    I have a crystal report 2011 which shows monthly Cash data. It has 3 other columns like Previous 3 months cash data, previous 6 months cash data, Previous 12 months cash data in report.
    My report also has two parameters- start date and end date. If I give Start date as 1/1/2012 and end date as 12/31/2013 (two years date range) then correct data comes in all columns and for 2013 year, correct data is coming for Previous 12 months column. But if I give only one month date range like start date as 1/1/2013 and end date as 01/31/2013, then it is not showing correct data for these 3 columns - Previous 3 months cash data, previous 6 months cash data, Previous 12 months cash data. Ideally as per requirement, it should calculate previous months data regardless of parameter values and put data in respective columns.
    Any help/suggestion? Any trick which can help me to show correct data in all columns no matter what date range or months I am taking in parameters.
    Is it mandatory to have previous 12 Months data in report to calculate column-Previous 12 months Cash data?
    Thanks,
    Remi

    Hi Remi,
    You can try like this:
    I have given a some suggestions i.e You just take one parameter only because u can imagine 3 columns previous data display correctly i.e From Date
    Month parameter is also a alternate option.
    For Ex: Column1: From Date - 90 Days/3 Months  - we get the three months previous data correctly etc.
    Finally, create a stored procedure that returns the required columns and does all the calculations on the database side.
    Follow abhilash suggestion as well.
    Useful threads: Crystal Report Parameter Issue
    Pull Last 6 months of data
    Month to date data for Previous month
    How to find current month, previous month Net Sales by means of formula?
    Thanks,
    DJ

  • Show records corresponding to last date of last 3 months

    Experts,
    I have a list of records in my logical table like this. All I need to do is create an analysis that will show the records corresponding to last date of the last 3 months. Assuming current month is July. The report must show only the highlighted records. I'm using OBIEE11g
    customer     product     region     Date
    AAA     123     US     7/28/2012
    AAA     234     US     7/31/2012
    AAA     112     US     7/31/2012
    BBB     232     CN     6/21/2012
    BBB     232     CN     6/30/2012
    CCC     132     IN     6/30/2012
    DDD     322     IN     5/31/2012
    AAA     234     US     4/30/2012
    AAA     222     US     4/29/2012
    BBB     112     CN     3/31/2012
    BBB     111     CN     3/22/2012
    Thanks for your help in advance

    You have to create appropriate filters for your analysis.
    1. Create filter on a Day column.
    Choose "is between".
    The cursor have to be in a edit box under first "Value".
    Press "Add" button and choose "SQL Expression". So the "Value" must to change into "SQL Expression".
    Enter the next formula
    TIMESTAMPADD(SQL_TSI_DAY,1-DAYOFMONTH(TIMESTAMPADD(SQL_TSI_MONTH, -2, CURRENT_DATE)),TIMESTAMPADD(SQL_TSI_MONTH, -2, CURRENT_DATE)) Move cursor into next "Value". Press "Add" button and choose "SQL Expression". Enter the CURRENT_DATE into it and press "Ok".
    2. Add another filter on a Day column for example
    "Calendar"."Day" is equal to / is in <current day>
    Then edit filter. Press an icon at right of this filter and chhose "Edit Formula Column...".
    Enter the next formula
    MONTH(TIMESTAMPADD(SQL_TSI_DAY,1,"Calendar"."Day")) - MONTH("Calendar"."Day")Press "Ok".
    Then edit filter once again. Press an icon at right of this filter and chhose "Edit Filter...".
    In a "Value" edit box write "1" and press "Ok".
    Run analysis and you'll get your requirements.

  • Query on Virtual cube 0FIGL_V10 show old "Last Data Updated:" on Portal

    Hello all,
    We are using the SAP delivered virtual cube for G/L financial statements reporting. We are running these queries on Portal (BI 7.0) we are using the 0ANALYSIS_PATTERN template. Now since we are not actually loading data in this cube the template show "Last Data updated" as long time back, I am guessing when the cube was last activated or transported.
    The template and time stamp is working perfect for queries on all other cubes or Multiproviders.
    The business users are asking can we have the actual time stamp there (when actually the data was last loaded),
    Does anyone have any idea how we can do it without actually rewriting the queries on standard cube.
    Thanks in advance,

    Hi Kiran,
    Always last update data status only will see in our reports on last data updated date. It may be activation of data in cube. please check is there any option of activate data in data flow level.
    Try to create one record in remote data source  and load it again. It may be find the latest status.
    Thanks,
    Chandra

  • What is the formula to bring the current last date from period hierarchy

    Hi,
    Iam working on Hyperion financial Reporting.i have created a grid with 2 dimensions(entity and period).My requirement is that the current last date of the period hierarchy should be displayed automatically in the header when the report is run.what formula should i write in the textbox to bring the current last date.Moreover i dont want to create a prompt for the period dimension.
    Kindly help me on this.
    thanks in advance.

    Thanks for all your replies..
    My actual requirement is that I have a period dimension with year,month and week as members.I dont want to set period as a UserPOV or a prompt.but i want the last date of current week of the period diemnsion to get automatically displayed in the text box which is placed on the header when the report is run.Period dimension is not used anywhere else in the report.I've tried using another grid for the period and i've hidden it.but what formula should I use to to display the last date of the week on the header.I tried using the function Bottomofhierarchy but it wasn't helpful..
    Please help me on this.

  • Formula variable for date in report

    Hi All,
    I have to display the last date value of a particular date in the report.
    For a better understanding,
    I have Customer, Equipment, Service date, Amount
    In the report, I have to display
    Customer, Equipment, Last Service date, Last Service Amount.
    I have created a formula variable (Formula variable for Service date) for Service date with Replacement path.
    Replace Variable with Infoobject, Replace with Key, Dimension dates.
    And in Key figures, I have created a formula (Last Service date) with Last value in the Aggregation using the "Formula variable for Service date".
    The Last Service date is displayed as 'X' in the report since the Service date is not in the row. I cannot have the service date in the row either (not even by hiding the display).
    Kindly tell me how to rectify this problem.
    Thanks and Regards
    Adhira Anand.

    The X is appearing because, with the drill downs you have added, you have more than 1 date value to choose from when you attempt to aggregate.
    Have you tried using APD instead of exception aggregation?
    Have you built the exception aggregation calculated key figure globally or just locally (i.e. as a structure element)? It must be built globally to work properly.

Maybe you are looking for

  • Just bought iTunes song and can't make a ring tone..??..

    I just bought a .99 cent iTunes song and when I right click on the song in iTunes it tells me that "This song cannot be made into a ringtone" "This ensemble can no longer be made into a ringtone" Anyone know or had this problem before? I only bought

  • Nokia 2330 memory

    Hi. I bought a nokia 2330 classic and I was told it had a 32 Mb internal memory (on each technical specification pages about this phone this is also noted). Now, when I search inside the phone, I can't find that much memory, just about 11 Mb... I upl

  • How can i get itunes store to work?

    When I try to login to the iTunes store, nothing happens. How can I get iTunes store to work?

  • How to insert media file in keynote

    Is ther any way to insert or import audio and video (media files) in a Keynote presentation ? Then it is possible to export it for PC format like PowerPoint or the opposite, build the presentation in PowerPoint then import in Keynote ? Thanks

  • LOV Select List How to create query with begin & End in LOV

    Dear All, i am using Apex 3.2 ver i want to use below code in LOV select list BEGIN IF  UPPER(:P23_SERVICE_TYPE) like 'GUIDE%' THEN SELECT NAME D, CODE R FROM SPECIAL_SERV_MAS WHERE NVL(ACTIVE_FLG,'N') = 'Y' AND NVL(GUIDE_FLAG,'N') = 'Y' and CITY_COD