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:
Image may be NSFW.
Clik here to view.
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.
Image may be NSFW.
Clik here to view.
For further information visit SolarWinds VMAN Admin Guide and and search for "Custom Labels".