Expression to Count ACTIVITIES that Match USEREMAIL

Hi,
I have an ACTIVITY table and Iโ€™m trying count the number of activities thatโ€™s associated with USEREMAIL(). I keep getting a list of numbers but Iโ€™m looking for a single value. Anyone help with whatโ€™s wrong with the below expression? Thanks

COUNT(SELECT(ACTIVITY DATA[ACTIVITY], [EMAIL] = USEREMAIL() ) )

My result is a list like 5, 5, 5, 5, 5, 5, 5, 5,

The result should be a 5.

Let me know what Iโ€™m missing in the expression to single out the number.
Thanks

Solved Solved
0 3 182
1 ACCEPTED SOLUTION

Iโ€™ve fixed my problem! Just enter this expression directly into the Summary table:
COUNT(SELECT(ACTIVITY DATA[ACTIVITY], [EMAIL] = USEREMAIL() ) )

I didnโ€™t need this formula ACTIVITY DATA[NUMBER OF ACTIVITIES COMPLETED]. This produced this list, but if I just entered the formulation COUNT, etc, etc. I got the result iโ€™m looking for.

Thanks

View solution in original post

3 REPLIES 3

Steve
Platinum 4
Platinum 4

The expression is fine. Please provide a screenshot of the configuration in which youโ€™re using it.

Hi Steve,
Here is the result on my app:
3X_d_7_d78d61a144ad8947c9205ac35bbef9715615a667.png

Here is the expression used in the Virtual Column on my Summary Table related to the above:


This is the expression I used in my Virtual Column on the ACTIVITY DATA table

Here is the expression used in the ACTIVITY DATA table:

Iโ€™ve fixed my problem! Just enter this expression directly into the Summary table:
COUNT(SELECT(ACTIVITY DATA[ACTIVITY], [EMAIL] = USEREMAIL() ) )

I didnโ€™t need this formula ACTIVITY DATA[NUMBER OF ACTIVITIES COMPLETED]. This produced this list, but if I just entered the formulation COUNT, etc, etc. I got the result iโ€™m looking for.

Thanks

Top Labels in this Space