When a label is assigned to VM(s) (or Host, Datastores, etc.) then you can use the label name or label values in search query. There's an example of "Department" label:
You can filter out VMs by typing this Search Queries:
Department:Finance
Department:*i*
Or you can use just label value, i.e. "Finance" as a SQL query.
For further information visit SolarWinds VMAN Admin Guide and and search for "Custom Labels".