How to create pseudo metric using existing metric values



I am creating a dashboard with metrics metric1,metric2

I want to create a pseudo metric metric3 which will have values of metric1 - metric2 (ie difference between the values of metric1 and metric2 for each time interval)

can you please advise on an option to do this?

Thank you