How do I get a count of one data element that...

How do I get a count of one data element that is filtered off another?

I tried this but get a mismatch error:

=COUNT(SELECT(LIST([EvacLocationCenter]=โ€œLamarqueโ€, dbo.Registration[LastName], TRUE)))

0 1 301
1 REPLY 1

Your SELECT inputs are not in the right order. The syntax should be in this situation: SELECT(some list, true). This reads: Select from some list where this is true.

COUNT will just count how many things are in the list you just selected, so thatโ€™s not the problem here.

For your specific expression, it should be something like: COUNT(SELECT(dbo.Registration[LastName], [EvacLocationCenter] = โ€œLamarqueโ€). If this expression doesnโ€™t work, give me a little more context (table names, column names, how the different things are related) to work with.

Top Labels in this Space