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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Subtotal for tutor hours by student by six weeks sessions

Hello Power BI Super users,

 

I have this table below. Is there a DAX that will create a new table to show the following? 1st, 2nd, 3rd Six Week Session is outputted by create a group. 

 

quipmaster_0-1679029675396.png

 

I want to have total hours by student id by session weeks (groups). I imagine the table below helping me to output a cluster column chart. 

 

Is there a DAX that will create a new table to show the following? 

 

Student IDSession Totals Hours
785401st Six Weeks3.0
785402nd Six Weeks8.0
785403rd Six Weeks5.5

 

I appreciate the nudge.

 

Luis

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I figured out the solution.

 

I needed a measure and a table.

 

Step 1.

Total Tutoring Hours = SUM('Tutorial Log_Long'[30-minute Sessions])*.5

 

Step 2. 

Tutor Hours by Sessions =
SUMMARIZE(
    'Tutorial Log_Long', 'Tutorial Log_Long'[Student ID], 'Tutorial Log_Long'[Sessions Weeks (groups)], "Total Tutor Hours", 'Tutorial Log_Long'[Total Tutoring Hours])
 
Step 3. Bring in Session Weeks (Group) into the filters
quipmaster_0-1679111962764.png

 

Thank you to everyone. I appreciate the nudges.

 

 

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

I figured out the solution.

 

I needed a measure and a table.

 

Step 1.

Total Tutoring Hours = SUM('Tutorial Log_Long'[30-minute Sessions])*.5

 

Step 2. 

Tutor Hours by Sessions =
SUMMARIZE(
    'Tutorial Log_Long', 'Tutorial Log_Long'[Student ID], 'Tutorial Log_Long'[Sessions Weeks (groups)], "Total Tutor Hours", 'Tutorial Log_Long'[Total Tutoring Hours])
 
Step 3. Bring in Session Weeks (Group) into the filters
quipmaster_0-1679111962764.png

 

Thank you to everyone. I appreciate the nudges.

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.