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
milkmoneymike
Helper I
Helper I

Help with a measure

I am currently trying to create a measure that captures the number of users with a certification and without certifications for each company. Some users have rows with (N/A)  in the Cert course column meaning they either dont have a cert or its a filler row for their contact record. The IDs are unique to each user. Here is a sample of my data structure below.

 

CustomerSample.png

 

I would like the results to look like this below:

Company NameContacts with CertsContacts without certification
MNI17
PCT10
   

 

As you can see Mike from MNI has a row of N/A and my measure counts that as a contact without a cert so i get skewed numbers. Any guidance would be greatly appreciated! thank you all

1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

Hi @milkmoneymike ,

 

Please try the following measure:

Contacts without certification =
CALCULATE (
    DISTINCTCOUNT ( Table[Contact Name] ),
    FILTER (
        VALUES ( Table[Contact Name] ),
        'N/A' IN VALUES ( Table[Cert Course] )
    )
)

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

View solution in original post

2 REPLIES 2
v-deddai1-msft
Community Support
Community Support

Hi @milkmoneymike ,

 

Please try the following measure:

Contacts without certification =
CALCULATE (
    DISTINCTCOUNT ( Table[Contact Name] ),
    FILTER (
        VALUES ( Table[Contact Name] ),
        'N/A' IN VALUES ( Table[Cert Course] )
    )
)

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

amitchandak
Super User
Super User

@milkmoneymike , You can create two measures

certification = countrows(filter(table, table[cert course] ="N/A"))

 

without certifications = countrows(filter(table, table[cert course] <> "N/A"))

 

Or you can create a new column and take count of that in matrix and use this column of matrix

new column = if(table[cert course] ="N/A", "without certifications" ,"certification")

 

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

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