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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Heidilein
Helper I
Helper I

Looking for filter

Hi all,

 

I am troubling a bit with a way to find a filter.

My table does look like this:

MainIDIDNameCatalog
122abc200
123cde201
124efg205
225ghi200
226ijk201
227lmn203
328opq200
329rst201
430tuv200
431vwx205
532xyz200
533ggg

203

 

And I am looking for a way to filter only those MainID fields which do not have a link to catalog with value 203 or 205. Trying to exclude them. I have tried it with Calculate but now I am troubling with the select criteria.

I am looking forward for your support. Thanks a lot.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Heidilein ,

 

Is this what you expected?

vtianyichmsft_0-1712628970372.png

 

Measure = CALCULATE(COUNTROWS('Table'),FILTER('Table',NOT [Catalog] IN {203,205}))

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Heidilein ,

 

Is this what you expected?

vtianyichmsft_0-1712628970372.png

 

Measure = CALCULATE(COUNTROWS('Table'),FILTER('Table',NOT [Catalog] IN {203,205}))

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Thank you so much, this worked 🙂

Heidilein
Helper I
Helper I

I have tried following, but it did not work yet:

CALCULATE(SUM(Table[Cutstomer.MainID]), (Table[Catalog] in {200, 201} && NOT Table[Catalog] in {203, 205}))

 

Any idea how to improve this?

ChiragGarg2512
Solution Sage
Solution Sage

@Heidilein Does the requirement ask for a filter or a slicer?

 

Actually no, just trying to filter on those selected MainIDs. So I am looking for a clever formula.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.