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

Summary Total Error in Report

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

    Summary Total Error in Report

    Hi y'all,
    Briefly (if I'm able)

    Here's my report:
    ***********(simplified graphical display)*****************
    *************[brackets indicate fields]*******************

    ***Report Header
    [System Date]
    ***Group 1 Header
    [Customer ID]
    ***Group2 Header
    [Invoice ID]
    ***Detail
    [Quantity]
    [Price]
    [Calc->Q*P] (Quantity * Price)
    [Sum->[Calc->Q*P]] (T, GrLevel 2)
    (gives me extended price for item)
    ***Group 2 Footer
    [Sum->[Sum->Q*P]] (T, GrLevel 2)
    (gives me subtotal of all items)
    ***Group 1 Footer
    [Sum->[Sum->[Sum->Q*P]]] (T, Grand)
    (gives me Total of all invoices)
    **********************************************************
    The brackets,etc are just to explain layout, it's not the way the report actually looks.

    My trouble is that while the Extended Totals in Detail, and the Totals in Group2 Footer are all correct, the Grand Total in Group1 Footer is adding in more data than just the subtotals from Group 2. (ex: $560.25 -> $1363.75) It appears to be picking up the first Extended total as well as the Invoice total, if that makes sense.

    I have revised the report many times, inserting a Summary Section, or deleting Group levels, etc, but this doesn't change the calculation error.

    I'm stumped.
    Any suggestions from you gurus?
    -doug

    #2
    RE: Summary Total Error in Report

    Doug:

    The Group1 Summary should not be 'grand' it should be 'group1'

    R E G R O U P!

    Let Alpha figure it. While editing the group 1 footer area, insert the field, then from the drop box pick Total - Alpha will create the right summary using 'Group 1' instead of 'Grand'

    Ken

    Comment


      #3
      RE: Summary Total Error in Report

      Ken
      You GENIUS you !!

      All this time, I figured I needed to
      1) Create a Calculated field for my Extended Prices
      2) Place the field
      3) Create a Summary Field to total item 2's
      4) Place the Summary
      5) etc

      Instead, I place a Calculated Field (though I had not pre-created it) and select Total as its method.
      It automatically defined a summary for me. Right?

      Genius.
      Thank you.
      -Doug

      Comment


        #4
        RE: Summary Total Error in Report

        Ken-
        I've searched through the Ref and Tutorial manuals, and unless I've got a blind spot, I find no mention of placing a summary field in the method you suggest (and which works like a charm). They only tell about predefining Summary Fields.

        I also want to thank you again, for struggling through my oddball question above, and coming up with the perfect answer. And so quickly!

        I LOVE user discussion groups!! (also a member and frequent reader/contributor of the AutoCad discussion groups)

        Thanks again,
        -Doug

        Comment


          #5
          RE: Summary Total Error in Report

          Doug:

          Never mind the 'genius' designation. I 'stumbled' on that solution years ago as you will stumble on things I don't know.Genious is a term to be applied to the DEVELOPERS of Alpha.

          Glad you're up and running as we all anticipate the release of version 7.

          Ken

          Comment


            #6
            RE: Summary Total Error in Report

            Doug:

            Just read my last post and find that someone called 'Genius', for example, would never spell it GENIOUS now would he?

            Kid of like the guy who has a lisp and can't even pronounce it right.

            Ken

            Comment


              #7
              RE: Summary Total Error in Report

              OK maybe not a genius, but definitely a prescient genious.

              Your comment about the kid with the lisp was too appropriate. The 'other' discussion group I frequent is for AutoLisp, the LIStProcessing language AutoCad uses for customization.

              BTW, one poster in the V7 thread was Richard Rabins, supposedly at Alpha. Now I'm aware of Selwyn Rabins, but not Richard. Besides, his address was

              mailto:[email protected]

              Is it for real, this V7 talk?
              -doug

              Comment


                #8
                RE: Summary Total Error in Report

                Douglas;
                They are brothers. It's for real!

                Duncan

                Comment


                  #9
                  RE: Summary Total Error in Report

                  Hi again Ken
                  Still a problem....

                  The best way to describe mine is for you to look at one of Alpha's sample. It has the same problem.

                  Go to their ALPHASAMPLEINVOICE.SET
                  View it with Form B - An Invoice Form
                  The Invoice total for I2101 is $2374.28

                  Now do a screen print from
                  Report A - Report Based upon a Set
                  The Invoice total for I2101 is $2256.46

                  The report does not add in the shipping or taxes. (it wasn't asked to)
                  And that is where MY report fails, also. If I add a field for Shipping, the report pulls in data from Shipping multiple times, once for every instance of a Line Item in the set.
                  If you go to the Browse table for the set, you see multiple instances of the shipping data, even though it really only applies one time to the invoice. The report appears to do its calculations as if it were a browse table.

                  I think you'll see the problem, and I hope you will have the solution. You are, after all, a genious!

                  Thanks for the time you're putting in here.
                  -Doug

                  Comment


                    #10
                    RE: Summary Total Error in Report

                    Doug:

                    Been there too, and done that! I'll bet that the shipping and tax fields are part of the HEADER.dbf not the line-item. Here again, we have to 'regroup'. That is, don't put those two fields in the detail section on the report, they need to be in the invoice group footer. You'll need to total them also, per invoice. You should do the same with those two as you did with the extension price - you know, pick 'total' from the drop list with those fields in the 'group1' footer. Alpha will figure it out for you.

                    If all this doesn't work and I'm not understanding the problem, zip you app files and attach here or send to my e-mail add, and I'll help you thru this as well.

                    Ken

                    Comment


                      #11
                      RE: Summary Total Error in Report

                      Doug:

                      Been there too, and done that! I'll bet that the shipping and tax fields are part of the HEADER.dbf not the line-item. Here again, we have to 'regroup'. That is, don't put those two fields in the detail section on the report, they need to be in the invoice group footer. You'll need to total them also, per invoice. You should do the same with those two as you did with the extension price - you know, pick 'total' from the drop list with those fields in the 'group1' footer. Alpha will figure it out for you.

                      If all this doesn't work and I'm not understanding the problem, zip you app files and attach here or send to my e-mail add, and I'll help you thru this as well.

                      Ken

                      Comment


                        #12
                        RE: Summary Total Error in Report

                        Hi Ken -
                        Still no dice.

                        Do you have the SAMPLE files from ALPHA available?
                        In the Report I mentioned, just try adding shipping into the invoice. It gives multiple instances, with a faulty total.

                        I did just as you suggested, stuck it in the G1 footer, pulling from the drop-down.

                        I get Multiple shipping entries. An invoice that has
                        Shipping = 5.00
                        and has 7 line items gets a
                        Shipping total = 35.00

                        What's goin on?

                        I'll gladly send my app, but I thought it would be easier for you to see it on Alpha's very own sample. If you can get theirs to work, I know I can get mine to as well. Mine is based on theirs.

                        Thanks again.
                        - Doug

                        Comment


                          #13
                          RE: Summary Total Error in Report

                          Doug:

                          What is the 'sort order' on your report. It should be Invoice number. Be sure that is the case and try it in G1 again.

                          Ken

                          Comment


                            #14
                            RE: Summary Total Error in Report

                            Ken-
                            By sort order do you mean the Index I select when running the report?
                            Yes, I've tried inv_id as well as cust_id. Both give multiple instances of shipping.

                            Were you able to get the Shipping to add in properly in the alpha/sample/invoice.set? I still think this is the answer that will teach me best.

                            Let me know what you find.
                            Thanks again,
                            Doug

                            Comment

                            Working...
                            X