• Skip to main content
  • Skip to footer

Curbal

Learn how to grow your business with your data and Power BI

  • Data Stories
    • Power BI Stories
    • 1 dataset, 100 matplotlib visualizations
  • Learning Portal
    • Download Center
    • 25 Days Challenge
    • DAX Glossary
    • Power BI
    • Power BI by Topic
    • Python
    • 1 dataset, 100 matplotlib visualizations
  • Courses
    • Power BI Mini Master Class 1: Using a REST API as a data source
    • Power BI Master Class 1: COVID Tracker
    • Introduction to Power BI – FREE Online course
    • M Language + Power Query Course Bundle
    • Power Query Online Training [updated 2022]
    • M Language Online Course: The unofficial and Practical Reference Guide [updated 2025]
    • My Courses
  • Shop
    • Courses
    • Master Classes
    • Template Apps
    • JSON Themes
  • Cart
  • Register/ Log In
    • Become a Member
    • Log In
    • My account
    • My Courses
  • Search
  • Contact
You are here: Home / CM Tooltip Glossary Pro+ / IN

IN

posted on April 20, 2018

« Back to Glossary Index

Syntax

<scalarExpr> IN <tableExpr> ( <scalarExpr1>, <scalarExpr2>, … ) IN <tableExpr>

Tutorial with example

In todays video we will go through the IN and CONTAINSROW functions in DAX .

DAX Fridays! #39 - IN, CONTAINSROW

Download example file:

Not available

Example 2:

In today’s #daxfridays video I will show you how to get selected or multiple values from a slicer:

DAX Fridays! #118:  Get selected or multiple values from slicers using DAX

Download example file:

Download Power BI file: here.

Remarks

The number of scalarExprN must match the number of columns in tableExpr.

Unlike the = operator, the IN operator and the CONTAINSROW function perform strict comparison. For example, the BLANK value does not match 0.

NOT IN is not an operator in DAX. To perform the logical negation of the IN operator, put NOT in front of the entire expression. For example, NOT [Color] IN { “Red”, “Yellow”, “Blue” }.

Was this helpful?
Related Articles:
  • 1 dataset, 100 matplotlib visualizations
  • 25 Days of DAX Fridays! Challenge
  • 25 Days of DAX Fridays! Challenge – Ed1: NorthWind Company
  • 25 days of DAX Fridays! Challenge – Ed2: World Cup
  • 25 Days of DAX Fridays! Challenge – Edition 3: Original Northwind dataset
See Also:
  • ADDCOLUMNS
  • ALL
  • ALLEXCEPT
  • ALLSELECTED
  • AVERAGE
« Back to Index

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer CTA

Join our community of +50,000 professionals

Become a Member

Subscribe to YouTube

About me:

Curbal AB
Badhusgatan 7B
722 15 – Västerås
Sweden

OrgNo: 5569680852 | VAT: SE556968085201

 

Location:

© Copyright 2014-2025 · Curbal AB · All Rights Reserved · Privacy Policy · Terms of Service · Refund Policy · Log In