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! Request now

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
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