Jump to content
  • 0

Is there a way to group dates by Quarter?


Aleksandra

Question

Hello,

I hope someone can help me with this one. I want to group data so I get total amounts of, for example sales, for each quarter in pie chart. Is there a way to do that in Caspio? I see date roll up options, but there are grouping by months, years, weeks. I don't see grouping by quarter anywhere. What would be the best way to do this? Thank you all in advance.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi @Aleksandra,

You can have a Formula field that checks which quarter a record belongs to based on the date, then on your Chart DataPage use that Formula field to categorize your data.

 

CASE WHEN Month([@field:Date]) >= '1' AND Month([@field:Date]) <= '3'
THEN
'Q1'

 WHEN Month([@field:Date]) >= '4' AND Month([@field:Date]) <= '6'
THEN
'Q2'

 WHEN Month([@field:Date]) >= '7' AND Month([@field:Date]) <= '9'
THEN
'Q3'

 WHEN Month([@field:Date]) >= '10' AND Month([@field:Date]) <= '12'
THEN
'Q4'


END

 

image.png.a2e14cfda487d7721057e618ac61da2d.png

image.png.254e5746cce5011acfeaa1d72e183df9.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...