You are hitting the BUG : https://issues.apache.org/jira/browse/AMBARI-23309
which was fixed in ambari-2.7.x versions.
as a workaround you can actualy edit the /usr/lib/ambari-server/web/javascripts/app.js file as like : https://github.com/apache/ambari/pull/738/files
for example:
[root@c3255-node1 javascripts]# diff app.js app.js_backup
35623,35629c35623
< if (element.isOperator) {
< // operators should have spaces around in order to differentiate them when symbol is a part of metric name
< // e.g "metric-a" and "metric1 - metric2"
< value += " " + element.name + " ";
< } else {
< value += element.name;
< }
---
> value += element.name;
70943c70937,70938
< VALUE_NAME_REGEX: /[^(\s+\-\*\/\\+\s+)+](\w+\s+\w+)?[\w\.\,\-\:\=\[\]]*/g,
---
> VALUE_NAME_REGEX: /(\w+\s+\w+)?[\w\.\,\-\:\=\[\]]+/g,
>