Extracting data for a specific time range from Datatime

Options
Setup Info
Registered Posts: 5 ✭✭✭

Hi.

I want to extract data from 7 AM to 10 AM, regardless of the date, in Datetime, but I don't know how to do it.

Thank you.

Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

  • Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,552 Neuron
    edited October 2024 Answer ✓

    You said 7AM initially not 7:30AM so you have changed your requirements. 😉

    You can use datePart() in a formula to extract the hours and minutes, joined together and filter for records in the 730 to 1000 range:

    (datePart(Time_parsed, "hours")*100)+datePart(Time_parsed, "minutes")

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.