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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
chris886
Frequent Visitor

Distinct count based on second table

Newbie here.  I'm trying to figure out how to count the distinct number of people that have taken a training. I have two tables that would appear like below. Some people have been around a long time and taken the same training more than once. 

 

I need help figuring out "Distinct number of people who have taken training". For the data below I'd be looking for a return of three.

 

NameTraining Course
ChrisTraining #1
ChrisTraining #1
ChrisTraining #1
Brad 
JohnTraining #1
JohnTraining #1
Tony 
Sam

Training #1

 

Has to be done in DAX as I don't have access to the dataset/power query.

 

Thank you.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@chris886 

I guess you are using live connection mode so you can only create a measure for this. 

 

Measure = CALCULATE(DISTINCTCOUNT('Table'[Name]),FILTER('Table',[Training Course]<>BLANK()))
Vpazhenmsft_0-1628472402909.png

 

Paul Zheng _ Community SZhengt Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@chris886 

I guess you are using live connection mode so you can only create a measure for this. 

 

Measure = CALCULATE(DISTINCTCOUNT('Table'[Name]),FILTER('Table',[Training Course]<>BLANK()))
Vpazhenmsft_0-1628472402909.png

 

Paul Zheng _ Community SZhengt Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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