Group by label value without timestamps

Hi, I’m looking to show a table panel in grafana that displays each unique value of a label and how many times that value has appeared in my logs. The most I can do at the moment is have multiple tables that I filter on the label value that display how many occurrences they have during a timestamp.

How about (not tested):

sum by (LABEL) (
  count_over_time(
    {SELECTOR}
      | OTHER_FILTER
      | __error__=""
    [$__interval]
  )
)