- 
    New Feature Request 
- 
    Resolution: Unresolved
- 
    Trivial 
- 
    None
- 
    None
- 
    None
- 
    None
Hi Zabbix Team, 
we would like to use Usermacros in calculated item while using foreach_functions:
for example:
current working:
count(exists_foreach(/*/device.status?[tag="device_type:Router" and tag="country:US"]))
we want to use the Usermacro {$COUNTRY} like:
{$COUNTRY} = "US"
count(exists_foreach(/*/device.status?[tag="device_type:Router" and tag="country:\{$COUNTRY}"]))
if this is to complicated it would also be nice to build something like:
{$COUNTRY} = "country:US"
count(exists_foreach(/*/device.status?[tag="device_type:Router" and tag="\{$COUNTRY}"]))
- is duplicated by
- 
                    ZBX-22531 foreach function not getting data filtered by tag when tag uses a user macro in an item -         
- Closed
 
-