# Function topRanking
topRanking(
attribute
,measure
,count
):Filter
Creates a filter to isolate items that rank towards the top 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 |
# Returns
A filter instance
# Example
Filter for age ranges with the top 3 highest total revenue in the Sample ECommerce data model.
filterFactory.topRanking(
DM.Commerce.AgeRange,
measures.sum(DM.Commerce.Revenue),
3
)