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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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