Jump to content
  • 0

Formula field to count text entries


tyinawyn

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 :-)

Link to comment
Share on other sites

2 answers 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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...