Grafana live MQTT - set topic dynamically as variable


I’m currently utilizing Grafana Live, which is set up to receive data from NiFi via MQTT. I’m exploring how to dynamically set the MQTT topic name as a variable based on attributes received. Could you guide me on achieving this?

Thank you.