Loading

How To Control the Number of Bins using the Parameter

Publiceringsdatum: Feb 24, 2026
Uppgift
How to control the number of bins instead of the size of bins by the parameter?

Before:
User-added image

After:
User-added image

 
Steg
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. 
Knowledge-artikelnummer

001498732

Bilagor

Bin Amount.twbx

1209 KB

 
Laddar
Salesforce Help | Article