Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

How to check if a value is contained in a filtered column?

Hello

 

I want to check if a value is present or not in a filtered column.

 

How can I do that?

 

I know the function CONTAINS and I was thinking to use it with the function FILTER but the FILTER function returns a table and not a particular column.

 

Thanks!

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could use CALCULATETABLE() to get filtered column2.

Column =
VAR a =
    CALCULATETABLE (
        DISTINCT ( 'Table'[Column2] ),
        FILTER ( 'Table', 'Table'[Column3] = BLANK () )
    )
RETURN
    'Table'[Column1] IN a

Here is the result.

3-1.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

3 REPLIES 3
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could use CALCULATETABLE() to get filtered column2.

Column =
VAR a =
    CALCULATETABLE (
        DISTINCT ( 'Table'[Column2] ),
        FILTER ( 'Table', 'Table'[Column3] = BLANK () )
    )
RETURN
    'Table'[Column1] IN a

Here is the result.

3-1.PNG

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
amitchandak
Super User
Super User

@Anonymous ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak 

 

I have a table with several columns.

 

I want to check if the value in Col1 exists in a list of values that is comprised of Col2 filtered by some conditions (e.g. when Col3=blank).

 

Hope this helps.

 

Thanks!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors