Bottom N Average


πŸ“Š Bottom N Average Function

πŸ” Definition

The Bottom N Average function is used for:

➑️ Averaging (AVG) the values of a field
➑️ Retrieving N data with the SMALLEST Average value


πŸ‘‰ The opposite of Top N Average

βš™οΈ Parameter

1. 🎯 Field

Fields to be calculate the average

Example:

2. πŸ”’ Number of Record (N)

The amount of data to be displayed (Bottom N)

Example:

3. πŸ”€ Ordered (Y/N)

πŸ“Œ Recommended: use Y for clear results

πŸ“₯ Input & πŸ“€ Output

Input Output
The output will contain:

🧠 How it works

Sample Data:
    category	views
    ------------------
    A           100
    A           200
    B           300
    B           100
    C           50

Step 1: AVG per category

    category	average_views
    ----------------------
    A           150
    B           50
    C           50

Step 2: Bottom N (for example N=2)

    category_new    average_views
    -------------------------
    C               50
    A               150   
    

πŸ§ͺ Case Study

🎯 Case:

Showing 3 categories with the LOWEST total count views

πŸ”„ Workflow
  1. Source data
  2. GroupBy β†’category
  3. Bottom N Average:
    • Field =views
    • Number of Record =3
    • Ordered =Y
πŸ“Š Output:
    category_new    average_views
    --------------------------
    Education       10,000
    Travel          15,000
    Music           20,000

πŸ’‘ 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.