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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Frequent Visitor

Count Measurement Help

Hi - need help creating a measurement.


Here is a sample of my data:

Item IDCourse TitleUser IDLast NameFirst Name                            Completion StatusCompletion Date
000001Course A12345DoeAllisonComplete4/21/2023
000001Course A23456DoeJohnComplete 4/21/2023
000001Course A34567DoeMarkComplete9/26/2022
000002Course B34567DoeMarkComplete9/26/2022
000002Course B34567DoeMarkComplete9/26/2022
000003Course C34567DoeMarkComplete9/26/2022
000004Course D34567DoeMarkComplete 9/26/2022
000001Course A45678DoeBethComplete9/26/2022
000001Course A56789DoeErikaComplete9/28/2022
000002Course B45678DoeBethComplete 10/3/2022
000003Course C45678DoeBethComplete10/3/2022
000004Course D45678DoeBethComplete 10/3/2022


What I would like to do is have a count for each user ID IF they have a completion for EACH course. So only count Mark Doe if he has completed Course A, B, C, and D.

Resolver V
Resolver V

try something like this

Count Users Completed All =
VAR coursecount =  DISTINCTCOUNT(Table[Course], ALL())
	CALCULATE(DISTINCTCOUNT(Table[Course])) = coursecount
Solution Sage
Solution Sage

@kl8818 I hope this helps you.

Count User ID =
    COUNT('Table A'[User ID]),
    ALLEXCEPT('Table A','Table A'[Course Title],'Table A'[Completion Status])



Hi - thank you for your response. It is still not filtering correctly with that formula. It is counting every line not filtering if the user has completed Course A, B, C, D, and E. I have some users who have only completed Course A and B for example and I do not want to count them in this measurement. 

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors