Jump to content
  • 0

Group charts by week



I have a bar-chart that shows how many units were created by day. Days on the X axis and count on the Y axis.

I would like to have the same chart, but grouped by week, so I can see the total count by week, over time, so: Weeks on the X axis and count on the Y axis.

Any idea how I might achieve that? I have a timestamp field available, and I would rather not have the users input the week number in a separate field manually.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

In the chart, records are not able to group by week. You can only group by Whole field, Hour, Weekday, Month, or Year.

The workaround is to use Combined Chart and Report DataPage instead of Charts DataPage: http://howto.caspio.com/datapages/creating-datapages/creating-a-combined-chart-and-report-datapage/combined-chart-and-report-example.html

Then you can add one calculated field in the results page to calculate the week. The Math function is :Datepart(week,[@field:date]). Go to Configure Chart Options, select this calculated field for X Axis.

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.

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.

  • Create New...