Data360 Analyze

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

Here are some useful links where you can find more information:

Product Announcements  Product Documentation  Ideas Portal

Discussions

Members

Resources

Events

 View Only
  • 1.  Splitting Data into 3 or More Outputs Not Working

    Posted 04-17-2017 20:28

    Hello, 

    I followed the steps in this post:

    https://lavastorm.zendesk.com/hc/en-us/articles/115001973269

    but the logic doesn't seem to be working.  

    I created 5 outputs in the script section of the transform.  I then created 4 additional Outputs (out2, out3, out4, out5) on the Define tab of the Transform in the Output section.  

    The logic is only working for output 1 and output 2.  Outputs 3,4,5 are just passing all rows without the where conditions being applied.

    My code in the script section is below and is also included in the attached jpg along with the row counts.  Thanks, Rob

    output 1
    {
    emit *
    where New_Effective_Date <= date("2010-12-31","YYYY-MM-DD")
    }

    output 2
    {
    emit *
    where New_Effective_Date >= date("2011-01-01","YYYY-MM-DD") and New_Effective_Date <= date("2012-12-31","YYYY-MM-DD")
    }

    output 3
    {
    emit *
    New_Effective_Date >= date("2013-01-01","YYYY-MM-DD") and New_Effective_Date <= date("2014-12-31","YYYY-MM-DD")
    }

    output 4
    {
    emit *
    New_Effective_Date >= date("2015-01-01","YYYY-MM-DD") and New_Effective_Date <= date("2015-11-30","YYYY-MM-DD")
    }

    output 5
    {
    emit *
    New_Effective_Date >= date("2015-12-31","YYYY-MM-DD")
    }



  • 2.  RE: Splitting Data into 3 or More Outputs Not Working

    Posted 04-17-2017 20:31

    the attachment didn't appear to go through, and the Edit function doesn't allow me to add attachment, so I'm pasting it here.



  • 3.  RE: Splitting Data into 3 or More Outputs Not Working

    Posted 04-17-2017 21:19

    Robert,
    You're missing the 'where' keyword in the logic for outputs 3-4 , 5 and that's why you're getting all records with condition not being applied.



  • 4.  RE: Splitting Data into 3 or More Outputs Not Working

    Posted 04-18-2017 06:18

    THAT is embarrassing.  Thanks Ramapriya. I don't believe that was generating a warning or an error at run time, but I'll take a look.