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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
GettingStarted
Frequent Visitor

Power BI count email addresses where some are duplicate and some are blank

Hi all,

It would be awesome if I could get some help with this as I'm quite new to Power BI. I'm trying to count email addresses if they are not blank/null but I don't know how to get the correct result.
Example:

number      email
1234123@email.com
5678123@email.com
1213123@email.com
1415null
1617xyz@email.com


My measure is:

Count Email = COUNTX (table1[email])
This results in a total of 2 email addresses but I need it to be 4. I'm not sure why this is so hard for me haha. Any help is greatly appreciated if possible. Thanks!
3 REPLIES 3
some_bih
Super User
Super User

Hi @GettingStarted try: 

Count non blank rrows= 
  CALCULATE(
        COUNTROWS(Sheet19),
        Sheet19[   email]<>"null"
    )
 
Adjust Sheet 19 to your table name. I hope this help




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Thanks for your help, I really appreciate it.
It still doesn't seem to be working as it's only counting the unique value.

123@email.com
123@email.com
123@email.com

 

Total Emails = CALCULATE(
        COUNTROWS(table),
        table[email] <>"null"
    )

returns a value of 1 instead of 3. It's weird so maybe there is something I'm overlooking...

Hi @GettingStarted 
Even the COUNTX approach should work. Definitely there is is something that is being overlooked.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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