Hope the logic behind your calculations
could be simplified a bit in such a way:
Calculate the difference in Transaction Count between
the Maximum (Year) and the Minimum (Year)
having Years as a (Dimension) Filter,
but with the Year Dimension not present on a view.
The above logic could be implemented as LOD expression(s).
Please find the attached as an example (using Sample Superstore).
Hope it could help a bit.
MAX-MIN_LOD_v100_YF.twbx 1.4 MB