LogoLogo
Home
  • Verb Documentation
  • Release Notes
  • Environment Settings
    • Authentication
      • Authentication Endpoint
  • Data Sources
    • Ingestion Methods
    • Table Sync Intervals
    • Data Source Integrations
      • Network Permissions
      • Microsoft SQL Server
      • PostgreSQL
      • MongoDB
      • Snowflake
      • Elasticsearch
      • DynamoDB
      • Google BigQuery
      • Firebase Cloud Firestore
      • Supabase
      • Cloud Files
      • Flat Files
    • Data Synchronization
      • Synchronization Methods
        • Full Synchronization
        • Incremental Synchronization
        • Change Tracking
        • Change Data Capture
      • Synchronization Intervals
      • Synchronization Status
        • Pausing and Resuming
      • Synchronization History
      • Schema Changes
      • Row Filtering
      • Schemaless & NoSQL
      • Managing Connections
      • Troubleshooting
  • Models
    • What is a Model
      • Elements of a Model
      • Model Management
    • Building a Model
      • Add/Remove Data
      • Relationships
      • Row-Level Security
      • Transformations
    • Advanced Model Information
      • Database Keys
      • Unstructured Data
      • Publishing Updates
      • Troubleshooting
      • Automatic Modeling
  • Data Transformations
    • What is a Transformation
      • Elements of a Transformation
      • Transformation Management
    • Building Transformations
      • Creating Transformations
      • Configure Transformation Steps
      • Transformation Steps
        • Calculator
        • Manipulate Text
        • Map Values
        • Remove Duplicates
        • Date Operation
        • Select Columns
        • Change Type
        • Group Data
        • Filter Data
        • Join Data
        • Append Rows
        • Pivot Data
        • Rank Data
        • Window Data
      • Complete and Publish
  • Collections
    • What is a Collection
      • Elements of a Collection
    • Building Collections
    • API Collections
      • Building API Collections
        • Connect Data Sources
        • Data Model
        • Select Data
        • Authentication and Security
        • Data Access API Keys
        • Data Access API Documentation
      • API Collection Versions
    • Advanced Collection Options
      • Time Zones
      • Currency Symbols
  • Tiles
    • What is a Tile
      • Elements of a Tile
    • Tile Management
      • Tile Data
    • Tile Actions
    • Custom Date Formats
    • Currency Conversion
  • Design Themes
    • What is a Design Theme
    • General Theme Settings
    • Data Visualization Settings
  • Account Settings
    • Integrations
      • Slack
  • Legal
    • Terms of Use
    • Privacy Policy
    • Subscription Agreement Terms
    • Subscription Agreement
    • Data Processing Addendum
Powered by GitBook
On this page
  • Rank
  • Dense Rank
  • Row Number
  • Distribute into Groups (NTILE)
  • Percent Rank

Was this helpful?

  1. Data Transformations
  2. Building Transformations
  3. Transformation Steps

Rank Data

PreviousPivot DataNextWindow Data

Last updated 3 years ago

Was this helpful?

Creates a new column of sequentially ranked data within the selected table.

Data is initially partitioned based on selected column(s). Partitioning data arranges all similar values together within the table. All equal values would be ranked the same value within each partition.

Arranging the elements in a partition is then possible based on secondary “order by” column(s).

The resulting ranked values can be output in ascending or descending order within each partitioned value set.

The values in the resulting column will depend on the type of ranking method selected.

Rank

Outputs a unique sequential value based on the partitioned column values. Rows with equal values will be ranked equally. A first place tie results in the next value being third place.

Dense Rank

Equal values will be ranked the same, but a first place tie results in the next value being second place.

Row Number

Outputs a unique sequential value based on the partitioned column values. Unlike Rank, Rows with equal values will be ranked sequentially, and values will not have ties.

Distribute into Groups (NTILE)

Creates a new column which groups the partitioned data (and optionally sorted data) into a desired number of groups. The resulting column is the group number for the row following the partitioning and sorting (ascending/descending) functions.

Distributing into 2 groups will result in a sorted table with a new column displaying 1 for the first half (0-49.9%) of all rows and the second half (50-100%) returning 2 .

Percent Rank

Returns the relative rank of the value within the partitioned data. The returned value in the new column is always between 0 and 1.

The returned column will use the formula:

Row Number is the ranked value within the partition.

Total Rows is the total number of rows within the partition.

PercentRank=(RowNumber−1)/(TotalRows−1)Percent Rank = (Row Number -1)/ (Total Rows-1)PercentRank=(RowNumber−1)/(TotalRows−1)