RANK

The RANK function returns a group with predefined keys from a table and values from a winner column. This is useful to compose personalized texts.

Details

  • It can also return a list of groups (columns)

  • The columns are chosen using a point-based system.

Syntax

RANK(table, [number])

Table syntax

Examples

Example 1

If:

  • type1=4, type2=6, type3=2

And the table is:

RANK(table) will return this group:

title: 'Title 2'
subtitle: 'Subtitle2'

RANK(table, 2) will return a list with these two groups:

title: 'Title 2'
subtitle: 'Subtitle2'

title: 'Title 1'
subtitle: 'Subtitle1'

Last updated