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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors