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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Helper I

## filter in a column filter all category except one

Hi,

I have a column with different category, but I want to do the counts of all the category except one how do I do that ?

I want to do the count of all category in channel_fourth except No Encounters . IS there a dax to omit one category ? like count(tab[Channel_fourth],filter(tab[channel_fourth]<> 'No Encounters')

1 ACCEPTED SOLUTION
Super User

Yes, typically something like calculate(count(tab[Channel_fourth]),tab[channel_fourth]<> "No Encounters"). The calculate function accepts filters after the expression, and <> is your "not equals". Make sure to use double quotes on the text value, not single quotes.

3 REPLIES 3
Super User

Yes, typically something like calculate(count(tab[Channel_fourth]),tab[channel_fourth]<> "No Encounters"). The calculate function accepts filters after the expression, and <> is your "not equals". Make sure to use double quotes on the text value, not single quotes.

Helper I

Thanks Christin, calculate worked

Super User

@MaliniBaktha try a measure like this:

``countrows(filter(tab, tab[channel_fourth]<> 'No Encounters') )``

Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤

Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

## Helpful resources

Announcements

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

#### Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

#### Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors