Magic ETL

Magic ETL

Requests Older than 6 Days

Hi Guys!

I am trying to capture dates that are older than 6 days, but this Beast Mode is showing me zero although I know I have some.

SUM(case when DATEDIFF(`Effective Time`,CURRENT_DATE()) >=6 then 1 else 0 end)

Thank you!!

Tagged:

Best Answer

  • Coach
    Answer ✓

    Hi @Fadem

    You need to change the order if using "greater than or equal to" 6

    like this

    1. SUM(case when DATEDIFF(CURRENT_DATE(),`Effective Time`) >=6 then 1 else 0 end)
    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

  • Coach
    Answer ✓

    Hi @Fadem

    You need to change the order if using "greater than or equal to" 6

    like this

    1. SUM(case when DATEDIFF(CURRENT_DATE(),`Effective Time`) >=6 then 1 else 0 end)
    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'
  • Member

    @Godiepi Works! 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