DAX Function Guide
CONTAINS
Sam McKay
CEO & Founder
How does the CONTAINS work?
CONTAINS Formula Syntax
CONTAINS (
<table>, <columnName>, <value> [, <columnName>, <value>]…
)
How do you use the CONTAINS?
This function is used within another function to search for a character or string. It returns a value of true if found, and false if not found.
Related Blog Posts
Loading
Considerations when using the CONTAINS?
Related Video Tutorials
Loading
Formula examples using the CONTAINS
=CONTAINS(InternetSales, [ProductKey], 214, [CustomerKey], 11185)
COUNTROWS ( FILTER ( table, columnName = value ) ) > 0
CALCULATE ( [measure], FILTER ( ALL ( targetTable[targetColumn] ), CONTAINS ( VALUES ( sourceTable[sourceColumn] ), sourceTable[sourceColumn], targetTable[targetColumn] ) ) )
Related Courses
Loading