Calculating metric value which is 30 days ago in grafana

Hi there,

I need to generate an alert whenever there is a raise of 10% in the trend line value when compared with the trend line value which is 30 days ago. can we use any functions to achieve this(Need suggestion other than writing SQL)…please share any approaches also to get this done