Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello, New to Bi looks awesome. I am looking to find out how I can create a table listing the students and the number of times they have taken the class. any help would be appreciated.
| Student ID | Name | Course | Date | 
| S001 | Student 1 | Math 101 | 2025-04-01 | 
| S001 | Student 1 | Math 102 | 2025-04-03 | 
| S001 | Student 1 | Math 103 | 2025-04-01 | 
| S002 | Student 2 | Welsh | 2025-04-03 | 
| S002 | Student 2 | American | 2025-04-03 | 
| S002 | Student 2 | English | 2025-04-01 | 
| S003 | Student 3 | Irish | 2025-04-03 | 
| S003 | Student 3 | French | 2025-04-01 | 
| S003 | Student 3 | German | 2025-04-03 | 
| S004 | Student 4 | Math 101 | 2025-04-04 | 
| S004 | Student 4 | Math 101 | 2025-04-05 | 
| S004 | Student 4 | Math 109 | 2025-04-06 | 
Solved! Go to Solution.
Hi @Fireoyster,
Thank you for reaching out to the Microsoft fabric community forum. 
After thoroughly reviewing the details you provided, I was able to reproduce the scenario, and it worked on my end. I have used it as sample data on my end and successfully implemented it.     
I am also including .pbix file for your better understanding, please have a look into it:
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you for using Microsoft Community Forum.
Hi @Fireoyster
Welcome to Power BI. Glad you're enjoying it so far! To create a table that lists each student and the number of times they’ve taken a class, you can easily do this using the visual and aggregation features. Simply load your data into Power BI, then create a Table visual.
Drag the Student ID and Name fields into the table, and then drag the Course field into the values area and set it to "Count" (this will count how many courses each student has taken). This count will show the number of rows (i.e., class attendances) per student. If you want a DAX measure instead, you can create one like this:
ClassCount = COUNTROWS('YourTableName')
Hi @Fireoyster,
Thank you for reaching out to the Microsoft fabric community forum. 
After thoroughly reviewing the details you provided, I was able to reproduce the scenario, and it worked on my end. I have used it as sample data on my end and successfully implemented it.     
I am also including .pbix file for your better understanding, please have a look into it:
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you for using Microsoft Community Forum.
Hi @Fireoyster,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @Fireoyster,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @Fireoyster,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.
Hi @Fireoyster
Welcome and I'm sure you all enjoy the experience of the community and learning a lot as you go through this process with. regards to your question and what you're looking for is to create a dax measure which will count the number of students. There is a sample below. How do you create this based on your example above?
Course Count = DISTINCTCOUNT('TableName'[Course])
Put this measure into a table, then drag in the Name to get a count of how many courses the student took.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
            | User | Count | 
|---|---|
| 59 | |
| 13 | |
| 12 | |
| 10 | |
| 10 |