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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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