Hi I have no idea how to use the count function to calculate how many times a word appears in my table. This would be the solution to another problem: I have a EnumList column which can be completed with more sentences, but the chart counts the rows with more things selected as an additional data. How could I do?
Solved! Go to Solution.
KEY | INTERVENTION |
---|---|
UNIQUEVALUE-1 | INTERVENTION-1 |
UNIQUEVALUE-2 | INTERVENTION-2 |
UNIQUEVALUE-3 | INTERVENTION-3 |
UNIQUEVALUE-4 | INTERVENTION-4 |
UNIQUEVALUE-N | INTERVENTION-N |
UNIQUEID()
Initial Value and Intervention should be blank, maybe marked as Required)From your data: Add the same list of interventions that you have inside your EnumListโs column config on the Intervention column of the new table. Each Intervention is a different row.
When there are no Interventions left, you can create Keys for them using the following article:
https://help.appsheet.com/en/articles/1726606-manually-generating-uniqueid-key-values
Donโt forget to paste the results of the formula so that the plain text will be saved and not the formula itself
From inside your app: Create a view (table, deck, card, whatever) based on your new table and inside that view you will be able to add your Interventions. Add all of the ones that you have inside your EnumListโs column config
YOURNEWTABLENAME[KEY]
YOURNEWTABLENAME[KEY]
[TIMES_USED]
and add this as AppFormula:COUNT(
FILTER(
"THE_NAME_OF_THE_TABLE_WHERE_THE_USERS_ADD_ROWS_AND_WHERE_THE_ENUMLIST_IS",
IN(
[_THISROW],
[THE_ENUMLIST_COLUMN]
)
)
)
SUM : : THE_VIRTUAL_COLUMN_CREATED_EARLIER
. Chart columns, the Intervention one (This is assuming you are not testing the new chart editor)Post here if any problems/questions
PS: You will need to change all of the previous records from the EnumList that before were the name of the intervention itself. Now they need to be the Key value from the new table. It should be very easy using โSearch and Replaceโ kind of feature from Sheets or Excel
What should I do with Split? If I put it in the EnumList column I canโt choose sentences anymore
You need another column to count how many times a word appears in your table.
You could have this on a VC of Number column type or VC of Show column type.
We need more info in order to help
Should I create a new VC?
What kind of informations do you need?
Where, when, why you need to count how maโฆ?
Are you trying to make a chart?
I did and it count the rows in a EnumList column. The problem is that when I select, for example, two occurrences in the EnumList, the chart doesnโt count 1 of the first and 1 of the second occurrence but create a third data which is โFirst occurrence, Second occurrenceโ
You should divide this problem into two parts.
The first problem gets solved using the expressions mentioned above
The second one is about chart.
Charts are not easy to do here, at least there have been always some hiccups.
Please post here your chart, how it looks today, how you want it to look, the table schema that the chart is based of, etc
Sure. The chart will be in Italian cause I am.
โCOUNTโ from the Chart View has nothing to do to COUNT()
(the function/expression)
Can you elaborate better what the columns represent, where those values are saved, the schema (pending), and others?
Each column of the chart should represent the time a kind of Technical Intervention is done. Every time a technician do a Technical Intervention fill a form. All the values are saves in a Google Sheet in a column called โInterventionโ. If the Interventions put in the form are more then one there is this problem
Let me see if I guest this correctly:
Where do the Technical Intervention list of options come from?
If there is a fixed list, this list should be on itโs own table and there should be a Virtual Column counting how many times this Intervention is used/selected
The list is in the Intervention column: there are some preselected values and each Technician can choose the preselected values or write their own
Exactly
KEY | INTERVENTION |
---|---|
UNIQUEVALUE-1 | INTERVENTION-1 |
UNIQUEVALUE-2 | INTERVENTION-2 |
UNIQUEVALUE-3 | INTERVENTION-3 |
UNIQUEVALUE-4 | INTERVENTION-4 |
UNIQUEVALUE-N | INTERVENTION-N |
UNIQUEID()
Initial Value and Intervention should be blank, maybe marked as Required)From your data: Add the same list of interventions that you have inside your EnumListโs column config on the Intervention column of the new table. Each Intervention is a different row.
When there are no Interventions left, you can create Keys for them using the following article:
https://help.appsheet.com/en/articles/1726606-manually-generating-uniqueid-key-values
Donโt forget to paste the results of the formula so that the plain text will be saved and not the formula itself
From inside your app: Create a view (table, deck, card, whatever) based on your new table and inside that view you will be able to add your Interventions. Add all of the ones that you have inside your EnumListโs column config
YOURNEWTABLENAME[KEY]
YOURNEWTABLENAME[KEY]
[TIMES_USED]
and add this as AppFormula:COUNT(
FILTER(
"THE_NAME_OF_THE_TABLE_WHERE_THE_USERS_ADD_ROWS_AND_WHERE_THE_ENUMLIST_IS",
IN(
[_THISROW],
[THE_ENUMLIST_COLUMN]
)
)
)
SUM : : THE_VIRTUAL_COLUMN_CREATED_EARLIER
. Chart columns, the Intervention one (This is assuming you are not testing the new chart editor)Post here if any problems/questions
PS: You will need to change all of the previous records from the EnumList that before were the name of the intervention itself. Now they need to be the Key value from the new table. It should be very easy using โSearch and Replaceโ kind of feature from Sheets or Excel
@Marco_Bonucci
Side note: if you find hard to do the keys thing, you can actually write any text string, as long as itโs unique in the context of that column. The formula just makes the same as UNIQUEID()
does inside your app but itโs not mandatory
Hello itโs me, I have done the tutorial
Hi! Thatโs perfect but Iโd want to filter by date (Column Data on Prima Nota) on the chart. How could I do?
Yes but on the chart it only make me filter by columns on the new table I created (with Interventions)
You can only filters using columns from the table the charts is made from
Is there any method to filter by a column in the other table? I really need it
OMG Thatโs hard
What about counting them only if they are in the current mont? Is it simpler?
User | Count |
---|---|
15 | |
14 | |
8 | |
7 | |
4 |