function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Benjamin BolopueBenjamin Bolopue 

Rank Accounts by Volume

Is there a way to create a Visual Force component that counts the number of Accounts that are smaller/larger than the Account Record it's displayed on?

Thanks,
Ben
Ramu_SFDCRamu_SFDC
How are you differentiating the sizes of Accounts ? is it by any amount field or any other strategy.
Benjamin BolopueBenjamin Bolopue
Hi Ramu,
Our Accounts are measured (size-wise) in terms of windows per year. The actual field name is "Windows_K__c". The goal is to have a "Top_100_Rank__c" field automatically populated with the number of Accounts that have a higher "Windows_K__c" value.

i.e. Account "A" has a Top_100_Rank__c value of 23. It's a bit confusing as "23" would actually mean that there are 22 Accounts with a larger "Windows_K__c" value than is listed on Account A.

Thanks,
Ben