Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 31 Next »


Contents:

NOTE:  Designer Cloud Educational is a free product with limitations on its features. Some features in the documentation do not apply to this product edition. See Product Limitations.

   

Generates the count of rows in the dataset. Generated value is of Integer type. 

NOTE: When added to a transformation, this function calculates the number of rows displayed in the current sample and are not applied to the entire dataset until you run the job. If you change your sample or run the job, the computed values for this function are updated. Transformations that change the number of rows in subsequent recipe steps do not affect the value for the already computed instance of COUNT.

Wrangle vs. SQL: This function is part of Wrangle, a proprietary data transformation language. Wrangle is not SQL. For more information, see Wrangle Language.

Basic Usage

count()

Output: Returns the count of records for the dataset.

Syntax and Arguments

There are no arguments for this function.

You can use the group and limit parameters to specify the scope of the count. For more information on the group and limit parameters, see Pivot Transform.

Examples


Tip: For additional examples, see Common Tasks.

Example - Simple row count

Source:

RowNum
Row 1
Row 2
Row 3
Row 4
Row 5

Transformation:

Transformation Name New formula
Parameter: Formula type Single row formula
Parameter: Formula count()
Parameter: New column name 'row_count'

sourcerow_count
Row 15
Row 25
Row 35
Row 45
Row 55

See Also for COUNT Function:

Error rendering macro 'contentbylabel'

parameters should not be empty

 

  • No labels

This page has no comments.