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
YBZ
Helper III
Helper III

exclude value of distinct count

Hi,

 

I would like to create a measure with distinct count that excludes one value out of the Employee Table. However, somehow it anyway includes the value.

 

Yearly Employee count = calculate(DISTINCTCOUNT('2019-2022'[Employee]),filter('2019-2022',NOT '2019-2022'[Employee] IN {"Not assigned"})
 
Anybody an idea what is wrong with the formula?
 
Regards
 
2 REPLIES 2
amitchandak
Super User
Super User

@YBZ , May be an issue with the letter case, try like

 

Yearly Employee count = calculate(DISTINCTCOUNT('2019-2022'[Employee]),filter('2019-2022', Upper('2019-2022'[Employee]) <> "NOT ASSIGNED"))

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

@amitchandak thank you, but unfortunately that did not solve the issue

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.

Top Solution Authors