Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
I am trying to create a simple bar chart, where it will show the amount of minutes students have spent in a particular room, with those minutes broken down by the grade they are in. However, when I put the total minutes on the y-axis and the grade on the x-axis, it is telling me that each grade is spending 100% of the grand total of minutes in the room. Obviously, this is not possible, it should be more like kindergarten is spending 25% of the total time in the room, 1st grade 25%, etc. Each student is only assigned 1 grade (0-4). A picture of my chart is posted below where I am getting the error.
Solved! Go to Solution.
I figured it out- just needed to change the cardinalities
I added a calculated field to visit log to get the total minutes for each visit using this formula in the data view:
Here are samples of my tables
Visit Log:
| Timestamp | What is the Student ID? | Before Room: How was the student feeling? | After Room: How was the student feeling? | What time did the student enter the room? | What time did the student leave the room? | (Optional) Enter any additional notes | Who recommended the BeWell visit? |
| 91 | Overwhelmed | Silly | 9:17:00 AM | 10:05:00 AM | Notes | Student | |
| 92 | Nervous | Excited | 9:19:00 AM | 10:08:00 AM | Notes | Student | |
| 93 | Bored | Bored | 9:21:00 AM | 10:11:00 AM | Notes | Student |
Student log:
| Timestamp | Student ID | Enter the student's first name | Enter the student's last name | Enter the student's date of birth | Enter the student's gender | Enter the student's race | Enter the student's grade |
| 91 | JAMES | Smith | 8/4/2011 | Male | Asian or Pacific Islander | 1 | |
| 92 | JOHN | Johnson | 9/4/2011 | Male | Black or African American | 1 | |
| 93 | ROBERT | Williams | 10/4/2011 | Male | Hispanic or Latino | 2 |
Here is my relationship - each student ID has one record for visit log and one for student log
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!