Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Date column Convert new column Week basics

I am trying to Create a  new column called week based on below logic If day part of lead_date <=7 -> Wk1 If day part of lead_date  between 8 to 14 -> Wk2 If day part of lead_date between 15 to 21...
  • technolog's avatar
    4 years ago

    Hi!

    You can try create calc column

    SWITHC(TRUE(),

      DAY([lead_date]) <= 7, "Week 1",

      DAY([lead_date]) <= 14, "Week 2",

      DAY([lead_date]) <= 21, "Week 3",

      "Week 4"

    )