DAX information functions: every one with an example

A reference of all DAX information functions, the IS tests (ISBLANK, ISERROR, ISNUMBER, ISTEXT and more), filter state (ISFILTERED, ISCROSSFILTERED, HASONEVALUE, HASONEFILTER, ISINSCOPE), CONTAINS and CONTAINSSTRING, calculation group functions, user functions and newer ones like TEXTCONTAINS.

Short answer: DAX information functions test something and usually return TRUE or FALSE: the type of a value (ISNUMBER, ISTEXT, ISBLANK), the filter state of a column (ISFILTERED, HASONEVALUE, ISINSCOPE), whether a table contains a value (CONTAINS, CONTAINSROW, CONTAINSSTRING), which measure a calculation group is applied to (SELECTEDMEASURE), and who is viewing (USERPRINCIPALNAME). This page lists every function in the group with an example.

Which functions test a value?

FunctionTRUE whenExample
ISBLANKthe value is BLANKISBLANK ( [Revenue LY] )
ISERRORthe expression returns an errorISERROR ( VALUE ( Settings[Text] ) )
ISNUMBER, ISNUMERICthe value is a numberISNUMBER ( [Input] )
ISTEXT, ISSTRINGthe value is textISTEXT ( Customer[Code] )
ISNONTEXTthe value is not text (blank counts as not text)ISNONTEXT ( Customer[Code] )
ISLOGICAL, ISBOOLEANthe value is TRUE or FALSEISLOGICAL ( Sales[Is Return] )
ISINT64, ISINTEGERthe value is a whole numberISINTEGER ( [Units] )
ISDECIMAL, ISCURRENCYthe value is a fixed decimal (currency)ISCURRENCY ( Sales[Amount] )
ISDOUBLEthe value is a floating-point numberISDOUBLE ( [Rate] )
ISDATETIMEthe value is a date or timeISDATETIME ( Orders[Shipped] )
ISEVEN, ISODDthe number is even or oddISEVEN ( 'Date'[Day] )
ISEMPTYa table has no rowsISEMPTY ( RELATEDTABLE ( Sales ) )
Value tests

Which functions read the filter state?

FunctionTRUE whenExample
ISFILTEREDthe column is filtered directlyISFILTERED ( 'Product'[Color] )
ISCROSSFILTEREDthe column is filtered directly or through other columns or tablesISCROSSFILTERED ( 'Product'[Color] )
HASONEVALUEexactly one value of the column is visibleHASONEVALUE ( 'Date'[Year] )
HASONEFILTERexactly one value is directly filteredHASONEFILTER ( 'Date'[Year] )
ISINSCOPEthe column is a grouping level of the current cellISINSCOPE ( 'Product'[Product] )
ISSUBTOTALin SUMMARIZE, the row is a subtotal for the columnISSUBTOTAL ( 'Product'[Category] )
NONVISUALmarks a filter in SUMMARIZECOLUMNS as not affecting measuresNONVISUAL ( TREATAS ( { 2026 }, 'Date'[Year] ) )
Filter state

In depth: SELECTEDVALUE and HASONEVALUE, ISINSCOPE.

FunctionReturnsExample
CONTAINSTRUE if a table has a row with the given column valuesCONTAINS ( Sales, Sales[Product Key], 42 )
CONTAINSROWTRUE if a row of values exists in a table (what IN uses)CONTAINSROW ( { "DE", "AT" }, Customer[Country] )
CONTAINSSTRINGTRUE if text contains text, not case-sensitiveCONTAINSSTRING ( 'Product'[Name], "bike" )
CONTAINSSTRINGEXACTas above, case-sensitiveCONTAINSSTRINGEXACT ( 'Product'[Code], "BK" )
TEXTCONTAINSTRUE if text matches by full-text search (needs a full-text index)TEXTCONTAINS ( Tickets[Text], "refund" )
TEXTSIMILARITYa relevance score of a full-text matchTEXTSIMILARITY ( Tickets[Text], "late delivery" )
ISAFTER, ISONORAFTERTRUE for rows after (or at) given values, like START ATFILTER ( T, ISONORAFTER ( T[Date], DATE ( 2026, 1, 1 ), ASC ) )
Searching

Microsoft notes TEXTCONTAINS needs a persisted full-text index on the column and works in Import, Dual and Direct Lake modes.

Which functions serve calculation groups and references?

FunctionReturnsExample
SELECTEDMEASUREthe measure a calculation item is applied toCALCULATE ( SELECTEDMEASURE ( ), DATESYTD ( 'Date'[Date] ) )
SELECTEDMEASURENAMEits nameSELECTEDMEASURENAME ( )
SELECTEDMEASUREFORMATSTRINGits format stringSELECTEDMEASUREFORMATSTRING ( )
ISSELECTEDMEASURETRUE if it is one of the listed measuresISSELECTEDMEASURE ( [Margin %] )
NAMEOFthe name of a column or measure as textNAMEOF ( [Revenue] )
TABLEOFa reference to the table of a column, measure or calendarTABLEOF ( [Revenue] )
COLUMNSTATISTICSstatistics for every column in the modelEVALUATE COLUMNSTATISTICS ( )
Calculation groups and references

In depth: calculation groups.

Which functions identify the user?

USERPRINCIPALNAME, USERNAME, USEROBJECTID, CUSTOMDATA and USERCULTURE: see dynamic row-level security.

What goes wrong?

  • ISBLANK on 0. ISBLANK ( 0 ) is FALSE; a value that is 0 is not blank.
  • ISFILTERED for "one value selected". It is TRUE for any direct filter, also with several values; use HASONEVALUE.
  • CONTAINSSTRING with wildcards. It supports ? and * wildcards; escape them with ~ when you mean the characters.
  • ISERROR around everything. Hides problems and costs time; prevent errors instead.

Where can you check this?

Where do you start?

Learn ISBLANK, HASONEVALUE, ISINSCOPE and SELECTEDMEASURE; they cover most uses. Logical functions combine these tests into conditions.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.