To retrieve the oldest date in the report

I have a requirement to retrive the oldest date in the report, I am currently working in BW 3.5
The scenario is as below
I have a char infoObject creation date which retrieves the date
I have a char infoobject status which retrieves open or close
For eg in my cube I have 5 records
3 records has the status open and 2 records has the status closed
When I adding the InfoObject "creation date" which has filtered for the open status , I am getting the result correctly with 3 records
Now my requirement is I need to have only one row which should get oldest "creation date" out of the 3 records as below
Rec1 10.10.2006
Rec2 25.11.2007
Rec3 20.08.2009
I need only one count in the creation date which should show me 10.10.2006

Hi Pavan.
Can you model the creation date as a key figure as well as having it as a char? If so, you can create a condition on the key figure, to only give you the "Bottom 1" record.
I think in 3.5 you cannot use a formula variable to read the value of the char in the row, but if you can, you can do it like that with a calculated key figure where you use the formula var and then put a condition on this ckf.
regards
Jacob

Similar Messages

  • Overwriting the oldest data in the file

    Hi,
      I have a file of 10MB want to write in to file continuously overwriting the oldest data, my file size should be maintained 10MB and program may run for quite long time. since i am new to labview used file operations, shiftregisters and little queues but i am not getting any satisfactory results, hopping my problem is simple and someone could help me on this.
    Thanks,
    ranjan.

    Well, we earlier solved it for the 20MB case, so the 10MB case should be trivial to solve.
    What is the structure of the file, are all records of equal lenght?
    Yes, most likely the solution is simple! Maybe you can show us your code that produces unsatisfactory results and tell us what kind of results would be satisfactory.
    LabVIEW Champion . Do more with less code and in less time .

  • Select the oldest date

    Hi,
    here is my question:
    i create a table. for exemple : create table toto( id number (2)
    , name varchar2 (10)
    date_of_suscription date)
    now i insert in this table :
    insert into toto ( id, name, date_of_suscription ) values (1, 'yan', TO_DATE('12/20/2002 00:00:00', 'MM/DD/YYYY HH24:MI:SS'))
    insert into toto ( id, name, date_of_suscription ) values (2, 'Mathieu', TO_DATE('10/10/2004 00:00:00', 'MM/DD/YYYY HH24:MI:SS'))
    insert into toto ( id, name, date_of_suscription ) values (3, 'Steph', TO_DATE('06/04/1999 00:00:00', 'MM/DD/YYYY HH24:MI:SS'))
    insert into toto ( id, name, date_of_suscription ) values (4, 'mejdi', TO_DATE('05/17/2006 00:00:00', 'MM/DD/YYYY HH24:MI:SS'))
    insert into toto ( id, name, date_of_suscription ) values (5, 'jérome', TO_DATE('10/12/2005 00:00:00', 'MM/DD/YYYY HH24:MI:SS'))
    insert into toto ( id, name, date_of_suscription ) values (6, 'Patrick', TO_DATE('01/02/2000 00:00:00', 'MM/DD/YYYY HH24:MI:SS'))
    insert into toto ( id, name, date_of_suscription ) values (7, 'Patrick', TO_DATE('03/12/2001 00:00:00', 'MM/DD/YYYY HH24:MI:SS'))
    insert into toto ( id, name, date_of_suscription ) values (4, 'mejdi', TO_DATE('04/07/2009 00:00:00', 'MM/DD/YYYY HH24:MI:SS'))
    if i want to get the oldest date_of_suscription for patrick (01/02/2000) without using : where date_of_suscription in min select from statement ? is there another method to do it ??

    Use analytic queries:
    with toto as (select 1 id, 'yan' name,  TO_DATE('12/20/2002 00:00:00', 'MM/DD/YYYY HH24:MI:SS') date_of_subscription from dual union all
                  select 2 id, 'Mathieu' name,  TO_DATE('10/10/2002 00:00:00', 'MM/DD/YYYY HH24:MI:SS') date_of_subscription from dual union all
                  select 3 id, 'Steph' name,  TO_DATE('06/04/2002 00:00:00', 'MM/DD/YYYY HH24:MI:SS') date_of_subscription from dual union all
                  select 4 id, 'mejdi' name,  TO_DATE('05/17/2002 00:00:00', 'MM/DD/YYYY HH24:MI:SS') date_of_subscription from dual union all
                  select 5 id, 'jérome' name,  TO_DATE('10/12/2002 00:00:00', 'MM/DD/YYYY HH24:MI:SS') date_of_subscription from dual union all
                  select 6 id, 'Patrick' name,  TO_DATE('01/02/2002 00:00:00', 'MM/DD/YYYY HH24:MI:SS') date_of_subscription from dual union all
                  select 7 id, 'Patrick' name,  TO_DATE('03/12/2002 00:00:00', 'MM/DD/YYYY HH24:MI:SS') date_of_subscription from dual union all
                  select 4 id, 'mejdi' name,  TO_DATE('04/07/2002 00:00:00', 'MM/DD/YYYY HH24:MI:SS') date_of_subscription from dual)
    -- end of mimicking data
    select id, name, date_of_subscription
    from   (select id, name, date_of_subscription, min(date_of_subscription) over (partition by name) max_dos
            from   toto)
    where  name = 'Patrick'
    and    date_of_subscription = max_dos;
            ID NAME    DATE_OF_S
             6 Patrick 02-JAN-02Edited by: Boneist on 18-Jun-2009 09:52
    D'oh, you wanted the oldest date, not the latest date! Changed the max() to min()

  • How to get  the actual data in ALV report

    I am doing some upgradation work   in that i am using Submit  & And return and  also i am using some function modules like LIST FROM MEMORY , LIST TO TXT wnd WRITE LIST , it gives output in normal list format , But i need to print in ALV report .
    With the use of set table for 1st display i got the  ALV report   but not with actual data, (some junk value is showing) , So can any 1 suggest me how to get  the  actual data in ALV report, With the use of  Any Function Module or with Coding,
    with regards,

    Hi Saravana
    I am sure you must be getting the values in tables of table parameters from every FM.
    consolidate the values from tables of all FMs in one table and built ALV for that table only.
    I hope this way you can show the actual data in ALV.
    thanks
    Lalit

  • My Laptop with Synced Firefox crashed and i had to do a fresh install, how can i retrieve all the synced data from the Mozilla Servers

    I had set up Firefox sync on my Windows 7 Laptop which crashed and I had to reinstall windows. I used to be able to share content with my Firefox synced Android too. Is there a way i can retrieve the synced data from the Mozilla servers? I tried to set up sync on my new installation on a Mac 10.6 but when i click on Set-up Sync it asks me:
    # Set-up new sync account (i already have one)
    # I already have a sync account
    When i select the second option it tells me to Add a device. I went in the "Sync Options" and tried the replace all data on this computer with my sync data, but nothing happened. When i try to connect from my Android it also asks me to add a device with the 3 boxes with letters in them.
    So in both the cases it is asking me to "Add a device" but i cannot connect to my sync account in either case to sync data from there

    Please search the forums. This has been covered here extensively.

  • The logic board on my MacBook Pro has failed. How do I retrieve all my data from the hard drive?

    The logic board on my MacBook Pro has failed. How do I retrieve all my data from the hard drive?

    Remove the drive and put it in an external enclosure. Backup the drive completely. Repartition and format the drive. Replace the drive into the computer. Take the computer in for the logicboard replacement.

  • To retrieve the Maximum Date from the record

    Hi All,
    I am using the bleow query to retrieve the max date from the record list:
    select w.wr_no,w.customer_id,w.place_id, w.entry_Date, max(app.appointment_date) as appointment_date
    from work_request w , wr_appointment app
    where w.wr_no=app.wr_no
    and w.customer_id = '020167001'
    and w.place_id = '1151667'
    group by w.wr_no, w.customer_id,w.place_id, w.entry_Date;
    However i am getting the as many as three rows even after using the max function. The max date comes as the last record out the three rows retrieved.
    Thanks,
    Mark

    Mark Andrew wrote:
    And for Sven for the above customer id and place id, i receive the below result:
    WR_NO CUSTOMER_ID PLACE_ID ENTRY_DATE APPOINTMENT_DATE
    1306782233 020167001 1151667 26/07/2010 29/07/2010
    1387090103 020167001 1151667 26/02/2010 16/03/2010
    1393896673 020167001 1151667 23/01/2011 25/01/2011
    After using the rank function i will be receiving:
    WR_NO CUSTOMER_ID PLACE_ID ENTRY_DATE APPOINTMENT_DATE RK
    1393896673 020167001 1151667 23/01/2011 25/01/2011 1Now I get it.
    In fact you want to group only on the customer (and place_id?) and get all the information from the line with the last appointment date.
    Analytic functions such as RANK or ROW_NUMBER are good for this.
    The select can look like this.
    select * from (
       select w.wr_no,w.customer_id,w.place_id, w.entry_Date, app.appointment_date,
             row_number() over (partition by w.customer_id, w.place_id order by  app.appointment_date desc,  w.wr_no desc) rn
       from work_request w , wr_appointment app
      where w.wr_no=app.wr_no
      --and w.customer_id = '020167001'
      --and w.place_id = '1151667'
    where rn = 1
    ;In fact I think you can do the same operation in EXCEL directly.
    FIrst you need to sort the data by customer (asc), place (asc) and appointment date (desc).
    Then add a column in excel that give you the line where you have a new customer id.
    Assuming this new column is column H and the customerid is in column A then the function in Cell H2 would look like this.
    A function like ("=A2=A1"). Copy this formular to all the other H cells.
    Then add a auto filter on it and only select all the rows where the result is FALSE.
    Same logic as in SQL, but done in Excel.

  • How to get the End date of the dynamic period in Financial Reports

    Dear All,
    I have a issue with the Financial Report, I want to show the text under the Heading in the Balance Sheet like 31 DEC 2008 but in this date should be the end date of the dynamic period what user select in the POV.
    Can any one have any idea about this.
    Regards
    rao.

    There are 2 options:
    1. Use the POVAlias text function:
    e.g. <<POVAlias ("Grid1", DimName)>>
    (you could also use POVMember if the items you want is the member and not the alias).
    2. Have a hidden column on the report referencing the POV selection, then reference this in the header.

  • Time delay on seeing the changed data onto the webi reports

    Hello,
    I'm new to BOBJ and was hoping someone can help me with adjusting the time delay the reflects the changed data to the Webi reports.
    I have a user that would update a form on our EP.  Afterward, she would have to wait a while before she can see the changed data on our Webi reports.
    can you please tell me the default time lag and show me where I can change it if required?
    thanks.

    Thanks for the reply.
    Our BO is 3.1 SP4.
    We just implemented PBF (Public Budget Formulation) and our forms are running on NWCE server.  It's being written to our backend BW 7.01 SP8 server.  I was told by our users that after she updates some new information on the form, it takes a while before she can see it on the reports.  My understanding was the universe should see the updated data from our BW immediately after they refresh.  Just as you both mentioned.  But according to the users, its not.  there's a time delay.
    I'm going to test this myself if there's a delay.  In the meantime and suggestion would be helpful.

  • How to take the print out of the entire data from the waveform chart

    i am using cont acq to spreadsheet file.vi to acquire data from a number of channels. this vi also plots the acquired data on the waveform chart. i want to take the print out of the entire data. how can i do it ?
    also how can i take print out of the data between given interval??
    please reply me
    thank you

    There are a number of different ways of achieving your goal. Depending on which version of LabVIEW you have and which development environment, the Report Generation Toolkit is a very powerful tool. Attached is an example that prints the acquired data without the use of additional toolkits.
    Jonathan Hildyard
    Applications Engineer
    National Instruments
    Attachments:
    DAQ_with_Print.llb ‏115 KB

  • Issue with the Posting Date of the Purchase Order.

    Hi All,
    There are fields in BW like SSL1: Time OK, SSL2: Qty OK, SSL3: Time & Qty Ok, SSL4: Days Late (Routines are written to calculate). These fields will indicate whether the delivery against a GR is OK or not with respect to Time, Quantity and the No. of Days..
    But here the issue I am facing is
    If there is only1 delivery/ GR against a single item the calculation in BW are correct - i.e. for a particular PO if there is only one delivery the above fields like SSL1: Time Ok, SSL2: Qty OK will show like the delivery is done within the specified time and everything is OK (in case if it is delivered within the allotted time)
    But if there are multiple deliveries or multiple GR's  posted for one PO item, the calculations are going wrong i.e. even if the delivery is done well within the specified time it is showing the wrong calculations like it is delievered too late. Because in this case the earlier dates are overwritten.
    Can anyone throw me some light on how can I go about solving this issue.
    I am thinking of declaring the Posting Date as the KeyField of the DSO as of now it is a Data field  I also want to know the impact of assigning this as a Keyfield.
    Thanks in advance,
    Prasapbi

    Hi,
    As I understand, you have a DSO based on Purchase Order and your key field is PO and its line item. The problem as you stated will always be there if you have multiple deliveries/GRs created for a single line item because the system will overwrite the entries for same key.
    Problem with adding Posting date as keyfield will be that then your key will be PO-PO Lineitem-Date. When PO will be created, the Posting date will be blank(correct me here if I am wrong), therefore you will have one entry for same PO-line item combination. One without date and other with date, which again would be incorrect. If my assumption about Posting date was wrong, even then your data may not be correct because then you may have many entries with same posting date which again would overwrite each other.
    If there is any direct link between PO line item and number of deliveries that will get created for them, then you can bring that field in DSO as keyfield. But I don't think there is any such field.
    Looking at your report requirement, I would suggest that you make a DSO based on Goods Receipts and then calculate these keyfigures by comparing the dates between GR posting date and PO line item date.
    Else you can change the way your datasource works(if its generic one based on function module). Since your main requirement is to check whether the GR posting date has met your SLA or not, you should fetch all the details only when GR is created and make your key field as PO-PO Line item-GR

  • All the message dates in the message list changed in every mailbox to a recent date, I don't know why.. The dates within the messages' headlines themselves remained correct.  How do I re-establish the correct dates also in the mailboxes' message list?

    All the message dates in the message list changed in every mailbox to a recent date, I don't know why.. The dates within the messages' headlines themselves remained correct.  How do I re-establish the correct dates also in the mailboxes' message list?

    First thing is to forget all the complex configs and just try to schedule the report to run once now, no alerts, no notifications, no nothing.
    Does that work?
    Then you can build up the schedule, to see where the problem is coming from.
    Sincerely,
    Ted Ueda

  • How to show the Current Date in the Screen as default

    Hi all,
    This is may be simple to u all, but i need the solution for this,
    I want to show the Current date in the Screen, i am using the structure. but the calendar control showing when i run the program. But i want to show the current date as default.
    Thanks
    Shankar

    Is this a screen or a report?
    If its a report, try assigning DEFAULT sy-datum (to the parameter/select-option name)
    If its a screen field, try writing this in the PBO:
    IF fieldname IS INITIAL.
    fieldname = sy-datum.
    ENDIF.
    Hope this helps.
    Sudha

  • Variant must get the current date from the system.

    Hi All,
    I really appreciate your help on below please;
    I need to create a variant and schedule a report program once a day.
    But variant must get the current date from the system (sy-datum).
    The program should run for the values in the variant in schedule job run;
    Can I do this using SAP variants (for Report Program) and schedule the job.
    Many thanks
    Iver

    Standard functionality.
    http://help.sap.com/saphelp_nw70/helpdata/en/c0/98039be58611d194cc00a0c94260a5/frameset.htm
    Thomas

  • LIS - To get the data for the missing data for the infostructure S906

    Hi
    We have performed  an unicode conversion In our SAP ECC 6.0 system,  after the conversion, the infostructure S906 (copy of S006) was not updated for the period 22nd June to 25th June 09.
    Then we regenerated the infostructure S906 using the tcode MCS/ on 26th June and after which the update rules are working correctly in S906.
    Now when we run the SOP report for this week, the data is missing for the period 22nd June to 25th June 09.
    We have gone thru the note 64636 - to setup the infostructure from the begining, which needs more downtime.
    Is there a possibility to get the missing data for the above period only, instead of setting up the infostructure from the beginning.
    Thanks & Regards
    Senthil

    You did not tell us what kind of update are you using. Some transactions (e.g. OLI1) allow to run it by posting date; others (e.g. OLI9) for a range of the documents. You can find what document numbers were created in the period of question and then run it for them. Although I would recommend the full rebuild.

Maybe you are looking for

  • Why won't Verizon iPhone send iMessage when on call and Wifi?

    I am new to Verizon and am aware of the simultaneous voice and data limitation, however I was under the impression that wifi would work normally while on a phone call, and it does. However I am finding that when on a phone call, and successfully on w

  • How can I make compound mail rules in iCloud?

    I love the control that rules give you in Apple Mail, or any mail client for that matter.  I use them for everything to sort nearly every piece of email that comes in on a daily basis.  From daily advertisements to receipts they all have their place.

  • Java.lang.Exception: Attempted to use a 5.0 DataSource outside of a 2.3 ser

    Receiving error message: java.lang.Exception: Attempted to use a 5.0 DataSource outside of a 2.3 Servlet The application worked fine with 2.2 servlet version and data source 4.0 But i need to add some filter in web.xml so I changed the servlet versio

  • More than 200 fields

    hi can anyone please help me? i have a table plan in which i have more than 150 fields. i am using HTMLDB to develop this application. i have 4 pages 1. plan (2 items) 2.targets(20 items) 3.rates(ore than 100 items) 4.bonus(more than 50 items) when a

  • How to Enter Chinese Characters in VI Editor through telnet ?

    Is there any special setup involve? I am new to Chinese settings. Any help is very much appreciated. Thanks.