Forum Discussion

BuildPro's avatar
BuildPro
Qrew Captain
6 years ago

Summary Report not providing total

I think this might be the problem:  I am using fields with a formula - All of the REV. fields are formula fields.  They are totaling correctly.  However, the "TOTAL FOR CK DATE" field is not totaling.  The formula in that field adds all of the REV. fields.

Please advise.  Thank you


------------------------------
Lynne8817 Lynne8817
------------------------------
  • Typically that will happen if the formula  for any of your REV fields allows any of the resulting calculations to calculate to null (blank).  So the proper fix is to adjust those calculated fields to calculate to zero as a last resort in the IF statement.  This can also happen if these [Rev...] fields depend on summary fields where you have not set the "Treat blank as zero" to checked.

    The untidy way (imho) is to do this in your [TOTAL FOR CK DATE]

    Nz([Rev field 1]) + Nz([Rev field 2]) ...... + Nz([Rev field last])

    The Nz() function tells the system to use zero if the value is null (blank).  I try to avoid cluttering up the whole app with Nz()s in the formuals preferring to fix them properly at the source.


    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • BuildPro's avatar
      BuildPro
      Qrew Captain
      Thanks...I went through and added the Nz to all involved fields.  it works now!

      ------------------------------
      Lynne8817 Lynne8817
      ------------------------------
  • Did you double check your field type to make certain it is numeric? No typos in your formula? I have accidentally selected a formula field of text type when I meant numeric before.

    ------------------------------
    Adam Keever
    ------------------------------
    • SamanthaSand's avatar
      SamanthaSand
      Qrew Member
      Could there be another reason why a currency column isn't totaling? I have the formula below, and it totals in my report. But when I create a summary field against it in a related table, it does not total in reports. 

      I made sure that all fields being referenced are the same type (currency) and have this checked: Treat blank values as "0" in calculations.

      Case([Pricing Type],"Bid", Nz([Original Bid Amount]), "Budget", Nz([Budget Amount]), 0)​


      ------------------------------
      Samantha Sand
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        Is that Summary field set to show totals?

        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        mark.shnier@gmail.com
        ------------------------------