Forum Discussion

LeonLeon's avatar
LeonLeon
Qrew Member
9 years ago

QuickBase bar chart showing $ over time skips blank months instead of displaying months without $ as 0.

I have a QuickBase bar chart showing financial totals, grouped by month, based on a date field. The problem: months w/o any financial data (this happens in the slow winter season) are skipped instead of showing 0. The result is that visually, all months appear to have positive data, which is misleading. I want to show that there are months with $0 totals.


  • You have to (1) generate the chart using script or (2) modify a QuickBase rendered Chart to plug in the missing data. This timely post (which includes a demo) shows  you the general technique of how to modify a QuickBase rendered chart:

    What Chart Enhancements Do You Need?
    https://quickbase-community.intuit.com/questions/1447093
    it isn't difficult and I was anticipating this question coming up when I made the post. In a nutshell you have to push an extra datapoint onto the x and y axes to represent the category that is missing and give it a zero count. It is a little more complicated than this because for consistency sake you should synthesize the drilldown URLs even though there is no data to drill into. 
    Feel free to contact me off-world if you want a solution to this problem as it involves individualized script.
  • Hi, thanks very much for reviewing my question and providing a helpful response. Your solution looks like something I could figure out eventually (probably with more help) but given time constraints, I'm going to live without it for now. It's good to know that it is possible but would require some custom work. Thanks again.
  • Leon, the other simpler option would be to enter dummy data with zero sales dollars for every month on your chart.
  • Yes, thank you! That also works (I checked), although doing that would complicate my project counts, so I'm not going to go that route. I'll survive. I appreciate the ideas!
  • Hi, I'm having a similar issue, rather than dollars my chart shows count of activities in another table. I have no way to input a zero value for that. Is there another way I can achieve the same outcome?
    • _anomDiebolt_'s avatar
      _anomDiebolt_
      Qrew Elite
      I wrote this Haiku to encourage you to pursue a script solution:

      common script 
      common, that problem,
      To the script in the outcome.
    • RebeccaL's avatar
      RebeccaL
      Qrew Cadet
      Thank you for that, but I don't know how to write script
    • _anomDiebolt_'s avatar
      _anomDiebolt_
      Qrew Elite
      No problem. I don't really know how to write Haiku - I have to use a generator.

      In any event, here is the updated link to the old post in the new forum:

      What Chart Enhancements Do You Need?
      https://community.quickbase.com/quickbase/topics/what-chart-enhancements-do-you-need

      It looks like I never created an example to patch the missing data but there are two similar examples that (1) change the scale and (2) accumulate data of a previously rendered chart. It would be easy to use the same general technique to patch missing data although I would have to think about how to do it in a general way. Maybe I will create a demo - I will put it on my todo list again.

      If you need a more immediate solution feel free to contact me off-world using the information in my profile:

      https://getsatisfaction.com/people/dandiebolt