Group servers based on Application

We have more than 3000 hosts in grafana, I need to group it based on application wise for the query data to be displayed, Is there any way to create multiple application tags in template section?

Hi Team,

Please reply