cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sum fields in Formula

cothmer
Participant
797

Is there a way to sum 3 fields in a formula ? It works for 2 of them but I added a third and now I get this message.

Accepted Solutions (1)

Accepted Solutions (1)

ido_millet
Active Contributor
0 Likes

Option 1: Add A + B in a formula and SUM that formula at the desired grouping level.

Options 2: Add the SUM formulas.

Option 1 has a couple of advantages.

Answers (4)

Answers (4)

ido_millet
Active Contributor

The 2nd argument in the SUM() is the Grouping level, NOT a 2nd item to be summed.

If you need to add 3 elements, simply use A + B + C.

cothmer
Participant
0 Likes

Thanks. However, I tried the first one and got this message, the second one didn't work either.

DellSC
Active Contributor
0 Likes

There are a couple of ways you could do this:

Sum({@On Time?} + {@On Time? 2}, {@Clinician Name and ID})

or

Sum({@OnTime?}, {@Clinician Name and ID}) + Sum({@On Time? 2}, {@Clinician Name and ID})

-Dell

cothmer
Participant
0 Likes

So Clinician Name and ID is the group and I want to add @OnTime and @OnTime 2 together and get the total for that group. How would I write this ? Thanks.