Loading

How To Control the Number of Bins using the Parameter

Дата публикации: Feb 24, 2026
Задача
How to control the number of bins instead of the size of bins by the parameter?

Before:
User-added image

After:
User-added image

 
Действия
1. Create the following parameter:

User-added image

2. Create the following calculated field [Profit bin]:

IF [Profit]>=0 THEN 

(INT([Profit]/
  ROUND({(MAX([Profit])-MIN([Profit]))/[Profit Bin Amount]})
))

ELSE 

(INT([Profit]/
  ROUND({(MAX([Profit])-MIN([Profit]))/[Profit Bin Amount]})
)-1)

END

*(ROUND({(MAX([Profit])-MIN([Profit]))/[Profit Bin Amount]}))

3. Drag [Profit bin] to [Columns] and convert it to dimension

4. Drag [Orders (Count)] to [Rows]

5. Use the parameter [Profit Bin Amount] to change the amount of bins

See the attached sample workbook. 
Дополнительные ресурсы

Manually Choosing the Number of Bins Within a Certain Data Set

Номер статьи базы знаний

001498732

Вложения

Bin Amount.twbx

1209 KB

 
Загрузка
Salesforce Help | Article