Loading
Salesforce now sends email only from verified domains. Read More

Rank() Function Show Different Ranks for the Same Value

Publish Date: Apr 29, 2025
Description

The RANK() function shows two unique ranks for the same integer number like below:

User-added image

Cause

The values that appear to be the same in ranks are actually rounded to display without decimal numbers. 
(eg. "1500" shown in the view, while "1499.9750" are used in ranking)

User-added image
Resolution
The resolution is to make a calculation field to round the numbers to the values that are shown in the view.
RANK(ROUND(AVG([Sales])))
Knowledge Article Number

001496508

Attachments

Rank Issue_v2018.1.twbx

2083 KB

 
Loading
Salesforce Help | Article