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

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

Reply
spandy34
Responsive Resident
Responsive Resident

Count of Non Blank Cells

I have a table that includes an Email field and a field called Activated.  I need to calculate the number of distinct email addresses where the field name Activated is not blank (has a date in)

 

 I have tried 

Total Activated = CALCULATE(DISTINCTCOUNT('Stay Safe Usage Reports'[Email Address]),'Stay Safe Usage Reports'[Activated]<>"")
 
but i get the following message .  Please can someone help.
 
Thank you 
 @amitchandak
spandy34_0-1708433304655.png

 

1 ACCEPTED SOLUTION
talespin
Solution Sage
Solution Sage

Hi @spandy34 

 

You can't compare Date data type with string. Please try this.

 

Total Activated = CALCULATE(DISTINCTCOUNT('Stay Safe Usage Reports'[Email Address]), NOT(ISBLANK('Stay Safe Usage Reports'[Activated])) )

View solution in original post

2 REPLIES 2
spandy34
Responsive Resident
Responsive Resident

Thats brilliant - thank you so much!

talespin
Solution Sage
Solution Sage

Hi @spandy34 

 

You can't compare Date data type with string. Please try this.

 

Total Activated = CALCULATE(DISTINCTCOUNT('Stay Safe Usage Reports'[Email Address]), NOT(ISBLANK('Stay Safe Usage Reports'[Activated])) )

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.