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

Why won't summarize total hours

Hi Power BI Power Users,

 

I am trying to sum total hours in Tutor Log_Long. Here is the screenshot of the Tutor Log Long Columns.

 

quipmaster_0-1678935917284.png

 

Abigail should have three total tutor hours. However, the graph below does not represent what I expect. There is no bar for three. Not sure what I am missing here.

 

quipmaster_2-1678937751290.png

 

The range of hours should be 0 - 7.5. However, the graph stops at 2.5. 

Could someone give me a nudge in the right direction?

 

Thank you

 

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

4 REPLIES 4
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.

amitchandak
Super User
Super User

@Anonymous , Make sure Axis is categorical

Axis_type.png

Anonymous
Not applicable

Hi @amitchandak ,

 

Getting closer.

 

I made the X-axis categorical.

 

quipmaster_1-1678979704429.png

 

But I still get this output.

 

quipmaster_0-1678979669012.png

 

I would like this output. But this output uses wide data. I know there must be a step I am missing to use long data to build a graph just like this one.

 

quipmaster_2-1678979808364.png

 

My steps to make this unwanted output are as follows.

 

1. Transform data from wide to long (Tutor Sessions and values)

2. Group tutoring sessions

3. Calculate total hours 

Total Hours = 'Tutorial Log_Long'[30-minute Sessions]*0.5
4. Build bar chart X-axis Total Hours, Y-Axis Discount Count of Student ID
 
The wide data bar chart has X-axis 1st 6 weeks total hours 
1st 6 Weeks Total Hours = ('Tutorial Log'[1st 6 Weeks Total Sessions]*.5)
Y-Axis Count of Student IDs
 
I feel so close.
 
Any more nudges are greatly appreciated.

Check the formating options, something went wrong there.

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.

Top Solution Authors