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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Showing how many learners got each achievement on courses

Hi, 

I'm new to power BI and am struggling creating the table I want from the data for work.

 

The dataset is in the following structure and shows what achievement each learner (LearnerID) got in the courses they did.

LearnerIDCourseAchievement
1MathsPassed
1EnglishDistinction 
1ScienceFailed
2MathsFailed
2EnglishPassed

And so on. 

 

And I want my table on the dashboard to look like this to show how many learners got each achievement for each course. E.g. in maths 5 learners got distinction, 17 passed and 4 failed.

 

CourseDistinctionPassedFailed
Maths5174
English11136
Science2215

 

Any help would be greatley appreciated.

 

Thanks

 

1 ACCEPTED SOLUTION
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

 

Base Table

Mikelytics_0-1669146553209.png

 

 

Please create the following Measure

 

Mikelytics_1-1669146585311.png

Mikelytics_2-1669146631420.png

 

Distinct Learner ID = 
DISTINCTCOUNT(LearnerTable[LearnerID])

 

Put the fields into a martrix visual

Mikelytics_3-1669146699759.png

 

Depending on your requirements it could also be better to use the following measure instead of the distinct measure.

CountRows = 
COUNTROWS(LearnerTable)

 

Best regards

Michael

-----------------------------------------------------

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

@ me in replies or I'll lose your thread.

-----------------------------------------------------

LinkedIn

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

View solution in original post

1 REPLY 1
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

 

Base Table

Mikelytics_0-1669146553209.png

 

 

Please create the following Measure

 

Mikelytics_1-1669146585311.png

Mikelytics_2-1669146631420.png

 

Distinct Learner ID = 
DISTINCTCOUNT(LearnerTable[LearnerID])

 

Put the fields into a martrix visual

Mikelytics_3-1669146699759.png

 

Depending on your requirements it could also be better to use the following measure instead of the distinct measure.

CountRows = 
COUNTROWS(LearnerTable)

 

Best regards

Michael

-----------------------------------------------------

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

@ me in replies or I'll lose your thread.

-----------------------------------------------------

LinkedIn

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors