How to create a new variable by comparing content of another variable in data

Hi Team,

I want to create a new variable called final_var and it should have data as “Grafana”


So if my name variable contains “go” keyword then new variable should be created as final_var and should store “Grafana”

Please suggest.


Hi @bhoopeshsharma

Could I ask a favor? Can you please attach some screenshots? I think some visuals would help demonstrate what you want to accomplish.

You tagged this topic alerting, for instance. I think the community will need more details about the alerting version (legacy? ngalert?), the grafana version, etc, in order to help. thanks! :+1: