Try with "Calculate Single Value as" Rank Number for all 24 KFs in the query designer. This setting will be in "Calculations" tab in Bex.
If you apply condition on your Kfs, all your data will come in descending order which will not suffice your requirement.