Tap Forms Database Pro for Mac, iPhone, iPad and Apple Watch › Forums › Using Tap Forms 5 › Bar Chart for Total Houses Built in each year
Tagged: chart
- This topic has 5 replies, 2 voices, and was last updated 3 years, 2 months ago by
Brendan.
-
AuthorPosts
-
August 2, 2022 at 3:59 PM #47701
Andrew CParticipantI use TapForms to track houses we build. One record per house. I have a field “Year” which records which year each house was completed (2021, 2022, etc.). I would like to create a view which is a Bar Chart, with a single bar for each year, showing total houses built. Is there a way to do this?
August 2, 2022 at 8:02 PM #47702
BrendanKeymasterHi Andrew,
Yes you can do this.
What you want to do is set the Calculation Summary to Count on your Year field.
Set the Series Fields option on your chart to your Year field.
Then enable the “Show group summaries” option and you should see the Barnhart show the year at the bottom and the count of the number of homes for each of those years.
The attached screenshot shows an example. Except in this case it’s the number of movies released in specific years. Just my test data for this example.
Thanks,
Brendan
Attachments:
You must be logged in to view attached files.August 2, 2022 at 8:04 PM #47704
BrendanKeymasterOh, you’ll also want to set the
Group Records Byoption on your form to your Year field.August 3, 2022 at 4:50 PM #47705
Andrew CParticipantHi Brendan,
I can’t seem to get anything to display with these settings:
Sort & Group Settings > Group records By: Year Reported
Calculation > Field: Year Reported
Calculation > Type: CountX Axis Field: Year Reported (tried a few other options here as well, no difference)
Series Fields: Year Reported
Show Values: checked
Show Group Summaries: checkedNote – Year Reported is a number field.
Any suggestions?
August 4, 2022 at 8:14 PM #47711
BrendanKeymasterAugust 9, 2022 at 12:34 AM #47758
BrendanKeymasterOk, the issue is that you didn’t have the Field’s Calculation Summary set to Count. Once I set that in your form, the bars showed up.
The Calculation > Field: Year Reported isn’t quite what you need. That’s set on the Form, but you want it to be set on the Field itself.
Give that a try and see if it works for you.
-
AuthorPosts
You must be logged in to reply to this topic.