Skip to Content
author's profile photo Former Member
Former Member

Having problems with formula

Post Author: mmishkin

CA Forum: Formula

I am having issues getting this formula to work. I have a table with client number (one per client) and a table with charges (can have multiple charges). If the charge # is 100 I want to total it by client number.

for example

Client 001 has three cases of charge 100. I would like it to say 3

001 3

I keep getting

001 1

001 1

I've tried multiple versions of the formula but can't seem to get a subtotal that doesn't add records, I would rather not have a subreport..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2007 at 07:42 PM

    Post Author: yangster

    CA Forum: Formula

    what do you mean by can have 3 chargesdo you mean client abc can have 3 transactions with #100, are totalling the number of times #100 occurs or what exactly are you afterif you had some basic sample data that would help understand your situation

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2007 at 07:46 PM

    Post Author: mmishkin

    CA Forum: Formula

    They can have the same charge many times, . My fields are

    Client # in the client table

    Charge # in the charges table

    The charge number is 100 (it's not a dollar value, but rather a code) A Client can be in the charges table many times with code 100

    I tried this

    sum ({charge =100}, clientnumber)

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2007 at 07:52 PM

    Post Author: yangster

    CA Forum: Formula

    sum ({charge =100}, clientnumber) what is this supposed to mean?you've got a sum of formula per client number so i'm guessing you are grouping by client numberwhat is {charge =100} doing?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2007 at 07:55 PM

    Post Author: mmishkin

    CA Forum: Formula

    If the charge number is 100, I want it to sum how many instances there are by client.

    client Charge

    ABC 100

    ABC 300

    ABC 100

    What I want back is

    Client Charges

    ABC 2

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2007 at 08:14 PM

    Post Author: yangster

    CA Forum: Formula

    if charge = "100" then 1 else 0insert a summary based on the above formula

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2007 at 08:16 PM

    Post Author: mmishkin

    CA Forum: Formula

    Your right, thank you so much. I can't belive I missed that!!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.