How to total survey results

I have a survey database which consists of a form with 3 fields. What I need to do is get the total number of unique values for all fields. This is easy enough to do with a categorized view and a computed column with a value of “1” and totals enabled. Here’s the rub - I need to sort by total, so the field values that are submitted most often appear at the top of the view. Is there any way to do this short of looping through all the documents and loading arrays to get the count for each value? I’m trying to keep it as simple as possible.

Thanks!

Subject: How to total survey results

Views don’t sort by computed totals.

How about pushing the data off to Excel and doing a pivot table?

Doug

Subject: RE: How to total survey results

That would work, but I’m trying to keep the solution as simple as possible and would prefer to let the users get all information directly from one place.

Thanks for the suggestion

Subject: RE: How to total survey results

Then I think you’re running LS to count/sort/present the answers.

Orrrr…(and this is really really back-o-the-napkin thinking)

Maybe you could use @Sort with @DbLookup…lookup keyed to a question number maybe? Fields on a page/form

Q1 - @Count(@DbLookup…Q1) - gets you the count of answers

Q2: same

Q…

Qn…same

Field Questions In Frequency Order @Sort(Q1 : Q2 :…Qn)

No clue if this works or not but what the heck, it might.

Doug

Subject: RE: How to total survey results

I’ll give that a try before breaking out the LotusScript.

Thanks!