✅ You are viewing documentation for the latest version of Compose SDK.
Version:

# Function bottomRanking

bottomRanking( attribute, measure, count, config?): Filter

Creates a filter to isolate items that rank towards the bottom for a given measure.

# Parameters

Parameter Type Description
attribute Attribute Attribute to filter
measure Measure Measure to filter by
count number Number of members to return
config? BaseFilterConfig Optional configuration for the filter

# Returns

Filter

A filter instance

# Example

Filter for age ranges with the bottom 3 lowest total revenue in the Sample ECommerce data model.

filterFactory.bottomRanking(
  DM.Commerce.AgeRange,
  measureFactory.sum(DM.Commerce.Revenue),
  3
)