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