What do you mean by "... how to query the name of the KPI rather than hard coding it ..." ? Could you perhaps give an example?

Thanks!

Bill