Forum Discussion
Table Query
- 1 year ago
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')