How can I get my graph to display in intervals? Like 30-60 days, 60-90 days, etc?

user03058
user03058 Member
edited March 2023 in Scheduled Reports

My data has a column of days and i just want the graph to group them in the x axis. 

Best Answer

  • AS
    AS Coach
    Answer ✓

    You can do custom beast modes to create your bins.

    Something like:

    CASE

    WHEN `days` >= 0 and `days` <= 30 THEN '0-30 Days'

    WHEN `days` > 30 and `days` <= 60 THEN '30-60 Days'

    WHEN `days` > 60 and `days` <= 90 THEN '60-90 Days'

    WHEN `days` > 90 THEN '90+ Days'

    END

    Aaron
    MajorDomo @ Merit Medical

    **Say "Thanks" by clicking the heart in the post that helped you.
    **Please mark the post that solves your problem by clicking on "Accept as Solution"

Answers

  • AS
    AS Coach
    Answer ✓

    You can do custom beast modes to create your bins.

    Something like:

    CASE

    WHEN `days` >= 0 and `days` <= 30 THEN '0-30 Days'

    WHEN `days` > 30 and `days` <= 60 THEN '30-60 Days'

    WHEN `days` > 60 and `days` <= 90 THEN '60-90 Days'

    WHEN `days` > 90 THEN '90+ Days'

    END

    Aaron
    MajorDomo @ Merit Medical

    **Say "Thanks" by clicking the heart in the post that helped you.
    **Please mark the post that solves your problem by clicking on "Accept as Solution"
  • Thanks

This discussion has been closed.