π Bottom N Max Function
π Definition
The Bottom N Max function is used for:
β‘οΈ Averaging (MAX) the values of a field
β‘οΈ Retrieving N data with the SMALLEST Max value
π The opposite of Top N Max
βοΈ Parameter
1. π― Field
Fields to be calculate the max
Example:
2. π’ Number of Record (N)
The amount of data to be displayed (Bottom N)
Example:
- 3 β 3 smallest values
- 5 β 5 smallest values
3. π Ordered (Y/N)
- Y (Yes) β results are sorted (ascending / from smallest to largest)
- N (No) β results are not guaranteed
π Recommended: use Y for clear results
π₯ Input & π€ Output
Input
-
Previous result data (usually after GroupBy)
Output
The output will contain:
- All input fields
- New fields:
- Field grouping with postfix_new
- Max result field
π§ How it works
Sample Data:
category views
------------------
A 100
A 200
B 300
B 100
C 50
Step 1: MAX per category
category max_views
----------------------
A 200
B 300
C 50
Step 2: Bottom N (for example N=2)
category_new max_views
-------------------------
C 50
A 200
π§ͺ Case Study
π― Case:
Showing 3 categories with the LOWEST max views
π Workflow
- Source data
- GroupBy βcategory
- Bottom N Max:
- Field =views
- Number of Record =3
- Ordered =Y
π Output:
category_new max_views
--------------------------
Education 120
Travel 215
Music 220
π‘ Important Note:
The useful output fields from this buffer function are the grouped fields and new fields. Add a Transformator (

) assembly afterward to select these fields.