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
PWGabe
Frequent Visitor

Summing data based on another column

I have 3 columns, SOWNumbers, BillableHours, and Non-Billable hours. What I'm looking to do is Sum the Billable hours for the group of SOWNumbers. I have a list of 200 SOWNumbers, 20 that are all the same, each one having a BillableHours number. I was to take the Billable hours of the 20 that are the same and sum them. How can I go about doing this? Thanks

1 ACCEPTED SOLUTION
bdymit
Resolver II
Resolver II

Is this just for the purposes of a table or visual?

Just put the SOWNumbers in the Rows of a table and BillableHours in the Values.

It will automatically sum.

 

A better practice would be to explicitly define the "Sum of Billable Hours" value in a measure.

 

It would look like this:

Sum of Billable Hours = 
SUM(
     Table1[BillableHours]
)

 

View solution in original post

4 REPLIES 4
bdymit
Resolver II
Resolver II

Is this just for the purposes of a table or visual?

Just put the SOWNumbers in the Rows of a table and BillableHours in the Values.

It will automatically sum.

 

A better practice would be to explicitly define the "Sum of Billable Hours" value in a measure.

 

It would look like this:

Sum of Billable Hours = 
SUM(
     Table1[BillableHours]
)

 

PWGabe
Frequent Visitor


@bdymit wrote:

Is this just for the purposes of a table or visual?

Just put the SOWNumbers in the Rows of a table and BillableHours in the Values.

It will automatically sum.

 

A better practice would be to explicitly define the "Sum of Billable Hours" value in a measure.

 

It would look like this:

Sum of Billable Hours = 
SUM(
     Table1[BillableHours]
)

 


The problem is I can't put anything into rows and doing the "Sum( tabl1[BillableHours]) thing will sum up ALL the billable hours, not just the ones for the SOWNumbers. 

 

Capture.JPG

 

This is part of the excel sheet I'm trying to replicate. there are 300+ more rows below this, groups of them having diffrent SOWNumbers.

@PWGabe,

 

Your requirement is still not very clear. Better to share us a more complete example.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you for all the help, but I ended up not having to do this, after deciding it wasn't possible.

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.