WordCount (PQL)
Returns the number of words in the text
- Returned Output: Integer
- Library: PQL \ Granular \ String
- Version: 2023.00.000
- Compatibility: Pyramid Query Language (PQL) data sources
Syntax
WordCount( <Column String> )
* Click on the function's arguments above for more details on the input values.
Comments
- The column needs to be an attribute with string / text values in the model.
- For details on how to employ and use this function see the custom column overview.
Different Function types
- Compare this to the LENGTH function.
- As a granular function, it is used in the base SQL query itself.
Examples
This example returns a column with the number of words in each string / text item in the Description column.
WordCount( [Product].[EnglishDescription] )
You can see the effect from this example snippet in column #3, based on the source column in position #2.