/
GROUPTOPN

GROUPTOPN

Syntax 

GROUPTOPN(<any>;[<integer>])

Description

Selects the top N values from a group. If this function is applied on a date column, top N means the N most recent dates.

This is a group series function.

Example

Given the following data:

GroupsParticipants
group16
group112
group15
group15
group15
group17
group15
group19
group18
group224
group224
group224
group233
group233
group229
group230
group232
group235

First create a group using GROUPBY(#RawData!Groups)

Groups
group1
group2

Then use the GROUPTOPN(#RawData!Participants;3). The result is the top "N" (in this case "3") values of the column in relation to the GROUPBY() column.

GroupsParticipants_TOP3
group112
group19
group18
group235
group233
group233

Related content

GROUPTOPN
More like this
GROUPTOPN
GROUPTOPN
More like this
GROUPBOTTOMN
GROUPBOTTOMN
More like this
GROUPBOTTOMN
GROUPBOTTOMN
More like this
GROUPBOTTOMN
GROUPBOTTOMN
More like this
GROUPLAST
More like this