In your result view, which columns du you what to show ? Because if you remove year from your view then the field is as follows :
ZN(IF [YEAR]=2016 THEN [Total Accounts] END) - ZN(IF [YEAR]=2015 THEN [Total Accounts] END)
I want to keep all the columns in the view. Any idea how to go about the calculation?
Can you please post a screenshot with an excel example. It would be easier for me to understand the desired result.