You may use an array filter.
But to be able to do this, insert a question of type "multiple" (hidden), where you set the relevant items (the ones which got a "Yes" in the array) by an equation (also hidden).
{M1_1=if(A1_1==1,"Y","")}
{M1_2=if(A1_2==1,"Y","")}
...
with "A1" code of the array question,
"M1" code of the hidden multiple question.
Now you may use "M1" as array filter in your ranking question.
Example in Version 2.06+ Build 160129
Joffm