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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
sa34techer
Helper II
Helper II

DISTINCTCOUNT a column and include each BLANK row

Is the best way to DISTINCTCOUNT a column and include each BLANK row in the same column?

 

.Distinct ID Number =
var dis = DISTINCTCOUNT('Invoices'[ID Number])
var blan = COUNTBLANK('Invoices'[ID Number])
RETURN
dis+blan
1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

DISTINCTCOUNT will count all blank as one, so you should return dis+blan -1

View solution in original post

1 REPLY 1
FreemanZ
Super User
Super User

DISTINCTCOUNT will count all blank as one, so you should return dis+blan -1

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.