Equals (PQL)

Returns a subset of elements in a list based on a string search of captions using an 'equals' operation.

  • Returned Output: List
  • Library: PQL \ Semantic \ String
  • Version: 2018.00.000
  • Compatibility: Pyramid Query Language (PQL) data sources

Syntax

Equals( <List> , <Text> )

* Click on the function's arguments above for more details on the input values.

Comments
  • List parameter should be a list or set of elements from an existing hierarchy in the model.
  • The search text string needs to be contained in quotation marks.
  • For details on how to employ and use this function see the semantic calculation overview.
Different Function types
  • To use a simple string manipulation operations, use the Common library function.

Also see StartsWith , Contains and EndsWith.

Examples

This method searches for the string 'maine' and returns Maine:

Equals( {[Customer].[state].[New York], [Customer].[state].[New Jersey], [Customer].[state].[Maine]}, 'maine' )

This method searches for the string 'California' and returns California:

Equals( AllMembers([Customer].[state]), 'California' )