Hi all!

I need your help, please!
I have data from 2014q1 to 2019q4, what I want to do is subtract the difference by gvkey of the ETR2018 - ETR2016. Basically, I would like to show in 2018q1 = 2018q1 - 2016q1

Any ideas of how to do this?

Array