You could solve this problem with Advanced Aggregation by PIN. Something along these lines:
IF(Count(distinct Quarter) = 4, <Annual formula>, <Quarterly formula>,
, PIN, [all other chart dimensions]
I could show it to you in your app if you could tell me on what sheet/chart to apply it, and what are the two formulas that you'd like to use.
As a side comment - your app really needs some data modeling help. It has 7 levels deep Synthetic keys, and because of that the app is extremely slow. A tighter data model could improve performance of your app by a lot. I recommend engaging an expert who can help you improve the data model. I can help, if you'd like me to.
Take your Qlik Skills to the next level at the Masters Summit for Qlik - now with new and redesigned materials!