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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.