Apr 14, 2017 09:58 AM
Is it possible to filter the results that are counted in a Count field? Example: “Tasks” table is a list of tasks, with a single select column ‘Stage’ that has values representing what stage of completion a Task is in and a ‘Facilities’ column representing buildings. A second table, “Facilities”, is linked and I want to count the number of tasks for each facility but exclude anything with a ‘Stage’ value of Complete.
Apr 15, 2017 02:02 AM
You can add an additional formula field that is filled only when the stage is not equal to ‘Complete’. Then use that field for counting in your other table…
Sep 20, 2018 12:56 PM
@Tuur thanks for this idea. Can you please explain in a little more detail how to do this? I’m trying to use the COUNT function to create a ranking of banks advising on tech IPOs. I’d like to filter out deals involving companies headquartered in China because they are skewing my results. I turned on this filter, but it doesn’t seem to affect the table with my count column. Here are two screenshots:
Sep 20, 2018 12:57 PM
2nd screenshot. These numbers include the deals for China-based companies, which is what I’m trying to cut.
Sep 20, 2018 04:44 PM
In your table called “Top Lead Left Banks ex China”, you need to create a “Lookup” field that looks up the Issuer(2018 U.S. Tech IPOs) => “Headquarters”. Then, you can filter on that field in your “Top Lead Left Banks ex China” table, as you are wanting to.
Essentially, when you link records across tables, you can also pull information about those linked records from one table and into another via Lookups or Rollups.
Formula, lookup, count, and rollup fields (columns) are powerful field types that allow you to compute a value based on values in other cells. These fields are configured in the field configuration...
Sep 21, 2018 02:06 PM
Thank you @Jeremy_Oglesby! This works to cut every bank that worked on any China-based deals. Do you know of a method to keep the banks that worked on China-based deals, but drop only those specific, China deals from the count?
I’ve included a screenshot showing what happens when I filter for “is not China” or “does not contain China.”
Maybe there’s some kind of conditional statement / formula I could use? Apologies if I’m missing something simple. And thank you! I’m new to Airtable but am finding the community and product to be exceptional.
Sep 21, 2018 02:31 PM
If it’s only dropping the China based deals from the IPO count that you are interested in, you could do this:
IF(
FIND(
"China",
{Headquarters}
),
0,
1
)
Each Issuer that has a headquarter in China will be assigned a value of 0
, and all others a value of 1
.
{Number of IPOs} - {Non-China IPOs}