Cloudwatch custom metrics with no dimensions

Hello,

I am trying to create a graph for a custom metric in Cloudwatch.
The metric is created using a custom metric filter therefore I cannot create dimensions.

I created a variable and it pulls the metric correctly.
It looks like that:
metrics(/apiservices/dev/main/client-event-sync-service/allpartners/allplatforms/http, us-east-1) and it pulls the 3 metrics:

Preview of values

All
AcceptedCount
BadRequestCount
InvalidContentTypeCount

But when I try to use it a graph, nothing is displayed (while it is in Cloudwatch dashboard)
A
Metric
us-east-1 $myvariable AcceptedCount Sum

Is it possible to display the graph without dimensions?

Ok I found why,
I should not define the metric in the variable and just input it directly in the metric in the graph.
Inputing the namespace instead of the variable in the image above