How to get Quarters in a year.

Hi all,

I have a requirement of dividing 12 months in current year into 4 quarters.

Can anyone help me with it?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    You can try this---

    if(
    or(
    month(todate(ri!date)) = 1,
    month(todate(ri!date)) = 2,
    month(todate(ri!date)) = 3,
    ),
    "Jan-Mar",
    if(
    or(
    month(todate(ri!date)) = 4,
    month(todate(ri!date)) = 5,
    month(todate(ri!date)) = 6,
    ),
    "Apr-June",
    if(
    or(
    month(todate(ri!date)) = 7,
    month(todate(ri!date)) = 8,
    month(todate(ri!date)) = 9,
    ),
    "July-Sep",
    "Oct-Dec"
    )
    )
    )

Reply
  • 0
    Certified Associate Developer

    You can try this---

    if(
    or(
    month(todate(ri!date)) = 1,
    month(todate(ri!date)) = 2,
    month(todate(ri!date)) = 3,
    ),
    "Jan-Mar",
    if(
    or(
    month(todate(ri!date)) = 4,
    month(todate(ri!date)) = 5,
    month(todate(ri!date)) = 6,
    ),
    "Apr-June",
    if(
    or(
    month(todate(ri!date)) = 7,
    month(todate(ri!date)) = 8,
    month(todate(ri!date)) = 9,
    ),
    "July-Sep",
    "Oct-Dec"
    )
    )
    )

Children