Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Totals not adding correctly

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Totals not adding correctly

    Hi,

    I'm having a problem with my totals not adding correctly. I've attached a screen shot of what I'm getting. My totals expressions are as follows:

    total(calc->Cost,grp->Entityreffullname,grp->detail)

    total(calc->Cost,grp->Customerreffullname,grp->detail)

    total(calc->Cost,grp->Grand,grp->detail)

    The line item data is correct, and matches what I get from within QB. Adding rounding to the expressions has no effect. The data being calculated only goes to 2 decimal places.

    Help??

    Andy

    #2
    Re: Totals not adding correctly

    Andrea

    Welcome to QRB World..!!

    You are reporting from the TimeTracking table and the Entityreffullname and Customerreffullname are both 209 characters in length for a total of 418 characters.

    The problem is that the sorting routine will only handle 240 characters of sortable data.

    So what you need to do is to change the group field to an expression - left(Entityreffullname,100) which will only use the first 100 characters of the field. I'm guessing that is more than enough to cut all of the blanks off, but not cut off any needed data.

    Do the same for other long fields and make sure that the total number of characters being sort on is 240 or less.
    Al Buchholz
    Bookwood Systems, LTD
    Weekly QReportBuilder Webinars Thursday 1 pm CST

    Occam's Razor - KISS
    Normalize till it hurts - De-normalize till it works.
    Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
    When we triage a problem it is much easier to read sample systems than to read a mind.
    "Make it as simple as possible, but not simpler."
    Albert Einstein

    http://www.iadn.com/images/media/iadn_member.png

    Comment


      #3
      Re: Totals not adding correctly

      Thanks Al,

      Can you be more specific--where exactly do I need to do this? I tried putting it in the totals expressions like this:

      total(calc->Cost,grp->(left(Entityreffullname,100)),grp->detail)

      and it didn't take--the changes weren't there after I closed the properties box and went back in.

      Am I editing the totals fields in the group footers, or something else?

      Andy

      p.s. This is my third day working with QReportBuilder, so be gentle . . .

      Comment


        #4
        Re: Totals not adding correctly

        Originally posted by Andrea Merriam View Post
        Thanks Al,

        Can you be more specific--where exactly do I need to do this? I tried putting it in the totals expressions like this:

        total(calc->Cost,grp->(left(Entityreffullname,100)),grp->detail)

        and it didn't take--the changes weren't there after I closed the properties box and went back in.

        Am I editing the totals fields in the group footers, or something else?

        Andy

        p.s. This is my third day working with QReportBuilder, so be gentle . . .
        I'm always gentle.... I hope..

        Sorry I wasn't clear...

        When you define the groupings, you should use the expression. Leave the totals alone- as long as you keep the grouping names the same....

        See attached gentle image ;-)

        ps - you are invited the Thursday webinar at 1 pm CST
        pss - hope this helps - if not let us know....
        Al Buchholz
        Bookwood Systems, LTD
        Weekly QReportBuilder Webinars Thursday 1 pm CST

        Occam's Razor - KISS
        Normalize till it hurts - De-normalize till it works.
        Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
        When we triage a problem it is much easier to read sample systems than to read a mind.
        "Make it as simple as possible, but not simpler."
        Albert Einstein

        http://www.iadn.com/images/media/iadn_member.png

        Comment


          #5
          Re: Totals not adding correctly

          Thanks again, but it still didn't work. I changed the group definitions as you showed, then tried with 50 instead of 100, then tried re-creating the totals fields, then tried closing and re-opening QRB, and the totals stayed wrong each time. What am I missing?

          And as long as I'm bugging you, is there a way to choose a field in a table based on information received from an Ask variable? I have to be able to create historic labor costs reports, and I need the report to choose the field with the pay rate that is applicable for the time period entered by the user. I've been able to use a calculated field to parse the Ask results into a string that is the same as the appropriate table->field string, but the expression genie doesn't recognize it as a valid table->field reference. Is there a) a way to make the expression genie recognize my string as a valid table->field reference, or b) another way to go about this?

          Finally, I keep getting an error when I preview my report: "Warning: Field object references an nonexistent field: A_CASE->DELETED." Do you have any idea what that might mean? To the best of my knowledge, no-one here has changed the structure of any of the tables, much less deleted any fields.

          I'd love to do the webinar, but can't this week.

          Thanks for all your help.

          Andy

          Comment


            #6
            Re: Totals not adding correctly

            Originally posted by Andrea Merriam View Post
            Thanks again, but it still didn't work. I changed the group definitions as you showed, then tried with 50 instead of 100, then tried re-creating the totals fields, then tried closing and re-opening QRB, and the totals stayed wrong each time. What am I missing?

            And as long as I'm bugging you, is there a way to choose a field in a table based on information received from an Ask variable? I have to be able to create historic labor costs reports, and I need the report to choose the field with the pay rate that is applicable for the time period entered by the user. I've been able to use a calculated field to parse the Ask results into a string that is the same as the appropriate table->field string, but the expression genie doesn't recognize it as a valid table->field reference. Is there a) a way to make the expression genie recognize my string as a valid table->field reference, or b) another way to go about this?

            Finally, I keep getting an error when I preview my report: "Warning: Field object references an nonexistent field: A_CASE->DELETED." Do you have any idea what that might mean? To the best of my knowledge, no-one here has changed the structure of any of the tables, much less deleted any fields.

            I'd love to do the webinar, but can't this week.

            Thanks for all your help.

            Andy
            Hey Andy you missed a good webinar..

            The A_CASE->DELETED object - haven't seen that before... (heard that before?) but something may have put an object out there that isn't needed... the view - object explorer might help find the object so it can be deleted, or you can build another report.

            The ASK variable is available for calculations - even if it isn't shown by the helpers.. Just copy it from the selection area and paste it into a calculation and test.

            We may have to do a session to see where the issue is in your groupings..... or export a report with the data and email it to me. alb @ bookwood.com
            Al Buchholz
            Bookwood Systems, LTD
            Weekly QReportBuilder Webinars Thursday 1 pm CST

            Occam's Razor - KISS
            Normalize till it hurts - De-normalize till it works.
            Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
            When we triage a problem it is much easier to read sample systems than to read a mind.
            "Make it as simple as possible, but not simpler."
            Albert Einstein

            http://www.iadn.com/images/media/iadn_member.png

            Comment


              #7
              Re: Totals not adding correctly

              I was able to find and remove the object causing the error message by using the Object Explorer, so that's one problem solved.

              As for the totals, the amount that is being totalled is a calculated field based on a pay rate from a linked Excel table as well as on data from the Timetracking table. It includes an If statement to determine which set of paydata to use for each Txndate. Could this be part of the problem? The individual line items are calculating correctly--when I export to Excel and run subtotals on just the line items, everything matches the info from QB.

              I've tried rebuilding the report from scratch, and that didn't help. I removed and re-linked the Excel table and overrode the default 255 chars (changed it to 50) on the Employee field (which in the report is linked to the Entityreffullname field in the Timetracking table), just in case that might be a problem. Rebuilt from scratch again, using the newly-linked Excel table. Still not working.

              Andy

              Comment


                #8
                Re: Totals not adding correctly

                Andy

                Not sure.. I'll need to recreate the report and data on my machine or work on yours...

                email me if you have time to look at it now..
                Al Buchholz
                Bookwood Systems, LTD
                Weekly QReportBuilder Webinars Thursday 1 pm CST

                Occam's Razor - KISS
                Normalize till it hurts - De-normalize till it works.
                Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
                When we triage a problem it is much easier to read sample systems than to read a mind.
                "Make it as simple as possible, but not simpler."
                Albert Einstein

                http://www.iadn.com/images/media/iadn_member.png

                Comment


                  #9
                  Re: Totals not adding correctly

                  As a follow up, I spoke with Andy and found that the totaling was a rounding error.

                  So I rounded the detail lines by creating a calculated field with the round() function and then totaled on the footers by dragging the rounded calculated field and having the genie create a total field based on the rounded calc field.
                  Al Buchholz
                  Bookwood Systems, LTD
                  Weekly QReportBuilder Webinars Thursday 1 pm CST

                  Occam's Razor - KISS
                  Normalize till it hurts - De-normalize till it works.
                  Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
                  When we triage a problem it is much easier to read sample systems than to read a mind.
                  "Make it as simple as possible, but not simpler."
                  Albert Einstein

                  http://www.iadn.com/images/media/iadn_member.png

                  Comment


                    #10
                    Re: Totals not adding correctly

                    Thanks for the phone call, Al.

                    Ultimately, the detail problem was a rounding error. In the greater picture, the problem is a difference in rounding procedure between QRB and QB. When the individual totals appeared wrong, the grand total for my report was off from the QB report by $0.07. Once rounding was applied in QRB, the grand total was off by $0.37. I noticed when I exported the report to Excel that if the precision showing in the report upon export was 2 decimal places, with no rounding, the line items came out exactly the same as the QB report, and that the data exported only went to 2 decimals. However, if the export was done with 4 decimal place precision and no rounding, and I then did the rounding in Excel, the line item totals were off from the QB report by the $0.37. My question now is, why do I only get precision as shown when I do an export of my report data, especially if the "unshown" precision is still causing rounding errors within QRB? Alternatively, is there an option to truncate my data within QRB so that my totals will reflect the trucated data I get upon export to Excel?

                    Andy

                    Comment

                    Working...
                    X