Magic ETL

Magic ETL

Beastmode Between Specific Dates

How can I write a beastmode to return data between two dates? For example 

CASE WHEN 'Date' >= 10/01/2016 and <= 09/30/2017 then 'value' else 0 end

 

Thanks!

Sarah

Best Answer

  • Contributor
    Answer ✓

    try this:

    CASE WHEN `Date` >= '10/01/2016' and `Date` <= '09/30/2017' then `value` else 0 end

     

    I noticed you had single quotes around the field names. the field names should have the ` character(on the same button as tilda)

    Domo Arigato!

    **Say 'Thanks' by clicking the thumbs up in the post that helped you.
    **Please mark the post that solves your problem as 'Accepted Solution'

Answers

  • Contributor
    Answer ✓

    try this:

    CASE WHEN `Date` >= '10/01/2016' and `Date` <= '09/30/2017' then `value` else 0 end

     

    I noticed you had single quotes around the field names. the field names should have the ` character(on the same button as tilda)

    Domo Arigato!

    **Say 'Thanks' by clicking the thumbs up in the post that helped you.
    **Please mark the post that solves your problem as 'Accepted Solution'
  • Worked, thank you!

Welcome!

It looks like you're new here. Members get access to exclusive content, events, rewards, and more. Sign in or register to get started.
Sign In