I believe this is specifically a limitation of aggregated measures that use a periodic (time) calculation. You cannot rank on a year to date calculation, but you can rank on aggregations that don't involve time, such as percent of total.
The documentation says,
Note:You cannot use aggregated measures with periodic operators in filters. You also cannot use calculated data items that reference periodic aggregated measures in filters.
I believe that this note should say "filters or ranks" instead of just filters.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.