Jump to content
  • 0
tyinawyn

Formula field to count text entries

Question

Hi there,

I have created a form that records incidents.  each incident can have one or more physical intervention techniques used.

We are required to graph on the total number of times these techniques are used across all incidents.

Easy to do if only one technique, graphing and reporting works well, however I am struggling with the multiples.

Good advice from caspio has led me to adding a formula field within table but I am a bit stuck.

 

So lets say I have four columns, each with drop downs of the 12 techniques we use, I need to formula field to account for the multiples that are assigned to each record.

 

I suppose I have two questions!

Is the formula field the best solution and if so can someone give me a pointer in how to set up the formula?

 

Thanks so much :-)

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
On 11/16/2017 at 1:19 AM, tyinawyn said:

Hi there,

I have created a form that records incidents.  each incident can have one or more physical intervention techniques used.

We are required to graph on the total number of times these techniques are used across all incidents.

Easy to do if only one technique, graphing and reporting works well, however I am struggling with the multiples.

Good advice from caspio has led me to adding a formula field within table but I am a bit stuck.

 

So lets say I have four columns, each with drop downs of the 12 techniques we use, I need to formula field to account for the multiples that are assigned to each record.

 

I suppose I have two questions!

Is the formula field the best solution and if so can someone give me a pointer in how to set up the formula?

 

Thanks so much :-)

Hi,

Can you give an example how you store data? Do you store each technique in a separate row?

If yes, you could try using sql count function in a calculated field on a report datapage (formula field doesn't support sub-queries) E.g:

SELECT COUNT(ID) 

FROM table_name 

WHERE ID = target.[@field:incidentID]

You may find more details here  and here

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×