Dates Overlaps and Gap

Hi Everyone,
Can you please help me solve this issue? I have dates overlapping and with gaps. I shouldn't have any overlaps, so I need to split them as below.
Here is my test data.
  create table test_dates (
    prov_id varchar2(20 byte),
    start_date date,
    end_date date,
attribute_value varchar2(10 byte)
insert into test_dates(start_date, end_date, prov_id, attribute_value) values (date '2010-01-01', date '2010-01-31', '1', 'A');
insert into test_dates(start_date, end_date, prov_id, attribute_value) values (date '2010-02-01', date '2010-02-28', '1', 'B');
insert into test_dates(start_date, end_date, prov_id, attribute_value) values (date '2010-04-01', date '2010-04-30', '1', 'C');
insert into test_dates(start_date, end_date, prov_id, attribute_value) values (date '2010-04-15', date '2010-05-31', '1', 'D');
insert into test_dates(start_date, end_date, prov_id, attribute_value) values (date '2010-07-01', date '2010-08-31', '1', 'E');
insert into test_dates(start_date, end_date, prov_id, attribute_value) values (date '2010-07-01', date '2010-07-31', '1', 'F');
insert into test_dates(start_date, end_date, prov_id, attribute_value) values (date '2010-08-15', date '2010-08-01', '1', 'G');
insert into test_dates(start_date, end_date, prov_id, attribute_value) values (date '2010-09-01', date '2010-12-31', '1', 'H');
commit;
Expected Results:
ID
START
END
1
1/1/2010
1/31/2010
1
2/1/2010
2/28/2010
1
4/1/2010
4/14/2010
1
4/15/2010
4/30/2010
1
5/1/2010
5/31/2010
1
7/1/2010
7/31/2010
1
8/1/2010
8/31/2010
1
9/1/2010
12/31/2010

Hi,
Depending on your requirements:
WITH change_points AS
    SELECT  prov_id
    ,       change_date
    ,       change_type
    ,       SUM  (change_type) OVER ( PARTITION BY  prov_id
                                      ORDER BY      change_date
                                    )  AS active_cnt
    ,       LEAD (change_date) OVER ( PARTITION BY  prov_id
                                      ORDER BY      change_date
                                    )  AS next_change_date
    ,       LEAD (change_type) OVER ( PARTITION BY  prov_id
                                      ORDER BY      change_date
                                    )  AS next_change_type
    FROM    test_dates
    UNPIVOT (    change_date
            FOR  change_type  IN ( start_date  AS  1
                                 , end_date    AS -1
SELECT    prov_id
,         change_date      + CASE
                                 WHEN  change_type = 1
                                 THEN  0
                                 ELSE  1
                             END   AS start_date
,         next_change_date - CASE
                                 WHEN  next_change_type = -1
                                 THEN  0
                                 ELSE  1
                             END   AS end_date
FROM      change_points
WHERE     active_cnt   > 0
AND       change_date  < next_change_date
ORDER BY  prov_id
,         start_date
Thanks for posting the sample data; that's helpful.
It also very helpful to explain how you get the results you want from the given data.  For example, what role does prov_id play in this problem?  (It's  hard to guess when every row in the sample data has the same value for prov_id.)  Also, sometimes, the start_dates or end_dates in the output are not exactly the dates in the table; sometimes they are 1 day earlier or later.  How do you decide which?
In the sample data, start_date can be later than end _date, for example:
insert into test_dates(start_date, end_date, prov_id, attribute_value) values (date '2010-08-15', date '2010-08-01', '1', 'G');
Was that a mistake?

Similar Messages

  • How to check date overlapping?

    Hi,
    What is the easiest/simplest way to check date overlapping?
    I have date_start1, date_end1, date_start2 and date_end2, and I'd like to know if they're overlapping or not.
    I searched for FM OVERLAP, but so far couldn't find one, which would help.
    I've found FM TB_TIME_INTERVAL_OVERLAP, which looked promising, however I couldn't make it work, maybe I used a wrong calculation method /I tried several/.
    Any idea?
    Thanks in advance,
    Peter

    Hi All,
    You can use the FM to validate the date overlap when from date and to date in which the date ranges have been given.
    <i>       CALL FUNCTION <b>'GM_VALIDATE_DATE_RANGE'</b>
              EXPORTING
                i_from_date              = sy-datum
                i_to_date                = c_enddt              "'99991231'
              TABLES
                t_daterange              = p_dates
              EXCEPTIONS
                ranges_overlap           = 1
                range_has_holes          = 2
                continuous_but_excessive = 3
         OTHERS                   = 4
                erro_message             = 99.
            CASE sy-subrc.
              WHEN '0'.
              WHEN '1'.
                MESSAGE e004(z_common)  DISPLAY LIKE 'E'
                        WITH 'Date range should not overlap with Existing One'(003).
              WHEN '2'.
                MESSAGE e004(z_common)  DISPLAY LIKE 'E'
                        WITH 'Date range should not overlap with Existing One'(003).
            ENDCASE.</i>
    <b>OR</b>
    Only for date ranges validation no matter whatever the date ranges are given.
    you can use the Z function module from the above one mentioned.
    <b><i>FUNCTION zgm_validate_date_range.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_FROM_DATE) TYPE  DATS OPTIONAL
    *"     REFERENCE(I_TO_DATE) TYPE  DATS OPTIONAL
    *"  TABLES
    *"      T_DATERANGE STRUCTURE  GMDATERANGE
    *"  EXCEPTIONS
    *"      RANGES_OVERLAP
    *"      RANGE_HAS_HOLES
    *"      CONTINUOUS_BUT_EXCESSIVE
      DATA: i TYPE i,
            l_next_date  LIKE sy-datum,
            l_first_date LIKE sy-datum,
            l_last_date  LIKE sy-datum,
            no_days      TYPE tfmatage,
            cnt_next     TYPE i,
            w_daterange  TYPE gmdaterange.
      DESCRIBE TABLE t_daterange LINES i.
      IF i > 1.
        SORT t_daterange BY from_date.
    First determine if the slices are continuous and have
    no gaps.
        LOOP AT t_daterange.
          cnt_next = sy-tabix + 1.
          IF sy-tabix > 1. " not first record
            IF t_daterange-from_date <= l_next_date.
              RAISE ranges_overlap.
            ENDIF.
            IF t_daterange-to_date <= l_next_date.
              RAISE range_has_holes.
            ENDIF.
          ELSE.
    save first date
            MOVE t_daterange-from_date TO l_first_date.
          ENDIF.
    update end of range
            MOVE t_daterange-to_date TO : l_last_date,
                                                            l_next_date.
        ENDLOOP.
      ENDIF.
    ENDFUNCTION.</i></b>
    Thanks
    Ramesh Babu N

  • Wireless Design - Best Practices for Data, Voice, and LBS

    Hi,
    I am currently in the process of designing a WLAN for a new hospital and I am getting some push back from my sales team.  The requirements of the WLAN are data, voice, and location based services (RFID for medical equipment) ... needs to be 2.4 GHz for Guest and some apps/clients but primarily 5 GHz for most of the clients ... lastly needs to be N compatible for future use.
    So, I did a predictive design with 1252's on the perimeter with 2.4 and 5 GHz patch antennas and 1142's in the middle to fill gaps ... I also scoped out 2 5508 for redundancy .... total design with -65 at my edges was 169.  However, this is getting push back because of several cost issues ....
    1. The bundle that Cisco offers for 5 100 AP license 5508 WLC is cheaper than buying 2 250 AP licenses WLC's ... which doesn't make any sense to me because I think 5 devices is over kill
    2. The sales engineer is concerned about the power issues with the 1252's ... customer would rather not use power injectors ... and although they would have 6500's at there core ... they would only have basic switches in their IDF's so I wasn't sure which POE Switches would be able to handle 1252 but cost was an issue there as well
    So, for my understanding when you are doing a WLAN design for LBS it's always best to have APs or antennas on the perimeter for better triangulation ... it makes more sense to me to do that with patch instead of Omni's ... however my sales engineer wants to use all 1142's ... so my question is what are the pro and cons behind using all Omni's or using Patch and Omni's?
    Furthermore, if anyone has any documentation supporting why I would not use all Omni's that would be great because all the articles I have read on LBS just state that placement of APs is critical but doesn't give no specifics on whether it's a good practice to place them on the perimeter using a specific type of antenna or what.
    Thanks in advance for you help and any ideas about this design!!!

    1.  The 5508 is expensive because it's alot faster than the 4400 plus there are some features exclusive to the 5508 such as OfficeExtend.  As the old network design adage goes:  Your design can be done correctly, cheap or fast.  Choose two.
    2.  The 1250 requires 19.5w of power to enable FULL MCS rates to both radios.  Only the 3560E, 3750E or the Sup720 is capable of supporting that.  Upgrading the IOS of the 1250 to 12.4(10b)JDA3 will allow the AP to operate both radios at 15.4w BUT at a lower MCS rates.  Correct placement of the AP and the correct use of the antennaes will also help in the signal distribution.
    3.  Patch antennaes are mostly directional.  The 1140 is onmi-directional BUT the signal strength is not as powrful as the 1250 at full power.  The AIR-ANT2451NV is an omni-directional patch designed for the 1250.
    Cisco Aironet Antennas and Accessories Reference Guide
    http://www.cisco.com/en/US/prod/collateral/wireless/ps7183/ps469/product_data_sheet09186a008008883b.html
    Cisco Aironet 2.4 GHz and 5 GHz Antennas and Accessories
    http://www.cisco.com/en/US/prod/collateral/wireless/ps7183/ps469/product_data_sheet09186a008022b11b.html
    Some of the new patch antennaes for the 1250
    Cisco Aironet Dual Band MIMO Low Profile Ceiling Mount Antenna (AIR-ANT2451NV-R)
    http://www.cisco.com/en/US/prod/collateral/wireless/ps7183/ps469/data_sheet_ant2451nv.pdf
    Cisco Aironet Very Short 5-GHz Omnidirectional Antenna (AIR-ANT5135SDW-R)
    http://www.cisco.com/en/US/prod/collateral/wireless/ps7183/ps469/data_sheet_ant5135sdw.pdf
    Cisco Aironet Very Short 2.4-GHz Omnidirectional Antenna (AIR-ANT2422SDW-R)
    http://www.cisco.com/en/US/prod/collateral/wireless/ps7183/ps469/data_sheet_ant2422sdw.pdf
    Cisco Aironet 5-dBi Diversity Omnidirectional Antenna (AIR-ANT2452V-R)
    http://www.cisco.com/en/US/prod/collateral/wireless/ps7183/ps469/data_sheet_ant2452v.pdf
    Cisco Aironet 5-GHz MIMO Wall-Mounted Omnidirectional Antenna (AIR-ANT5140NV-R)
    http://www.cisco.com/en/US/prod/collateral/wireless/ps7183/ps469/data_sheet_ant5140nv.pdf
    Cisco Aironet 5-GHz MIMO 6-dBi Patch Antenna (AIR-ANT5160NP-R)
    http://www.cisco.com/en/US/prod/collateral/wireless/ps7183/ps469/data_sheet_ant5160np.pdf
    Cisco Aironet 2.4-GHz MIMO Wall-Mounted Omnidirectional Antenna (AIR-ANT2450NV-R)
    http://www.cisco.com/en/US/prod/collateral/wireless/ps7183/ps469/data_sheet_ant2450nv.pdf
    Cisco Aironet 2.4-GHz MIMO 6-dBi Patch Antenna (AIR-ANT2460NP-R)
    http://www.cisco.com/en/US/prod/collateral/wireless/ps7183/ps469/data_sheet_ant2460np.pdf

  • How to give space between date mm and year in terms of bytes

    Hi Guru,
    In sapscript I want to give space in datae formate betweeen day and month , month and  year in terms of bytes.
    Example :
    if datae is 2009/08/18 then I want to move like   2009     08       18. Here the gap between the date field and month , year fields is in terms of bytes. Like 4 bytes gap between year and date, 5bbytes gap between day and month  in ECC6.0.
    Please help in this.
    Thanks,
    PJ.

    hii prakash,
                                  Use the Function Module.
    RP_FORMATING_DATE
    If you use this FM then automatically it will convert it to YYY MM DD format and then you can use as per your requirement 
    or you can do like this
    Use following code to change the date format from DD.MM.YYYY to YYYY MM DD
    DATA : DATE(10) TYPE C,
    DATE1(10) TYPE C.
    CONCATENATE DATE6(4) DATE3(2) DATE+0(2)
    INTO DATE1
    SEPARATED BY ' '.
    regards,
    Shweta
    Edited by: Shweta Joon on Aug 18, 2009 10:38 AM

  • Hi All, difference btwen data selection and person selection period in ldb

    Hi All, difference btwen data selection and person selection period in ldb -pnp
    If possible provide with an example .Its Urgent pls.

    Hi,
    Difference:--
    Data Selection Period
    The data selection period enables you to specify the period in which employee data records are read. Only records which overlap with the specified period by at least one day are selected. To define an interval, enter the start date in the left column and the end date in the right column
    Person Selection Period
    When you enter a person selection period, the system selects only those employees who are members of the enterprise on at least one day in the specified period. These are persons with a valid Organizational Assignment (0001) record. Entries in the standard selection options fields limit the personnel numbers that are selected. You can specify an interval by entering the start and end dates in the left and right columns respectively.
    Selection criteria in PNP are just used to determine the pernrs which meet them. For these pernrs then all wanted data is selected. This data then is not checked against this criterias.
    An Example:
    Pernr 4711 has benn assigned to costcenter 10 from 01.01.2004 until 31.12.2004. On 01.01.2005 costcenter changes to 20.
    If you now select all employees with costcenter 10 and list their costcenters, you will get both costcenters 10 and 20.
    Most reports which use PNP have to sets of date-ranges:
    - Person selection period that controls selection of pernr.
    - Other period that controls selection of data.
    If you set person selection period in above example to 01.01.2004 and other period to 01.01.2005 and select costcenter 10 you will in fact get employee 4711 with costcenter 20 shown.
    Same effect with org-unit or any other selection criteria.
    Regards
    Vasu

  • Error "User Expiry Date Overlaps" while login into system

    Dear Consultants,
    A strange problem started occurring in our System.When we are trying to
    login in SAP system from any user apart from SAP*, after giving user name
    and password it gives error:- "user expiry date overlaps".
    I want to mention here our both licenses NetWeaver_ORA & Maintenance_ORAare still valid. and we are also able to login only from SAP* login
    System - SAP ECC with EHP5
    O.S       - Linux RHEL 5.4 X86_64
    Kernel  - 720
    Regards
    Gagan sharma
    Basis Consultant

    System Time and Server Time is Exactly same
    System time          21.02.2012  19:32:01 INDIA
    Server Time          Tue Feb 21 19:32:29 IST 2012
    I also want to mention here this problem started occurring immediately without doing any change on System or Server Side
    Regards
    Gagan sharma

  • Date overlapped

    Hi guys, how I can see with one query if I got date overlapped? That's the scenario:
    Create table tabletest ( iddd int, datefrom datetime2, dateto datetime2)
    insert into tabletest values (1, '2014-01-01', '2014-02-06'),
    (2, '2014-01-01', '2014-03-15'),
    (1, '2014-02-05', '2014-08-01'),
    (2, '2014-03-16', '2015-01-01')
    For example in this case the n1 is overlapped in terms of date 2014-02-05 and 2014-02-06...

    SELECT *
    FROM tabletest LT JOIN tabletest RT ON LT.iddd=RT.iddd AND LT.datefrom<>RT.datefrom AND LT.dateto<>RT.dateto
    WHERE RT.datefrom<=LT.dateto AND RT.datefrom>=LT.datefrom
    Chaos isn’t a pit. Chaos is a ladder. Many who try to climb it fail and never get to try again. The fall breaks them. And some are given a chance to climb, but they refuse. They cling to the realm, or the gods, or love. Illusions. Only the ladder is real.
    The climb is all there is.

  • Find the latest Start date after a gap in date Field For each id

    Hi All, Can anyone help me in this, as it is so urgent ..My requirement is to get the latest start date after a gap in a month for each id and if there is no gap for that particular id minimum date for that id should be taken….Given below the scenario
    ID          StartDate
    1            2014-01-01
    1            2014-02-01
    1            2014-05-01-------After Gap Restarted
    1            2014-06-01
    1            2014-09-01---------After last gap restarted
    1            2014-10-01
    1            2014-11-01
    2            2014-01-01
    2           2014-02-01
    2            2014-03-01
    2            2014-04-01
    2            2014-05-01
    2            2014-06-01
    2            2014-07-01
    For Id 1 the start date after the latest gap is  2014-10-01 and for id=2 there is no gap so i need the minimum date  2014-01-01
    My Expected Output
    id             Startdate
    1             2014-10-01
    2             2014-01-01
    Expecting your help...Thanks in advance

    If you're using SQL Server 2012 this will work for you...
    IF OBJECT_ID('tempdb..#temp') IS NOT NULL
    DROP TABLE #temp
    GO
    CREATE TABLE #temp (
    ID INT,
    StartDate DATE
    INSERT #temp (ID, StartDate) VALUES
    (1,'2014-01-01'),
    (1,'2014-02-01'),
    (1,'2014-05-01'),
    (1,'2014-06-01'),
    (1,'2014-09-01'),
    (1,'2014-10-01'),
    (1,'2014-11-01'),
    (2,'2014-01-01'),
    (2,'2014-02-01'),
    (2,'2014-03-01'),
    (2,'2014-04-01'),
    (2,'2014-05-01'),
    (2,'2014-06-01'),
    (2,'2014-07-01')
    -- SQL 2012 and later --
    ;WITH gg AS (
    SELECT
    COALESCE(DATEDIFF(mm, LAG(t.StartDate, 1) OVER (PARTITION BY t.ID ORDER BY t.StartDate), t.StartDate), 2) AS GetGap
    FROM #temp t
    ), did AS (
    SELECT DISTINCT t.ID FROM #Temp t
    SELECT
    did.ID,
    x.StartDate
    FROM
    did
    CROSS APPLY (
    SELECT TOP 1
    gg.StartDate
    FROM gg
    WHERE did.ID = gg.ID
    AND gg.GetGap > 1
    ORDER BY gg.StartDate DESC
    ) x
    If you're on an earlier version than 2012, let me know. It's an easy rewrite but the final code isn't as efficient.
    Jason Long

  • Overlapping and splitting

    Dear All,
    What is Overlapping and splitting, where do i  assign?

    Now
    Splitting
    An operation is split if it is carried out on several machines or by several persons at the same time (see figure).
    Splitting an operation has the following effects on the operation dates:
    The processing time/execution time becomes shorter.
    Setup and teardown must be carried out more than once for the operation
    http://help.sap.com/saphelp_47x200/HELPDATA/EN/7e/d419b7455911d189400000e8323c4f/frameset.htm
    Overlapping
    To reduce the lead time of a routing or production order you can overlap operations. This means that an operation starts before the previous operation has finished
    You can define for each individual operation whether it should overlap with the next consecutive operation and in what way. To do this you can set the following indicators:
    Required overlapping
    This means the operations always overlap
    Optional overlapping
    This means the operations overlap if scheduling uses a reduction level that allows overlapping
    Flow manufacturing
    This means the system extends the lead time of all operations, that overlap using flow manufacturing, to the same length as the lead time of the longest of these operations. As with required overlapping, the operations always overlap.
    For every type of overlapping you can
    Define a minimum overlap time which only allows overlapping after a particular minimum limit has been reached.
    Define a minimum send-ahead quantity to ensure that the operation is performed for a particular minimum quantity of the material to be produced, before the next operation starts.
    http://help.sap.com/saphelp_47x200/HELPDATA/EN/8b/67221404f111d293560000e8323492/frameset.htm
    pavan

  • As-is analysis and Gap Idenificattion

    Can anyone please define the terms "As-is analysis" and "Gap identification" in the initial stage of a project? I need to know what they mean and what they consist of.
    Thanks

    Hi Gurbinder,
    In the As-is analysis you will have to understand the existing business process from user community/conducting workshops and from there you will identify the gaps for the "to be process" to be designed/developed/implemented.
    In a BW implementation, after you understand the requirements from As-is analysis, you will have to do a feasibility check by looking  at the relevant business content to identify the gaps for possible enhancements/custom developments in the information supply chain (datasources/transfer rules/infosources/update rules/data targets/query components etc.,) for the "to be process" to be implemented.
    Hope it clarifies,
    Sree

  • Need help! Can't validate date overlaps for a tabular column

    Hello all,
    The validation I created to validate whether new or updates rows does not overlap with any records in the table isn't working.
    The columns are StartDt and EndDt
    Validation Type: NOT EXISTS
    Validation expresion:
    select 1
        from  sample S
        WHERE S.STARTDT BETWEEN :STARTDT AND :ENDDT
    OR(S.ENDDT BETWEEN :STARTDT AND :ENDDT)
    or (S.STARTDT <= :STARTDT and S.ENDDT >= :ENDDT)
    or (:STARTDT <= S.STARTDT and :ENDDT >= S.ENDDT)
    Error Message:
    Times overlap
    When Buttons pressed
    -Select Button-
    The validation works if a new row or updated row overlaps any existing start and end date records but it doesn't work if I update startdate and end date rows that doesn't overlap existing date times
    Example:
    TABLE DISPLAYS THE FOLLOWING RECORDS
    NAME                   START DATE                      END DATE
    TEST                    1/1/2012                               12/31/2012
    If I update the rows to the following values, I receive an error message (although those values don't overlap any records in the table)
    NAME                   START DATE                      END DATE
    TEST                    6/1/2012                               10/30/2012
    Any ideas? Do I need to change my code?
    Click the link to view the answer to this question. Need help! Can't validate date overlaps for a tabular column
    Message was edited by: CharlieMack

    Logic for date range overlap testing only requires two conditions in the WHERE clause:
    ORACLE-BASE - Overlapping Date Ranges
    WHERE S.STARTDT <= :ENDDT AND S.ENDDT >= :STARTDT -- TRUE for ranges that overlap
    It looks a little odd, but, if you scribble out a 'logic table', it makes sense.
    Condition
    A.start <= B.end
    A.end >= B.start
    A__A B--B
    true
    false
    A__B=A--B
    true
    true
    A__B==B__A
    true
    true
    B--A==B__A
    true
    true
    B--B A__A
    false
    true
    MK

  • HT5012 I am having difficulty XMIT/REC text messages to family members using Android phones?  I have a 3GB data plan and all switches and buttons are set properly.  Any suggestions?

    I am having difficulty XMIT/REC text messages to family members using Android phones?  I have a 3GB data plan and all switches and buttons are set properly.  Any suggestions?

        Hello APVzW, we absolutely want the best path to resolution. My apologies for multiple attempts of replacing the device. We'd like to verify the order information and see if we can locate the tracking number. Please send a direct message with the order number so we can dive deeper. Here's steps to send a direct message: http://vz.to/1b8XnPy We look forward to hearing from you soon.
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

  • I have data caps and need to do a clean mavericks install

    Hello.
    I recently bought a used Mac mini and not realizing the new Mac OS installation options are over the internet, I erased the hard drive and tried to do the system recovery. 
    Unfortunately I'm on rural broadband, I have a small data cap and my connection is unreliable.  Even if I try to just do it anyway and eat the overage charges I only get corrupt downloads that won't work.  Tried downloading the installer from the local library's free wifi and made a USB stick but it still insists on re-downloading when I try to install. 
    Is there any way to do it offline using a copy of the OS downloaded somewhere else?  My research says no, Apple if you're listening please please provide that option.   This really ***** :(
    If I go to an apple store will they charge me a lot to do it?  Would they let me plug in a monitor and keyboard/mouse and let me do it myself for free?

    The_Cowman wrote:
    Hello.
    I recently bought a used Mac mini and not realizing the new Mac OS installation options are over the internet, I erased the hard drive and tried to do the system recovery. 
    Unfortunately I'm on rural broadband, I have a small data cap and my connection is unreliable.  Even if I try to just do it anyway and eat the overage charges I only get corrupt downloads that won't work.  Tried downloading the installer from the local library's free wifi and made a USB stick but it still insists on re-downloading when I try to install. 
    Is there any way to do it offline using a copy of the OS downloaded somewhere else?  My research says no, Apple if you're listening please please provide that option.   This really ***** :(
    If I go to an apple store will they charge me a lot to do it?  Would they let me plug in a monitor and keyboard/mouse and let me do it myself for free?
    Most Apple Stores are pretty good. Or a friend with a large download limit. Just make sure that where ever you go to download it that you use your OWN Apple ID. Then copy it to the USB Stick, copy it to your Application folder and reinstall. (Note that the installer removes itself after installation, so keep that copy either on the USB stick or copy to an external drive, etc.)
    Pete

  • Get cell value in Planning Data form and using it in a business rule

    Hi Everybody,
    if i set the data type of an Account Member as text, is there a way to get the value inserted by the user in a dataform, turning it as dimensional member and using it in a business rule?
    So, if the user insert the value "USA" in a cell, can i use any functions to tell essbase that "USA" is a dimensional member and then using it in a business rule, for example in a cross-dimension like Period1->FY12->USA?
    I tried to use the function @Member and it doesn't work, but i'm wondering if there is a way that can let me get the value inserted and use it just like a dimensional member. What are the ways that can let user input value that can be used in a business rule? I think one is by using SmartList, is there any other ways? Maybe using variables?? As an alternative i tried to use Prompt Variable but there are too many members on which the rule must run.
    Please help me, i wanna know if i can or not let the user input the member on which the rule must run...
    Thank all guys
    Bye
    Maurizio

    Thanks EW for your answer,
    YesI could use SmartList even if i think it's very tough to handle. My experience on using SmartList in caclc script is not so good. I try to enter in details of my requirement:
    I have 500 account members.
    For each one, I have to calculate the monthly budget by sharing the amount among the months. The user wants to calculate it on the basis of the actual flow(over the months) of an unspecified account of the prior year. The unspecified account must be inserted in a data form.
    So, i could use a Smart List but it colud be of 500 elements and then i should make a rule with as many IF as how many are the accounts. Or im wrong? The only way to use smart list dynamically in a business rule is by referring its values in a IF condition. Or i'm wrong.
    I tried to use execution variable ma it seems don't work. In this case the user must pay attention to write the account correctly, otherwise as you say the rule doesn't work.
    The value in PD0A020 is "PD0A000" (that is a dimensional member). The value in PD0A000 is "hello". In PD0A040 the rule returns "PD0A000" and not "hello" as i would. The function @Member appears to be not able to catch the dimensional member by the value in PD0A000.
    {Example}="test"->"Input"->"Scenario_test"->"FY12"->"PD0A020";
    Fix("test1","Input","Scenario_test","FY12")
    "PD0A040"=@Member({Example});
    endfix
    So, my doubt is: is it possible for Essbase/Planning to use the value inserted in a data form and to turn it in a dimensional member? What are the practicable ways to let the user input/choose the member on which makes the rule run?
    Thank you Ew, thank you guys
    Maurizio

  • Data Federator data lineage and impact analysis

    Hi,
    I am looking for the use of data lineage and impact analysis feature in data federator at Universe level.
    Can I know which objects are using which fields by uisng impact feature in the data federator.
    Thanks in Advance.

    I realize this answer is a cop out but I'll suggest it anyway. Upgrade.
    I struggled with getting the lineage and impact analysis working in 10.1 and had to do quite a bit of trial and error in the Apache configuration files, DAD's ,etc. because the lineage reports were web based. I never got them working in Production due to other much more pressing implementation issues at the time and never went back to fix them.
    In 10.2 and above the reports are much easier to get with no real configuration needed.
    Anyway, back to your question, I would suggest going back through the 10.1 documentation on getting those to work and have someone a bit familiar with setting up Apache help you. I did get them working in our Test environment but its been so long I can't recall all the steps and tricks, sorry.
    -gary

Maybe you are looking for