LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Formatting Data to create Cumulative table

    Employee
    Posted 06-22-2016 03:41

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: what_to_do

    Hi,


    I am trying to create a cumulative view of project spend. I have the following input and require the below output. Guidance is required.

    INPUT:

    Project ID Month Spend
    20 July 5000
    20 October 2000
    20 April 2000
    10 November 10
    10 December 50

    OUTPUT:
    Project ID Month Spend
    20 July 5000
    20 August 5000
    20 September 5000
    20 October 7000
    20 November 7000
    20 December 7000
    20 January 7000
    20 February 7000
    20 March 7000
    20 April 9000
    20 May 9000
    20 June 9000
    10 July 0
    10 August 0
    10 September 0
    10 October 0
    10 November 10
    10 December 60
    10 January 0
    10 February 0
    10 March 0
    10 April 0
    10 May 0
    10 June 0


  • 2.  RE: Formatting Data to create Cumulative table

    Employee
    Posted 06-22-2016 06:52

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: ryeh

    The trickiest part is to generate a list of dates/months between the first and last records. Once you have that, you can use a lookup to get the dates that have values and then fill in the null records. I'm doing the date generation manually here.

    See: http://community.lavastorm.com/threa...erator-Library

    There is also an accelerator node that you can use to do the same. It's called the Master Calendar Creator and is found in the Metadata and Structure library. The limitation here is that the start and end dates are entered manually. Also, the only option is to increment the dates on a 'per day' basis. If you only want one record per month, you'd filter by day and only keep the first of every month.
    Attachments:
    outputDates.brg