Count one special custom-event in a field and display it in a Numberfield

Hello,
I have defined Custom Events in the Tag Manager and get them via the "Name of Event" field.
Is it somehow possible with a formula that I count the number of a specific event and display it in a number field?
At the moment I only manage to display the value in a table by using the field "Name of the event" as dimension and in the measurement value the "Number of events" and then filter by this special event.
But I would like to convert this filtered value with some formula into a measurement value, so that I want to display it in a number field.

Does anyone have a suggestion?

I have already tried the following, but it did not work:

Attempt 1:

SUM(
  CASE WHEN Event Action = 'first-visit' THEN 1 ELSE 0 END
)

Attempt 2:

CASE 
    WHEN Name of Event IN ( WhgInfos ) THEN "WhgInfos 
END

Attempt 3:

sum(if(name of event="ClickStartbutton",1,0))


Thanks for the help!
With kind regards
Jakob

0 1 683
1 REPLY 1

Did you get this resolved? I have the same issue.