OpenBI Docs Buy

ISSTRING

Whether a value is text (as ISTEXT).

Group: Information. Compatible with DAX.

Syntax

ISSTRING ( <value> )
ParameterTypeDescription
valueValueWhat is tested: a constant, a column in a row context, a measure or any expression.

Returns

Boolean. TRUE for text, empty text included; FALSE for numbers, dates, logical values and blanks.

Remarks

  • The same test as ISTEXT, under the name of the newer family of type tests.
  • Empty text counts as text; a blank does not.
  • Whatever FORMAT gives is text, so ISSTRING ( FORMAT ( 1, "0" ) ) is TRUE.

Examples

Text and not text

EVALUATE
ROW (
    "Pils", ISSTRING ( "Pils" ),
    "Empty text", ISSTRING ( "" ),
    "1", ISSTRING ( 1 ),
    "Blank", ISSTRING ( BLANK () ),
    "FORMAT ( 1 )", ISSTRING ( FORMAT ( 1, "0" ) )
)
PilsEmpty text1BlankFORMAT ( 1 )
TRUETRUEFALSEFALSETRUE

ISTEXT, ISNONTEXT, ISBOOLEAN, ISNUMERIC, FORMAT.

Last updated · OpenBI Studio 0.3.74